mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 10:46:58 +00:00
[WINDOWSCODECS_WINETEST] Add a PCH.
This commit is contained in:
parent
d3626819e6
commit
7ce46d59b4
15 changed files with 55 additions and 183 deletions
|
@ -13,10 +13,14 @@ list(APPEND SOURCE
|
|||
pngformat.c
|
||||
propertybag.c
|
||||
stream.c
|
||||
testlist.c
|
||||
tiffformat.c)
|
||||
tiffformat.c
|
||||
precomp.h)
|
||||
|
||||
add_executable(windowscodecs_winetest
|
||||
${SOURCE}
|
||||
guid.c
|
||||
testlist.c)
|
||||
|
||||
add_executable(windowscodecs_winetest ${SOURCE})
|
||||
set_module_type(windowscodecs_winetest win32cui)
|
||||
add_importlibs(windowscodecs_winetest windowscodecs oleaut32 ole32 propsys user32 gdi32 shlwapi msvcrt kernel32)
|
||||
|
||||
|
@ -24,4 +28,5 @@ if(MSVC)
|
|||
add_importlibs(windowscodecs_winetest ntdll)
|
||||
endif()
|
||||
|
||||
add_pch(windowscodecs_winetest precomp.h SOURCE)
|
||||
add_rostests_file(TARGET windowscodecs_winetest)
|
||||
|
|
|
@ -17,24 +17,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
//#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
//#include <math.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wingdi.h>
|
||||
#include <objbase.h>
|
||||
#include <wincodec.h>
|
||||
#include <wine/test.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static IWICImagingFactory *factory;
|
||||
|
||||
|
|
|
@ -16,22 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <math.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <initguid.h>
|
||||
#include <ole2.h>
|
||||
//#include "wincodec.h"
|
||||
#include <wincodecsdk.h>
|
||||
#include <wine/test.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static const char testbmp_24bpp[] = {
|
||||
/* BITMAPFILEHEADER */
|
||||
|
|
|
@ -17,23 +17,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wingdi.h>
|
||||
#include <ole2.h>
|
||||
#include <wincodecsdk.h>
|
||||
#include <wine/test.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static IWICImagingFactory *factory;
|
||||
|
||||
|
|
|
@ -16,20 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <ole2.h>
|
||||
#include <wincodec.h>
|
||||
#include <wine/test.h>
|
||||
#include "precomp.h"
|
||||
|
||||
HRESULT WINAPI WICCreateImagingFactory_Proxy(UINT, IWICImagingFactory**);
|
||||
|
||||
|
|
12
modules/rostests/winetests/windowscodecs/guid.c
Normal file
12
modules/rostests/winetests/windowscodecs/guid.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <initguid.h>
|
||||
#include <objbase.h>
|
||||
#include <wincodecsdk.h>
|
||||
|
||||
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
|
|
@ -16,20 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
//#include <math.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <objbase.h>
|
||||
#include <wincodec.h>
|
||||
#include <wine/test.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static unsigned char testico_bad_icondirentry_size[] = {
|
||||
/* ICONDIR */
|
||||
|
|
|
@ -16,22 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
//#include <stdarg.h>
|
||||
//#include <math.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <objbase.h>
|
||||
//#include "wincodec.h"
|
||||
#include <wincodecsdk.h>
|
||||
#include <wine/test.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include <initguid.h>
|
||||
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
|
||||
|
|
|
@ -17,26 +17,10 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
//#include <stdarg.h>
|
||||
//#include <math.h>
|
||||
#include <assert.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winnls.h>
|
||||
#include <winreg.h>
|
||||
#include <ole2.h>
|
||||
//#include "wincodec.h"
|
||||
#include <wincodecsdk.h>
|
||||
#include <propvarutil.h>
|
||||
#include <wine/test.h>
|
||||
|
||||
#include <initguid.h>
|
||||
DEFINE_GUID(IID_MdbrUnknown, 0x00240e6f,0x3f23,0x4432,0xb0,0xcc,0x48,0xd5,0xbb,0xff,0x6c,0x36);
|
||||
|
|
|
@ -17,20 +17,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <assert.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <objbase.h>
|
||||
#include <wincodec.h>
|
||||
#include <wine/test.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static IWICImagingFactory *factory;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012,2016 Dmitry Timoshkov
|
||||
* Copyright 2012, 2016 Dmitry Timoshkov
|
||||
* Copyright 2012 Hans Leidekker for CodeWeavers
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
|
@ -17,21 +17,8 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
//#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <ole2.h>
|
||||
#include <wincodec.h>
|
||||
#include <wine/test.h>
|
||||
#include <winreg.h>
|
||||
#include <shlwapi.h>
|
||||
|
||||
/* 1x1 pixel PNG image */
|
||||
|
|
22
modules/rostests/winetests/windowscodecs/precomp.h
Normal file
22
modules/rostests/winetests/windowscodecs/precomp.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef _WINDOWSCODECS_WINETEST_PRECOMP_H_
|
||||
#define _WINDOWSCODECS_WINETEST_PRECOMP_H_
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <stdio.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 <winreg.h>
|
||||
#include <ole2.h>
|
||||
#include <wincodecsdk.h>
|
||||
|
||||
#endif /* _WINDOWSCODECS_WINETEST_PRECOMP_H_ */
|
|
@ -16,22 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
//#include <math.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <ole2.h>
|
||||
//#include "wincodec.h"
|
||||
#include <wincodecsdk.h>
|
||||
#include <wine/test.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static const WCHAR wszTestProperty1[] = {'P','r','o','p','e','r','t','y','1',0};
|
||||
static const WCHAR wszTestProperty2[] = {'P','r','o','p','e','r','t','y','2',0};
|
||||
|
|
|
@ -16,15 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <wine/test.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
#include <ole2.h>
|
||||
#include <wincodec.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static void test_StreamOnMemory(void)
|
||||
{
|
||||
|
|
|
@ -16,20 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
//#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <ole2.h>
|
||||
#include <wincodec.h>
|
||||
#include <wine/test.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define IFD_BYTE 1
|
||||
#define IFD_ASCII 2
|
||||
|
|
Loading…
Reference in a new issue