xref: /freebsd/contrib/ntp/sntp/tests/fileHandlingTest.h.in (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1#ifndef FILE_HANDLING_TEST_H
2#define FILE_HANDLING_TEST_H
3
4#include "config.h"
5#include "stdlib.h"
6#include "sntptest.h"
7
8#include <string.h>
9#include <unistd.h>
10
11
12enum DirectoryType {
13	INPUT_DIR = 0,
14	OUTPUT_DIR = 1
15};
16
17#define SRCDIR_DEF "@abs_srcdir@/data/";
18
19extern	const char * 	CreatePath(const char* filename,
20				   enum DirectoryType argument);
21extern	void		DestroyPath(const char* pathname);
22extern	int		GetFileSize(FILE *file);
23extern	bool		CompareFileContent(FILE* expected, FILE* actual);
24extern	void		ClearFile(const char * filename) ;
25
26#endif // FILE_HANDLING_TEST_H
27