87fdf2d7c9d14506ad489ff860e20273c3f1e367
[reactos.git] / rostests / rosautotest / precomp.h
1 /* Includes */
2 #include <stdio.h>
3
4 #include <windows.h>
5 #include <reason.h>
6 #include <wininet.h>
7
8 #include <reactos/buildno.h>
9
10 /* Defines */
11 #define BUFFER_BLOCKSIZE 2048
12 #define BUILDNO_LENGTH 10
13 #define PLATFORM_LENGTH 25
14 #define SERVER_HOSTNAME L"localhost"
15 #define SERVER_FILE L"testman/webservice/"
16
17 /* Enums */
18 typedef enum _TESTTYPES
19 {
20 WineTest
21 }
22 TESTTYPES;
23
24 /* Structs */
25 typedef struct _APP_OPTIONS
26 {
27 BOOL Shutdown;
28 BOOL Submit;
29 PWSTR Module;
30 PCHAR Test;
31 }
32 APP_OPTIONS, *PAPP_OPTIONS;
33
34 typedef struct _WINE_GETSUITEID_DATA
35 {
36 PCHAR Module;
37 PCHAR Test;
38 }
39 WINE_GETSUITEID_DATA, *PWINE_GETSUITEID_DATA;
40
41 typedef struct _GENERAL_SUBMIT_DATA
42 {
43 PCHAR TestID;
44 PCHAR SuiteID;
45 }
46 GENERAL_SUBMIT_DATA, *PGENERAL_SUBMIT_DATA;
47
48 typedef struct _WINE_SUBMIT_DATA
49 {
50 GENERAL_SUBMIT_DATA General;
51 PCHAR Log;
52 }
53 WINE_SUBMIT_DATA, *PWINE_SUBMIT_DATA;
54
55 typedef struct _GENERAL_FINISH_DATA
56 {
57 PCHAR TestID;
58 }
59 GENERAL_FINISH_DATA, *PGENERAL_FINISH_DATA;
60
61 /* main.c */
62 extern APP_OPTIONS AppOptions;
63 extern HANDLE hProcessHeap;
64 extern PCHAR AuthenticationRequestString;
65 extern PCHAR SystemInfoRequestString;
66
67 /* shutdown.c */
68 BOOL ShutdownSystem();
69
70 /* tools.c */
71 VOID EscapeString(PCHAR Output, PCHAR Input);
72 VOID StringOut(PCHAR String);
73
74 /* webservice.c */
75 PCHAR GetTestID(TESTTYPES TestType);
76 PCHAR GetSuiteID(TESTTYPES TestType, const PVOID TestData);
77 BOOL Submit(TESTTYPES TestType, const PVOID TestData);
78 BOOL Finish(TESTTYPES TestType, const PVOID TestData);
79
80 /* winetests.c */
81 BOOL RunWineTests();