mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 07:09:46 +00:00
[MSHTML_WINETEST] Add a PCH.
This commit is contained in:
parent
98ca8ad114
commit
ba54c5644e
14 changed files with 67 additions and 145 deletions
|
@ -13,10 +13,14 @@ list(APPEND SOURCE
|
|||
protocol.c
|
||||
script.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
|
||||
${CMAKE_CURRENT_BINARY_DIR}/test_tlb.tlb
|
||||
|
@ -33,4 +37,5 @@ target_link_libraries(mshtml_winetest uuid strmiids)
|
|||
set_module_type(mshtml_winetest win32cui)
|
||||
add_importlibs(mshtml_winetest wininet ole32 oleaut32 user32 gdi32 urlmon advapi32 msvcrt kernel32)
|
||||
add_dependencies(mshtml_winetest test_tlb_header stdole2)
|
||||
add_pch(mshtml_winetest precomp.h SOURCE)
|
||||
add_rostests_file(TARGET mshtml_winetest)
|
||||
|
|
|
@ -16,27 +16,8 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
#include "precomp.h"
|
||||
|
||||
#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>
|
||||
|
||||
#define DEFINE_EXPECT(func) \
|
||||
|
|
|
@ -16,27 +16,10 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
#include "precomp.h"
|
||||
|
||||
#include <wine/test.h>
|
||||
//#include <stdarg.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 LANGID (WINAPI *pGetUserDefaultUILanguage)(void);
|
||||
|
||||
|
|
|
@ -16,21 +16,9 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
#include "precomp.h"
|
||||
|
||||
#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 <hlink.h>
|
||||
//#include "dispex.h"
|
||||
|
||||
#define DEFINE_EXPECT(func) \
|
||||
static BOOL expect_ ## func = FALSE, called_ ## func = FALSE
|
||||
|
|
15
modules/rostests/winetests/mshtml/guid.c
Normal file
15
modules/rostests/winetests/mshtml/guid.c
Normal 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 */
|
|
@ -16,35 +16,16 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
#include "precomp.h"
|
||||
|
||||
#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 <shlguid.h>
|
||||
#include <shdeprecated.h>
|
||||
#include <perhist.h>
|
||||
//#include "shobjidl.h"
|
||||
#include <htiface.h>
|
||||
#include <tlogstg.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(IID_IProxyManager,0x00000008,0x0000,0x0000,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
|
||||
|
|
|
@ -16,13 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
#include <wine/test.h>
|
||||
|
||||
#include "mshtml.h"
|
||||
#include "wininet.h"
|
||||
#include "precomp.h"
|
||||
|
||||
struct location_test {
|
||||
const char *name;
|
||||
|
|
|
@ -16,15 +16,8 @@
|
|||
* 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>
|
||||
|
||||
static void test_HTMLLoadOptions(void)
|
||||
|
|
|
@ -16,9 +16,11 @@
|
|||
* 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) */
|
||||
/* 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;
|
||||
DWORD ie_harden, type, size;
|
||||
|
|
28
modules/rostests/winetests/mshtml/precomp.h
Normal file
28
modules/rostests/winetests/mshtml/precomp.h
Normal 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_ */
|
|
@ -16,18 +16,9 @@
|
|||
* 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 <wininet.h>
|
||||
|
||||
#include <initguid.h>
|
||||
|
||||
|
|
|
@ -16,28 +16,9 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
#include "precomp.h"
|
||||
|
||||
#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 <objsafe.h>
|
||||
#include <mshtmdid.h>
|
||||
#include "mshtml_test.h"
|
||||
|
||||
DEFINE_GUID(CLSID_IdentityUnmarshal,0x0000001b,0x0000,0x0000,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
|
||||
|
||||
|
|
|
@ -16,19 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define COBJMACROS
|
||||
#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"
|
||||
#include "precomp.h"
|
||||
|
||||
static int strcmp_wa(LPCWSTR strw, const char *stra)
|
||||
{
|
||||
|
|
|
@ -16,15 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <wine/test.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "ole2.h"
|
||||
#include "mshtml.h"
|
||||
#include "precomp.h"
|
||||
|
||||
static BSTR a2bstr(const char *str)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue