xref: /freebsd/contrib/ntp/sntp/tests/fileHandlingTest.h.in (revision ec65e4f8d0654361df5e97d4de3518edebf76b46)
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