e6314f44d57a2c14d7c981e8617d8777aeb549ea
[reactos.git] / rostests / dxtest / win32kdxtest / test.h
1
2
3 HANDLE test_NtGdiDdCreateDirectDrawObject();
4 void test_NtGdiDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal);
5 void test_NtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal);
6 void test_NtGdiDdGetScanLine(HANDLE hDirectDrawLocal);
7 void test_NtGdiDdWaitForVerticalBlank(HANDLE hDirectDrawLocal);
8 void test_NtGdiDdCanCreateSurface(HANDLE hDirectDrawLocal);
9
10
11 void dump_halinfo(DD_HALINFO *pHalInfo, char *text);
12 void dump_CallBackFlags(DWORD *pCallBackFlags, char *text);
13 void dump_D3dCallbacks(D3DNTHAL_CALLBACKS *puD3dCallbacks, char *text);
14
15
16
17 #define testing_eq(input,value,counter,text) \
18 if (input == value) \
19 { \
20 counter++; \
21 printf("FAIL ret=%s, %d != %d )\n",text,(int)input,(int)value); \
22 }
23
24
25 #define testing_noteq(input,value,counter,text) \
26 if (input != value) \
27 { \
28 counter++; \
29 printf("FAIL ret=%s, %d == %d )\n",text,(int)input,(int)value); \
30 }
31
32
33 #define show_status(counter, text) \
34 if (counter == 0) \
35 { \
36 printf("End testing of %s Status : ok\n\n",text); \
37 } \
38 else \
39 { \
40 printf("End testing of %s Status : fail\n\n",text); \
41 }
42
43
44 #if !defined(__REACTOS__)
45
46 #define win_syscall(inValue,outValue,syscallid) \
47 __asm { mov eax, syscallid }; \
48 __asm { lea edx, [inValue] }; \
49 __asm { int 0x2E }; \
50 __asm { mov outValue,eax};
51
52
53
54 #endif