[ADVAPI32_WINETEST] Add a PCH.
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 17 Dec 2017 11:24:27 +0000 (12:24 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 17 Dec 2017 11:24:27 +0000 (12:24 +0100)
13 files changed:
modules/rostests/winetests/advapi32/CMakeLists.txt
modules/rostests/winetests/advapi32/cred.c
modules/rostests/winetests/advapi32/crypt.c
modules/rostests/winetests/advapi32/crypt_lmhash.c
modules/rostests/winetests/advapi32/crypt_md4.c
modules/rostests/winetests/advapi32/crypt_md5.c
modules/rostests/winetests/advapi32/crypt_sha.c
modules/rostests/winetests/advapi32/eventlog.c
modules/rostests/winetests/advapi32/lsa.c
modules/rostests/winetests/advapi32/precomp.h [new file with mode: 0644]
modules/rostests/winetests/advapi32/registry.c
modules/rostests/winetests/advapi32/security.c
modules/rostests/winetests/advapi32/service.c

index a148e08..5d9cb9c 100644 (file)
@@ -13,9 +13,9 @@ list(APPEND SOURCE
     registry.c
     security.c
     service.c
-    testlist.c)
+    precomp.h)
 
-add_executable(advapi32_winetest ${SOURCE})
+add_executable(advapi32_winetest ${SOURCE} testlist.c)
 
 if(USE_CLANG_CL OR (NOT MSVC))
     add_target_compile_flags(advapi32_winetest "-Wno-format")
@@ -23,4 +23,5 @@ endif()
 
 set_module_type(advapi32_winetest win32cui)
 add_importlibs(advapi32_winetest advapi32 ole32 user32 msvcrt kernel32 ntdll)
+add_pch(advapi32_winetest precomp.h SOURCE)
 add_rostests_file(TARGET advapi32_winetest)
index bb5fb4e..38b23bc 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-#include <stdio.h>
+#include "precomp.h"
 
-#include "windef.h"
-#include "winbase.h"
-#include "wincred.h"
-
-#include "wine/test.h"
+#include <wincred.h>
 
 static BOOL (WINAPI *pCredDeleteA)(LPCSTR,DWORD,DWORD);
 static BOOL (WINAPI *pCredEnumerateA)(LPCSTR,DWORD,DWORD *,PCREDENTIALA **);
index 13671eb..4e05a8a 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
+#include "precomp.h"
 
-#include "windef.h"
-#include "winbase.h"
-#include "wincrypt.h"
-#include "winerror.h"
-#include "winreg.h"
-
-#include "wine/test.h"
+#include <wincrypt.h>
 
 static const char szRsaBaseProv[] = MS_DEF_PROV_A;
 static const char szNonExistentProv[] = "Wine Nonexistent Cryptographic Provider v11.2";
index 7ea4fc4..4a5ca15 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdio.h>
-
-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#include "wine/test.h"
-#include "windef.h"
-#include "winbase.h"
-#include "wine/winternl.h"
+#include "precomp.h"
 
 struct ustring {
     DWORD Length;
index df36b36..2b9d241 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdio.h>
-
-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#include "wine/test.h"
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
-#include "wine/winternl.h"
+#include "precomp.h"
 
 typedef struct
 {
index 4cf8868..cae4fc5 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdio.h>
-
-#include "wine/test.h"
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
+#include "precomp.h"
 
 typedef struct
 {
index 2737ee7..f035020 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
-
-#include "wine/test.h"
+#include "precomp.h"
 
 typedef struct {
    ULONG Unknown[6];
index 8c78dcf..0b8484f 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-
-#include "initguid.h"
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
-#include "winnt.h"
-#include "winreg.h"
-#include "sddl.h"
-#include "wmistr.h"
-#include "evntrace.h"
-
-#include "wine/test.h"
+#include "precomp.h"
+
+#include <wmistr.h>
+#include <initguid.h>
+#include <evntrace.h>
 
 static BOOL (WINAPI *pCreateWellKnownSid)(WELL_KNOWN_SID_TYPE,PSID,PSID,DWORD*);
 static BOOL (WINAPI *pGetEventLogInformation)(HANDLE,DWORD,LPVOID,DWORD,LPDWORD);
index 58bccd1..0ce93c6 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-#include <stdio.h>
-
-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-#include "windef.h"
-#include "winbase.h"
-#include "winreg.h"
-#include "ntsecapi.h"
-#include "sddl.h"
-#include "winnls.h"
-#include "objbase.h"
-#include "initguid.h"
-#include "wine/test.h"
+#include "precomp.h"
+
+#include <winnls.h>
+#include <objbase.h>
+#include <initguid.h>
 
 DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
 
diff --git a/modules/rostests/winetests/advapi32/precomp.h b/modules/rostests/winetests/advapi32/precomp.h
new file mode 100644 (file)
index 0000000..21bf46d
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef _ADVAPI32_WINETEST_PRECOMP_H_
+#define _ADVAPI32_WINETEST_PRECOMP_H_
+
+#include <stdio.h>
+#include <ntstatus.h>
+#define WIN32_NO_STATUS
+#define WIN32_LEAN_AND_MEAN
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+#include <wine/test.h>
+#include <winreg.h>
+#include <wine/winternl.h>
+#include <ntsecapi.h>
+#include <sddl.h>
+#include <lmcons.h>
+#include <aclapi.h>
+
+
+#endif /* !_ADVAPI32_WINETEST_PRECOMP_H_ */
\ No newline at end of file
index 053113a..4b99099 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define WIN32_LEAN_AND_MEAN
+#include "precomp.h"
 
 #include <assert.h>
-#include <stdarg.h>
-#include <stdio.h>
-#include "wine/test.h"
-#include "windef.h"
-#include "winbase.h"
-#include "wine/winternl.h"
-#include "winreg.h"
-#include "winperf.h"
-#include "winsvc.h"
-#include "winerror.h"
-#include "aclapi.h"
+#include <winperf.h>
 
 #define IS_HKCR(hk) ((UINT_PTR)hk > 0 && ((UINT_PTR)hk & 3) == 2)
 
index 7ca17b7..c64b1d9 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-#include <stdio.h>
-
-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#define WIN32_LEAN_AND_MEAN
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
-#include "wine/winternl.h"
-#include "aclapi.h"
-#include "winnt.h"
-#include "sddl.h"
-#include "ntsecapi.h"
-#include "lmcons.h"
-
-#include <winsvc.h>
-
-#include "wine/test.h"
+#include "precomp.h"
 
 /* FIXME: Inspect */
 #define GetCurrentProcessToken() ((HANDLE)~(ULONG_PTR)3)
index 3a85b1c..7d62a08 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define WIN32_LEAN_AND_MEAN
-
-#include <stdarg.h>
-#include <stdio.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
-#include "winreg.h"
-#include "winsvc.h"
-#include "winnls.h"
-#include "lmcons.h"
-#include "aclapi.h"
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static const CHAR spooler[] = "Spooler"; /* Should be available on all platforms */
 static CHAR selfname[MAX_PATH];