[MSHTML_WINETEST] Add a PCH.

This commit is contained in:
Amine Khaldi 2017-12-18 13:43:24 +01:00
parent 98ca8ad114
commit ba54c5644e
14 changed files with 67 additions and 145 deletions

View file

@ -13,10 +13,14 @@ list(APPEND SOURCE
protocol.c protocol.c
script.c script.c
style.c style.c
testlist.c xmlhttprequest.c
xmlhttprequest.c) precomp.h)
add_executable(mshtml_winetest ${SOURCE} rsrc.rc) add_executable(mshtml_winetest
${SOURCE}
guid.c
testlist.c
rsrc.rc)
list(APPEND mshtml_winetest_rc_deps list(APPEND mshtml_winetest_rc_deps
${CMAKE_CURRENT_BINARY_DIR}/test_tlb.tlb ${CMAKE_CURRENT_BINARY_DIR}/test_tlb.tlb
@ -33,4 +37,5 @@ target_link_libraries(mshtml_winetest uuid strmiids)
set_module_type(mshtml_winetest win32cui) set_module_type(mshtml_winetest win32cui)
add_importlibs(mshtml_winetest wininet ole32 oleaut32 user32 gdi32 urlmon advapi32 msvcrt kernel32) add_importlibs(mshtml_winetest wininet ole32 oleaut32 user32 gdi32 urlmon advapi32 msvcrt kernel32)
add_dependencies(mshtml_winetest test_tlb_header stdole2) add_dependencies(mshtml_winetest test_tlb_header stdole2)
add_pch(mshtml_winetest precomp.h SOURCE)
add_rostests_file(TARGET mshtml_winetest) add_rostests_file(TARGET mshtml_winetest)

View file

@ -16,27 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define COBJMACROS #include "precomp.h"
#define CONST_VTABLE
#include <wine/test.h>
//#include <stdarg.h>
#include <stdio.h>
//#include "windef.h"
//#include "winbase.h"
//#include "ole2.h"
#include <mshtml.h>
//#include "docobj.h"
#include <hlink.h>
//#include "dispex.h"
#include <mshtmhst.h>
//#include "activscp.h"
//#include "objsafe.h"
#include <mshtmdid.h>
#include "mshtml_test.h"
#include <initguid.h>
#include <test_tlb.h> #include <test_tlb.h>
#define DEFINE_EXPECT(func) \ #define DEFINE_EXPECT(func) \

View file

@ -16,27 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define COBJMACROS #include "precomp.h"
#define CONST_VTABLE
#include <wine/test.h>
//#include <stdarg.h>
#include <stdio.h> #include <stdio.h>
//#include "windef.h"
//#include "winbase.h"
//#include "ole2.h"
#include <mshtml.h>
#include <mshtmcid.h>
#include <mshtmhst.h>
//#include "docobj.h"
#include <hlink.h>
//#include "dispex.h"
#include "mshtml_test.h"
#include <objsafe.h>
#include <htiface.h>
#include <tlogstg.h>
static INT (WINAPI *pLCIDToLocaleName)(LCID,LPWSTR,INT,DWORD); static INT (WINAPI *pLCIDToLocaleName)(LCID,LPWSTR,INT,DWORD);
static LANGID (WINAPI *pGetUserDefaultUILanguage)(void); static LANGID (WINAPI *pGetUserDefaultUILanguage)(void);

View file

@ -16,21 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define COBJMACROS #include "precomp.h"
#define CONST_VTABLE
#include <wine/test.h>
//#include <stdarg.h>
#include <stdio.h>
//#include "windef.h"
//#include "winbase.h"
//#include "ole2.h"
#include <mshtml.h>
#include <mshtmdid.h>
#include <docobj.h> #include <docobj.h>
#include <hlink.h>
//#include "dispex.h"
#define DEFINE_EXPECT(func) \ #define DEFINE_EXPECT(func) \
static BOOL expect_ ## func = FALSE, called_ ## func = FALSE static BOOL expect_ ## func = FALSE, called_ ## func = FALSE

View file

@ -0,0 +1,15 @@
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
#include <stdarg.h>
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#include <windef.h>
#include <winbase.h>
#include <objbase.h>
#include <initguid.h>
#include <dispex.h>
#include <test_tlb.h>
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */

View file

@ -16,35 +16,16 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define COBJMACROS #include "precomp.h"
#define CONST_VTABLE
#include <wine/test.h>
//#include <stdarg.h>
#include <stdio.h>
//#include "windef.h"
//#include "winbase.h"
#include <initguid.h>
//#include "ole2.h"
#include <mshtml.h>
//#include "docobj.h"
#include <docobjectservice.h>
#include <wininet.h>
#include <mshtmhst.h>
#include <mshtmdid.h>
#include <mshtmcid.h>
//#include "hlink.h"
//#include "dispex.h"
#include <idispids.h> #include <idispids.h>
#include <shlguid.h> #include <shlguid.h>
#include <shdeprecated.h> #include <shdeprecated.h>
#include <perhist.h> #include <perhist.h>
//#include "shobjidl.h"
#include <htiface.h>
#include <tlogstg.h>
#include <exdispid.h> #include <exdispid.h>
#include "mshtml_test.h"
#include <initguid.h>
#include <docobjectservice.h>
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0); DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
DEFINE_GUID(IID_IProxyManager,0x00000008,0x0000,0x0000,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46); DEFINE_GUID(IID_IProxyManager,0x00000008,0x0000,0x0000,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);

View file

@ -16,13 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define COBJMACROS #include "precomp.h"
#define CONST_VTABLE
#include <wine/test.h>
#include "mshtml.h"
#include "wininet.h"
struct location_test { struct location_test {
const char *name; const char *name;

View file

@ -16,15 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define COBJMACROS #include "precomp.h"
#include <wine/test.h>
//#include <stdarg.h>
//#include "windef.h"
//#include "winbase.h"
//#include "ole2.h"
//#include "initguid.h"
#include <optary.h> #include <optary.h>
static void test_HTMLLoadOptions(void) static void test_HTMLLoadOptions(void)

View file

@ -16,9 +16,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#pragma once
/* Check if Internet Explorer is configured to run in "Enhanced Security Configuration" (aka hardened mode) */ /* Check if Internet Explorer is configured to run in "Enhanced Security Configuration" (aka hardened mode) */
/* Note: this code is duplicated in dlls/mshtml/tests/mshtml_test.h and dlls/urlmon/tests/sec_mgr.c */ /* Note: this code is duplicated in dlls/mshtml/tests/mshtml_test.h and dlls/urlmon/tests/sec_mgr.c */
static BOOL is_ie_hardened(void) static inline BOOL is_ie_hardened(void)
{ {
HKEY zone_map; HKEY zone_map;
DWORD ie_harden, type, size; DWORD ie_harden, type, size;

View file

@ -0,0 +1,28 @@
#ifndef _MSHTML_WINETEST_PRECOMP_H_
#define _MSHTML_WINETEST_PRECOMP_H_
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define COBJMACROS
#define CONST_VTABLE
#include <wine/test.h>
#include <wingdi.h>
#include <winnls.h>
#include <ole2.h>
#include <mshtml.h>
#include <hlink.h>
#include <mshtmhst.h>
#include <mshtmdid.h>
#include <mshtmcid.h>
#include <objsafe.h>
#include <htiface.h>
#include <tlogstg.h>
#include <winreg.h>
#include <wininet.h>
#include "mshtml_test.h"
#endif /* !_MSHTML_WINETEST_PRECOMP_H_ */

View file

@ -16,18 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define COBJMACROS #include "precomp.h"
#include <wine/test.h>
//#include <stdarg.h>
#include <stdio.h>
//#include "windef.h"
//#include "winbase.h"
//#include "ole2.h"
#include <urlmon.h>
#include <shlwapi.h> #include <shlwapi.h>
#include <wininet.h>
#include <initguid.h> #include <initguid.h>

View file

@ -16,28 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define COBJMACROS #include "precomp.h"
#define CONST_VTABLE
#include <wine/test.h>
//#include <stdarg.h>
#include <stdio.h>
//#include "windef.h"
//#include "winbase.h"
//#include "ole2.h"
#include <wininet.h>
//#include "docobj.h"
//#include "dispex.h"
#include <hlink.h>
#include <mshtml.h>
#include <mshtmhst.h>
//#include "initguid.h"
//#include "activscp.h"
#include <activdbg.h> #include <activdbg.h>
#include <objsafe.h>
#include <mshtmdid.h>
#include "mshtml_test.h"
DEFINE_GUID(CLSID_IdentityUnmarshal,0x0000001b,0x0000,0x0000,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46); DEFINE_GUID(CLSID_IdentityUnmarshal,0x0000001b,0x0000,0x0000,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);

View file

@ -16,19 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define COBJMACROS #include "precomp.h"
#define CONST_VTABLE
#include <wine/test.h>
//#include <stdarg.h>
//#include <stdio.h>
//#include "windef.h"
//#include "winbase.h"
//#include "ole2.h"
#include <mshtml.h>
//#include "mshtmhst.h"
//#include "docobj.h"
static int strcmp_wa(LPCWSTR strw, const char *stra) static int strcmp_wa(LPCWSTR strw, const char *stra)
{ {

View file

@ -16,15 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define COBJMACROS #include "precomp.h"
#include <wine/test.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "ole2.h"
#include "mshtml.h"
static BSTR a2bstr(const char *str) static BSTR a2bstr(const char *str)
{ {