mirror of
https://github.com/reactos/reactos.git
synced 2024-07-04 11:44:33 +00:00
[MSXML3_WINETEST] Add a PCH.
This commit is contained in:
parent
ffd9617271
commit
d3626819e6
|
@ -8,12 +8,12 @@ list(APPEND SOURCE
|
||||||
httpreq.c
|
httpreq.c
|
||||||
saxreader.c
|
saxreader.c
|
||||||
schema.c
|
schema.c
|
||||||
testlist.c
|
|
||||||
xmldoc.c
|
xmldoc.c
|
||||||
xmlparser.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_idl_headers(xmlparser_idlheader_test xmlparser.idl)
|
||||||
add_dependencies(msxml3_winetest xmlparser_idlheader_test)
|
add_dependencies(msxml3_winetest xmlparser_idlheader_test)
|
||||||
set_module_type(msxml3_winetest win32cui)
|
set_module_type(msxml3_winetest win32cui)
|
||||||
|
@ -23,4 +23,5 @@ if(MSVC)
|
||||||
add_importlibs(msxml3_winetest ntdll)
|
add_importlibs(msxml3_winetest ntdll)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_pch(msxml3_winetest precomp.h SOURCE)
|
||||||
add_rostests_file(TARGET msxml3_winetest)
|
add_rostests_file(TARGET msxml3_winetest)
|
||||||
|
|
|
@ -21,29 +21,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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#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>
|
#include <asptlb.h>
|
||||||
|
|
||||||
/* undef the #define in msxml2 so that we can access all versions */
|
/* 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
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#include "precomp.h"
|
||||||
#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>
|
|
||||||
|
|
||||||
|
|
||||||
#define EXPECT_HR(hr,hr_exp) \
|
#define EXPECT_HR(hr,hr_exp) \
|
||||||
ok(hr == hr_exp, "got 0x%08x, expected 0x%08x\n", 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
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#include "precomp.h"
|
||||||
#define _INC_WINDOWS
|
|
||||||
#define COM_NO_WINDOWS_H
|
|
||||||
|
|
||||||
#define COBJMACROS
|
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
|
||||||
#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>
|
|
||||||
|
|
||||||
static const WCHAR emptyW[] = {0};
|
static const WCHAR emptyW[] = {0};
|
||||||
|
|
||||||
|
|
|
@ -19,25 +19,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 WIN32_NO_STATUS
|
#include "precomp.h"
|
||||||
#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>
|
|
||||||
|
|
||||||
|
|
||||||
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);
|
||||||
|
|
||||||
|
|
|
@ -18,21 +18,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 WIN32_NO_STATUS
|
#include "precomp.h"
|
||||||
#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>
|
|
||||||
|
|
||||||
#define EXPECT_HR(hr,hr_exp) \
|
#define EXPECT_HR(hr,hr_exp) \
|
||||||
ok(hr == hr_exp, "got 0x%08x, expected 0x%08x\n", 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
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#include "precomp.h"
|
||||||
#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>
|
|
||||||
|
|
||||||
static HRESULT WINAPI nodefact_QueryInterface(IXMLNodeFactory *iface,
|
static HRESULT WINAPI nodefact_QueryInterface(IXMLNodeFactory *iface,
|
||||||
REFIID riid, void **ppvObject)
|
REFIID riid, void **ppvObject)
|
||||||
|
|
|
@ -16,29 +16,12 @@
|
||||||
* 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 WIN32_NO_STATUS
|
#include "precomp.h"
|
||||||
#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 <winnls.h>
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <ole2.h>
|
|
||||||
#include <mshtml.h>
|
|
||||||
#include <mshtmdid.h>
|
|
||||||
#include <initguid.h>
|
|
||||||
#include <perhist.h>
|
#include <perhist.h>
|
||||||
#include <docobj.h>
|
#include <docobj.h>
|
||||||
//#include "urlmon.h"
|
|
||||||
#include <xmlparser.h>
|
#define DISPID_HTMLDOCUMENTEVENTS2_ONREADYSTATECHANGE DISPID_READYSTATECHANGE
|
||||||
|
|
||||||
HRESULT (WINAPI *pCreateURLMoniker)(IMoniker*, LPCWSTR, IMoniker**);
|
HRESULT (WINAPI *pCreateURLMoniker)(IMoniker*, LPCWSTR, IMoniker**);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue