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