mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 10:28:45 +00:00
[GDI32_WINETEST] Add a PCH.
This commit is contained in:
parent
cded6efd75
commit
95ec9464d3
16 changed files with 40 additions and 132 deletions
|
@ -16,9 +16,13 @@ list(APPEND SOURCE
|
|||
palette.c
|
||||
path.c
|
||||
pen.c
|
||||
testlist.c)
|
||||
precomp.h)
|
||||
|
||||
add_executable(gdi32_winetest
|
||||
${SOURCE}
|
||||
testlist.c
|
||||
resource.rc)
|
||||
|
||||
add_executable(gdi32_winetest ${SOURCE} resource.rc)
|
||||
set_module_type(gdi32_winetest win32cui)
|
||||
add_importlibs(gdi32_winetest gdi32 user32 advapi32 msvcrt kernel32)
|
||||
|
||||
|
@ -26,4 +30,5 @@ if(MSVC)
|
|||
add_importlibs(gdi32_winetest ntdll)
|
||||
endif()
|
||||
|
||||
add_pch(gdi32_winetest precomp.h SOURCE)
|
||||
add_rostests_file(TARGET gdi32_winetest)
|
||||
|
|
|
@ -19,25 +19,12 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include "ntstatus.h"
|
||||
#define WIN32_NO_STATUS
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "mmsystem.h"
|
||||
#include "wine/winternl.h"
|
||||
#ifndef __REACTOS__ /* CORE-11331 */
|
||||
#include "wine/ddk/d3dkmthk.h"
|
||||
#endif
|
||||
|
||||
#include "wine/test.h"
|
||||
|
||||
#ifndef __REACTOS__ /* CORE-11331 */
|
||||
static NTSTATUS (WINAPI *pD3DKMTCreateDCFromMemory)( D3DKMT_CREATEDCFROMMEMORY *desc );
|
||||
static NTSTATUS (WINAPI *pD3DKMTDestroyDCFromMemory)( const D3DKMT_DESTROYDCFROMMEMORY *desc );
|
||||
|
|
|
@ -18,14 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "precomp.h"
|
||||
|
||||
typedef struct _STOCK_BRUSH {
|
||||
COLORREF color;
|
||||
|
|
|
@ -19,10 +19,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "precomp.h"
|
||||
|
||||
static void test_GetRandomRgn(void)
|
||||
{
|
||||
|
|
|
@ -19,20 +19,9 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
#define WINVER 0x0501 /* request latest DEVMODE */
|
||||
#define NONAMELESSSTRUCT
|
||||
#define NONAMELESSUNION
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "winspool.h"
|
||||
#include "winerror.h"
|
||||
#include <winspool.h>
|
||||
|
||||
#ifndef LAYOUT_LTR
|
||||
#define LAYOUT_LTR 0
|
||||
|
|
|
@ -18,18 +18,9 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "wincrypt.h"
|
||||
#include "mmsystem.h" /* DIBINDEX */
|
||||
|
||||
#include "wine/test.h"
|
||||
#include <wincrypt.h>
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
|
|
|
@ -19,16 +19,9 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <assert.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "winnls.h"
|
||||
|
||||
#include "wine/test.h"
|
||||
#include <winnls.h>
|
||||
|
||||
static inline BOOL match_off_by_n(int a, int b, unsigned int n)
|
||||
{
|
||||
|
|
|
@ -19,15 +19,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "precomp.h"
|
||||
|
||||
static void test_gdi_objects(void)
|
||||
{
|
||||
|
|
|
@ -5,15 +5,7 @@
|
|||
* Unit tests for data structure packing
|
||||
*/
|
||||
|
||||
#define WINVER 0x0501
|
||||
#define _WIN32_IE 0x0501
|
||||
#define _WIN32_WINNT 0x0501
|
||||
|
||||
#define WINE_NOWINSOCK
|
||||
|
||||
#include "windows.h"
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "precomp.h"
|
||||
|
||||
/***********************************************************************
|
||||
* Compatibility macros
|
||||
|
|
|
@ -18,14 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winuser.h"
|
||||
#include "wingdi.h"
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "precomp.h"
|
||||
|
||||
static const WCHAR displayW[] = {'D','I','S','P','L','A','Y',0};
|
||||
|
||||
|
|
|
@ -19,14 +19,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "winerror.h"
|
||||
#include "precomp.h"
|
||||
|
||||
static DWORD (WINAPI *pSetLayout)(HDC hdc, DWORD layout);
|
||||
static DWORD (WINAPI *pGetLayout)(HDC hdc);
|
||||
|
|
|
@ -18,15 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "winerror.h"
|
||||
#include "precomp.h"
|
||||
|
||||
static LOGFONTA orig_lf;
|
||||
static BOOL emr_processed = FALSE;
|
||||
|
|
|
@ -18,15 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "mmsystem.h"
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "precomp.h"
|
||||
|
||||
static const PALETTEENTRY logpalettedata[8] = {
|
||||
{ 0x10, 0x20, 0x30, PC_NOCOLLAPSE },
|
||||
|
|
|
@ -19,17 +19,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
|
||||
#include "wine/test.h"
|
||||
|
||||
#include "winuser.h"
|
||||
#include "winerror.h"
|
||||
#include "precomp.h"
|
||||
|
||||
#define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
|
||||
|
||||
|
|
|
@ -18,14 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "precomp.h"
|
||||
|
||||
#define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
|
||||
#define expect2(expected, alt, got) ok(got == expected || got == alt, \
|
||||
|
|
16
modules/rostests/winetests/gdi32/precomp.h
Normal file
16
modules/rostests/winetests/gdi32/precomp.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#ifndef _GDI32_WINETEST_PRECOMP_H_
|
||||
#define _GDI32_WINETEST_PRECOMP_H_
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define NONAMELESSUNION
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <wine/test.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
#endif /* !_GDI32_WINETEST_PRECOMP_H_ */
|
Loading…
Reference in a new issue