[ADVAPI32_APITEST] Add a PCH.

This commit is contained in:
Amine Khaldi 2017-12-12 12:44:32 +01:00
parent 24f35397c6
commit 24f8946956
20 changed files with 34 additions and 75 deletions

View file

@ -17,10 +17,11 @@ list(APPEND SOURCE
ServiceArgs.c ServiceArgs.c
ServiceEnv.c ServiceEnv.c
svchlp.c svchlp.c
testlist.c) precomp.h)
add_executable(advapi32_apitest ${SOURCE}) add_executable(advapi32_apitest ${SOURCE} testlist.c)
target_link_libraries(advapi32_apitest wine ${PSEH_LIB}) target_link_libraries(advapi32_apitest wine ${PSEH_LIB})
set_module_type(advapi32_apitest win32cui) set_module_type(advapi32_apitest win32cui)
add_importlibs(advapi32_apitest advapi32 msvcrt kernel32 ntdll) add_importlibs(advapi32_apitest advapi32 msvcrt kernel32 ntdll)
add_pch(advapi32_apitest precomp.h SOURCE)
add_rostests_file(TARGET advapi32_apitest) add_rostests_file(TARGET advapi32_apitest)

View file

@ -5,11 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org> * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/ */
#include <apitest.h> #include "precomp.h"
#include <winreg.h>
#include <winsvc.h>
#include <strsafe.h>
static int MakeService(SC_HANDLE hScm, const wchar_t *serviceName, SC_HANDLE *hService, DWORD *tag) static int MakeService(SC_HANDLE hScm, const wchar_t *serviceName, SC_HANDLE *hService, DWORD *tag)
{ {

View file

@ -5,9 +5,7 @@
* PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org> * PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org>
*/ */
#include <apitest.h> #include "precomp.h"
#include <winbase.h>
#include <rtlfuncs.h>
#define ok_luid_equal(Luid, Expected) \ #define ok_luid_equal(Luid, Expected) \
ok(RtlEqualLuid((Luid), (Expected)), "Got wrong LUID %08lx%08lx, expected (%08lx%08lx).\n", \ ok(RtlEqualLuid((Luid), (Expected)), "Got wrong LUID %08lx%08lx, expected (%08lx%08lx).\n", \

View file

@ -5,13 +5,9 @@
* PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org> * PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org>
*/ */
#include <apitest.h> #include "precomp.h"
#define WIN32_NO_STATUS
#include <winreg.h>
#include <ndk/rtlfuncs.h>
#include <ndk/cmfuncs.h> #include <ndk/cmfuncs.h>
#include <ndk/cmtypes.h>
#define IS_HKCR(hk) (((UINT_PTR)hk & 3) == 2) #define IS_HKCR(hk) (((UINT_PTR)hk & 3) == 2)

View file

@ -6,13 +6,8 @@
* Dmitry Chapyshev * Dmitry Chapyshev
*/ */
#include <apitest.h> #include "precomp.h"
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include <winbase.h>
#include <winnls.h>
#include <wincon.h>
#include <stdio.h> #include <stdio.h>
PVOID LoadCodePageData(ULONG Code) PVOID LoadCodePageData(ULONG Code)

View file

@ -5,10 +5,7 @@
* PROGRAMMER: Hermès BÉLUSCA - MAÏTO * PROGRAMMER: Hermès BÉLUSCA - MAÏTO
*/ */
#include <apitest.h> #include "precomp.h"
#include <winsvc.h>
#include <strsafe.h>
#define TESTING_SERVICE L"Spooler" #define TESTING_SERVICE L"Spooler"

View file

@ -5,11 +5,7 @@
* PROGRAMMER: Hermès BÉLUSCA - MAÏTO * PROGRAMMER: Hermès BÉLUSCA - MAÏTO
*/ */
#include <apitest.h> #include "precomp.h"
#include <winreg.h>
#include <winsvc.h>
#include <strsafe.h>
#define TESTING_SERVICEW L"Spooler" #define TESTING_SERVICEW L"Spooler"
#define TESTING_SERVICEA "Spooler" #define TESTING_SERVICEA "Spooler"

View file

@ -5,10 +5,7 @@
* PROGRAMMER: Thomas Faber & Doug Lyons * PROGRAMMER: Thomas Faber & Doug Lyons
*/ */
#include <apitest.h> #include "precomp.h"
#define WIN32_NO_STATUS
#include <winreg.h>
START_TEST(RegEnumKey) START_TEST(RegEnumKey)
{ {

View file

@ -5,10 +5,7 @@
* PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org> * PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org>
*/ */
#include <apitest.h> #include "precomp.h"
#define WIN32_NO_STATUS
#include <winreg.h>
START_TEST(RegEnumValueW) START_TEST(RegEnumValueW)
{ {

View file

@ -4,15 +4,11 @@
* PURPOSE: Test for the RegOpenKeyExW alignment * PURPOSE: Test for the RegOpenKeyExW alignment
* PROGRAMMER: Mark Jansen (mark.jansen@reactos.org) * PROGRAMMER: Mark Jansen (mark.jansen@reactos.org)
*/ */
#include <apitest.h>
#define WIN32_NO_STATUS
#include <winreg.h>
#include "precomp.h"
#define TEST_STR L".exe" #define TEST_STR L".exe"
START_TEST(RegOpenKeyExW) START_TEST(RegOpenKeyExW)
{ {
char GccShouldNotAlignThis[20 * 2]; char GccShouldNotAlignThis[20 * 2];

View file

@ -5,10 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org> * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/ */
#include <apitest.h> #include "precomp.h"
#define WIN32_NO_STATUS
#include <winreg.h>
#define TestKeyAccess(da, er, es) TestKeyAccess_(__FILE__, __LINE__, da, er, es) #define TestKeyAccess(da, er, es) TestKeyAccess_(__FILE__, __LINE__, da, er, es)
static static

View file

@ -4,10 +4,8 @@
* PURPOSE: Test for the RegQueryValueW API * PURPOSE: Test for the RegQueryValueW API
* PROGRAMMER: Victor Martinez Calvo <victor.martinez@reactos.org> * PROGRAMMER: Victor Martinez Calvo <victor.martinez@reactos.org>
*/ */
#include <apitest.h>
#define WIN32_NO_STATUS #include "precomp.h"
#include <winreg.h>
static DWORD delete_key(HKEY hkey) static DWORD delete_key(HKEY hkey)
{ {

View file

@ -5,12 +5,8 @@
* PROGRAMMER: Timo Kreuzer <timo.kreuzer@reactos.org> * PROGRAMMER: Timo Kreuzer <timo.kreuzer@reactos.org>
*/ */
#include <apitest.h> #include "precomp.h"
#define WIN32_NO_STATUS
#include <windows.h>
#include <ndk/ntndk.h>
#include <winsafer.h>
#include <ntsecapi.h> #include <ntsecapi.h>
START_TEST(RtlEncryptMemory) START_TEST(RtlEncryptMemory)

View file

@ -5,11 +5,8 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org> * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/ */
#include <apitest.h> #include "precomp.h"
#define WIN32_NO_STATUS
#include <windows.h>
#include <ndk/ntndk.h>
#include <winsafer.h> #include <winsafer.h>
#define SaferIdentifyLevel(c, p, h, r) SaferIdentifyLevel(c, (PSAFER_CODE_PROPERTIES)(p), h, r) #define SaferIdentifyLevel(c, p, h, r) SaferIdentifyLevel(c, (PSAFER_CODE_PROPERTIES)(p), h, r)

View file

@ -6,10 +6,7 @@
* Thomas Faber <thomas.faber@reactos.org> * Thomas Faber <thomas.faber@reactos.org>
*/ */
#include <apitest.h> #include "precomp.h"
#include <winnls.h>
#include <winsvc.h>
#include <strsafe.h>
static char **argv; static char **argv;
static int argc; static int argc;

View file

@ -5,8 +5,8 @@
* PROGRAMMER: Hermes Belusca-Maito * PROGRAMMER: Hermes Belusca-Maito
*/ */
#include <apitest.h> #include "precomp.h"
#include <winsvc.h>
#include "svchlp.h" #include "svchlp.h"

View file

@ -5,10 +5,7 @@
* PROGRAMMER: Hermes Belusca-Maito * PROGRAMMER: Hermes Belusca-Maito
*/ */
#include <apitest.h> #include "precomp.h"
#define WIN32_NO_STATUS
#include <winbase.h>
START_TEST(eventlog) START_TEST(eventlog)
{ {

View file

@ -0,0 +1,12 @@
#ifndef _ADVAPI32_APITEST_PRECOMP_H_
#define _ADVAPI32_APITEST_PRECOMP_H_
#include <apitest.h>
#include <winreg.h>
#include <winsvc.h>
#include <winnls.h>
#include <strsafe.h>
#include <ntstatus.h>
#include <ndk/rtlfuncs.h>
#endif /* _ADVAPI32_APITEST_PRECOMP_H_ */

View file

@ -13,10 +13,7 @@
* the service process, without really passing it * the service process, without really passing it
*/ */
#include <apitest.h> #include "precomp.h"
#include <winnls.h>
#include <winsvc.h>
#include <strsafe.h>
static HANDLE hClientPipe = INVALID_HANDLE_VALUE; static HANDLE hClientPipe = INVALID_HANDLE_VALUE;
static WCHAR named_pipe_name[100]; // Shared: FIXME! static WCHAR named_pipe_name[100]; // Shared: FIXME!

View file

@ -7,8 +7,7 @@
* Hermes Belusca-Maito * Hermes Belusca-Maito
*/ */
// #include <apitest.h> #pragma once
/********** S E R V I C E ( C L I E N T ) M O D U L E S I D E *********/ /********** S E R V I C E ( C L I E N T ) M O D U L E S I D E *********/