]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/tests/fileHandlingTest.h.in
Upgrade NTP to 4.2.8p4.
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / tests / fileHandlingTest.h.in
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
12 enum DirectoryType {
13         INPUT_DIR = 0,
14         OUTPUT_DIR = 1
15 };
16
17 #define SRCDIR_DEF "@abs_srcdir@/data/";
18 //const char srcdir[] = "@abs_srcdir@/data/";
19
20 const char *
21 CreatePath(const char* filename, enum DirectoryType argument);
22
23
24 int
25 GetFileSize(FILE *file);
26
27
28 bool
29 CompareFileContent(FILE* expected, FILE* actual);
30
31 void
32 ClearFile(const char * filename) ;
33
34
35 #endif // FILE_HANDLING_TEST_H