mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00:00
[MSXML3_WINETEST] Add a PCH.
This commit is contained in:
parent
ffd9617271
commit
d3626819e6
9 changed files with 40 additions and 135 deletions
|
@ -8,12 +8,12 @@ list(APPEND SOURCE
|
|||
httpreq.c
|
||||
saxreader.c
|
||||
schema.c
|
||||
testlist.c
|
||||
xmldoc.c
|
||||
xmlparser.c
|
||||
xmlview.c)
|
||||
xmlview.c
|
||||
precomp.h)
|
||||
|
||||
add_executable(msxml3_winetest ${SOURCE} rsrc.rc)
|
||||
add_executable(msxml3_winetest ${SOURCE} testlist.c rsrc.rc)
|
||||
add_idl_headers(xmlparser_idlheader_test xmlparser.idl)
|
||||
add_dependencies(msxml3_winetest xmlparser_idlheader_test)
|
||||
set_module_type(msxml3_winetest win32cui)
|
||||
|
@ -23,4 +23,5 @@ if(MSVC)
|
|||
add_importlibs(msxml3_winetest ntdll)
|
||||
endif()
|
||||
|
||||
add_pch(msxml3_winetest precomp.h SOURCE)
|
||||
add_rostests_file(TARGET msxml3_winetest)
|
||||
|
|
|
@ -21,29 +21,8 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
//#include "windows.h"
|
||||
|
||||
#include <wine/test.h>
|
||||
|
||||
#include <winnls.h>
|
||||
#include <ole2.h>
|
||||
#include <msxml.h>
|
||||
#include <msxml2.h>
|
||||
#include <msxml2did.h>
|
||||
#include <dispex.h>
|
||||
#include <objsafe.h>
|
||||
#include <initguid.h>
|
||||
#include <asptlb.h>
|
||||
|
||||
/* undef the #define in msxml2 so that we can access all versions */
|
||||
|
|
|
@ -18,30 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
//#include "windows.h"
|
||||
|
||||
#include <wine/test.h>
|
||||
|
||||
#include <winnls.h>
|
||||
#include <wingdi.h>
|
||||
#include <ole2.h>
|
||||
//#include "msxml2.h"
|
||||
//#include "msxml2did.h"
|
||||
//#include "dispex.h"
|
||||
#include <initguid.h>
|
||||
#include <objsafe.h>
|
||||
#include <mshtml.h>
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
#define EXPECT_HR(hr,hr_exp) \
|
||||
ok(hr == hr_exp, "got 0x%08x, expected 0x%08x\n", hr, hr_exp)
|
||||
|
|
26
modules/rostests/winetests/msxml3/precomp.h
Normal file
26
modules/rostests/winetests/msxml3/precomp.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#ifndef _MSXML3_WINETEST_PRECOMP_H_
|
||||
#define _MSXML3_WINETEST_PRECOMP_H_
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <wine/test.h>
|
||||
|
||||
#include <winnls.h>
|
||||
#include <wingdi.h>
|
||||
#include <initguid.h>
|
||||
#include <ole2.h>
|
||||
#include <msxml2.h>
|
||||
#include <msxml2did.h>
|
||||
#include <objsafe.h>
|
||||
#include <mshtml.h>
|
||||
#include <xmlparser.h>
|
||||
|
||||
#endif /* !_MSXML3_WINETEST_PRECOMP_H_ */
|
|
@ -20,24 +20,9 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
#include "precomp.h"
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <wine/test.h>
|
||||
//#include "windows.h"
|
||||
#include <winnls.h>
|
||||
#include <ole2.h>
|
||||
#include <msxml2.h>
|
||||
#include <msxml2did.h>
|
||||
//#include "ocidl.h"
|
||||
#include <dispex.h>
|
||||
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
|
||||
|
||||
static const WCHAR emptyW[] = {0};
|
||||
|
||||
|
|
|
@ -19,25 +19,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
//#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#define COBJMACROS
|
||||
|
||||
#include <wine/test.h>
|
||||
|
||||
#include <initguid.h>
|
||||
//#include "windows.h"
|
||||
#include <winnls.h>
|
||||
#include <ole2.h>
|
||||
#include <msxml2.h>
|
||||
#undef CLSID_DOMDocument
|
||||
#include <msxml2did.h>
|
||||
#include <dispex.h>
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
|
||||
|
||||
|
|
|
@ -18,21 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <wine/test.h>
|
||||
|
||||
//#include <stdio.h>
|
||||
//#include "windows.h"
|
||||
#include <winnls.h>
|
||||
#include <ole2.h>
|
||||
#include <msxml2.h>
|
||||
#include <msxml2did.h>
|
||||
#include <ocidl.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define EXPECT_HR(hr,hr_exp) \
|
||||
ok(hr == hr_exp, "got 0x%08x, expected 0x%08x\n", hr, hr_exp)
|
||||
|
|
|
@ -18,21 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
//#include <stdio.h>
|
||||
//#include <assert.h>
|
||||
|
||||
#include <wine/test.h>
|
||||
|
||||
//#include "windows.h"
|
||||
#include <ole2.h>
|
||||
#include <xmlparser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static HRESULT WINAPI nodefact_QueryInterface(IXMLNodeFactory *iface,
|
||||
REFIID riid, void **ppvObject)
|
||||
|
|
|
@ -16,29 +16,12 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
#include "precomp.h"
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
//#include <stdio.h>
|
||||
//#include <assert.h>
|
||||
|
||||
#include <wine/test.h>
|
||||
|
||||
//#include "windows.h"
|
||||
#include <winnls.h>
|
||||
#include <wingdi.h>
|
||||
#include <ole2.h>
|
||||
#include <mshtml.h>
|
||||
#include <mshtmdid.h>
|
||||
#include <initguid.h>
|
||||
#include <perhist.h>
|
||||
#include <docobj.h>
|
||||
//#include "urlmon.h"
|
||||
#include <xmlparser.h>
|
||||
|
||||
#define DISPID_HTMLDOCUMENTEVENTS2_ONREADYSTATECHANGE DISPID_READYSTATECHANGE
|
||||
|
||||
HRESULT (WINAPI *pCreateURLMoniker)(IMoniker*, LPCWSTR, IMoniker**);
|
||||
|
||||
|
|
Loading…
Reference in a new issue