[GDI32_APITEST] Add a PCH.

This commit is contained in:
Amine Khaldi 2017-12-02 21:00:06 +01:00
parent c2bdad2981
commit aee83c359c
74 changed files with 106 additions and 307 deletions

View File

@ -9,10 +9,7 @@
* Captured from firefox, embedded on reactos.org
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include "precomp.h"
typedef struct _fnt_res
{

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <stdio.h>
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
#define COUNT 26

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
void Test_AddFontResourceExW()
{

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
void Test_BeginPath()
{

View File

@ -73,10 +73,11 @@ list(APPEND SOURCE
SetWindowExtEx.c
SetWorldTransform.c
init.c
testlist.c)
precomp.h)
add_executable(gdi32_apitest ${SOURCE} resource.rc)
add_executable(gdi32_apitest ${SOURCE} testlist.c resource.rc)
target_link_libraries(gdi32_apitest ${PSEH_LIB} win32ksys)
set_module_type(gdi32_apitest win32cui)
add_importlibs(gdi32_apitest gdi32 user32 msvcrt kernel32 ntdll)
add_pch(gdi32_apitest precomp.h SOURCE)
add_rostests_file(TARGET gdi32_apitest)

View File

@ -5,8 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <windows.h>
#include "precomp.h"
typedef struct _RECT_TEST
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winddi.h>
#include "precomp.h"
typedef union
{

View File

@ -5,11 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#define DEFAULT_BITMAP 21
#include "precomp.h"
void Test_CreateBitmap_Params()
{

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Magnus Olsen
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
void Test_CreateBitmapIndirect()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include "precomp.h"
void Test_CreateCompatibleDC()
{

View File

@ -5,9 +5,8 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include "precomp.h"
#include <wingdi.h>
#include "init.h"
/* New color use parameter. See support.microsoft.com/kb/kbview/108497 */

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include "precomp.h"
#include "init.h"

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
#define INVALIDFONT "ThisFontDoesNotExist"

View File

@ -6,8 +6,7 @@
* Katayama Hirofumi MZ
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
#define trace_if(val, msg) do { if (!(val)) trace(msg); } while (0)

View File

@ -1,9 +1,5 @@
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include "precomp.h"
// FIXME user32
@ -204,5 +200,3 @@ START_TEST(CreateIconIndirect)
ok(iconinfo2.hbmColor == NULL, "\n");
}

View File

@ -5,12 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winddi.h>
#include <include/ntgdityp.h>
#include <include/ntgdihdl.h>
#include "precomp.h"
void Test_CreatePen()
{

View File

@ -5,7 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include "precomp.h"
void Test_CreateRectRgn()
{
@ -16,4 +16,3 @@ START_TEST(CreateRectRgn)
{
Test_CreateRectRgn();
}

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include "precomp.h"
void Test_DPtoLP_Params()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Magnus Olsen
*/
#include <apitest.h>
#include <wingdi.h>
#include <winddi.h>
#include "precomp.h"
void Test_EngAcquireSemaphore()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Magnus Olsen
*/
#include <apitest.h>
#include <wingdi.h>
#include <winddi.h>
#include "precomp.h"
void Test_EngCreateSemaphore()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Magnus Olsen
*/
#include <apitest.h>
#include <wingdi.h>
#include <winddi.h>
#include "precomp.h"
void Test_EngDeleteSemaphore()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Magnus Olsen
*/
#include <apitest.h>
#include <wingdi.h>
#include <winddi.h>
#include "precomp.h"
void Test_EngReleaseSemaphore()
{

View File

@ -5,12 +5,7 @@
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#include <winnls.h>
#include <wingdi.h>
#include <winddi.h>
#include <strsafe.h>
#include "precomp.h"
static BYTE ContextContinue;
static BYTE ContextStop;

View File

@ -5,18 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#define CLIPRGN 1
#define ok_rect(_prc, _left, _top, _right, _bottom) \
ok_int((_prc)->left, _left); \
ok_int((_prc)->top, _top); \
ok_int((_prc)->right, _right); \
ok_int((_prc)->bottom, _bottom); \
#include "precomp.h"
void Test_ExcludeClipRect()
{

View File

@ -5,13 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winddi.h>
#include <include/ntgdityp.h>
#include <include/ntgdihdl.h>
#include <stdio.h>
#include "precomp.h"
#define ok_lasterror(err) \
ok(GetLastError() == err, "expected last error " #err " but got 0x%lx\n", GetLastError());

View File

@ -5,9 +5,8 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include "precomp.h"
#include <windows.h>
#include <math.h>
VOID

View File

@ -5,9 +5,8 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <windows.h>
#include <stdio.h>
#include "precomp.h"
#include "init.h"
#if 0

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
HBITMAP WINAPI GdiConvertBitmap(HBITMAP hbm);

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
HBRUSH WINAPI GdiConvertBrush(HBRUSH hbr);

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
HDC WINAPI GdiConvertDC(HDC hdc);

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
HFONT WINAPI GdiConvertFont(HFONT);

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
HPALETTE WINAPI GdiConvertPalette(HPALETTE);

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
HRGN WINAPI GdiConvertRegion(HRGN);

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
BOOL WINAPI GdiDeleteLocalDC(HDC);

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
void Test_GdiGetCharDimensions()
{

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
HBRUSH WINAPI GdiGetLocalBrush(HBRUSH hbr);

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
HDC WINAPI GdiGetLocalDC(HDC);

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
BOOL WINAPI GdiReleaseLocalDC(HDC);

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
BOOL WINAPI GdiSetAttrs(HDC);

View File

@ -5,16 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#define ok_rect(_prc, _left, _top, _right, _bottom) \
ok_int((_prc)->left, _left); \
ok_int((_prc)->top, _top); \
ok_int((_prc)->right, _right); \
ok_int((_prc)->bottom, _bottom); \
#include "precomp.h"
void Test_GetClipBox()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include "precomp.h"
void Test_GetClipRgn()
{

View File

@ -5,13 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winddi.h>
#include <winuser.h>
#include <include/ntgdityp.h>
#include <include/ntgdihdl.h>
#include "precomp.h"
void Test_GetCurrentObject()
{

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
void Test_GetDIBColorTable()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include "precomp.h"
#include "init.h"

View File

@ -4,11 +4,8 @@
* PURPOSE: Test for GetFontResourceInfoW
* PROGRAMMERS: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
*/
#include <apitest.h>
#include <winuser.h>
#include <wingdi.h>
#include <winnls.h>
#include <stdio.h>
#include "precomp.h"
/* GetFontResourceInfoW is undocumented */
BOOL WINAPI GetFontResourceInfoW(LPCWSTR lpFileName, DWORD *pdwBufSize, void* lpBuffer, DWORD dwType);

View File

@ -5,11 +5,7 @@
* PROGRAMMERS: Ged Murphy
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include <strsafe.h>
#include "precomp.h"
#define ok_lasterrornotchanged() \
ok_err(0x12345)

View File

@ -5,13 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winddi.h>
#include <winuser.h>
#include <include/ntgdityp.h>
#include <include/ntgdihdl.h>
#include "precomp.h"
void
Test_General(void)

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Jérôme Gardou
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
void Test_GetPixel_1bpp()
{

View File

@ -5,13 +5,8 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include "precomp.h"
#include <stdio.h>
#include <wingdi.h>
#include <winuser.h>
#define CLIPRGN 1
#define METARGN 2
#define APIRGN 3
#define SYSRGN 4

View File

@ -5,15 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winddi.h>
#include <include/ntgdityp.h>
#include <include/ntgdihdl.h>
#define TEST(x) ok(x, #x"\n")
#define RTEST(x) ok(x, #x"\n")
#include "precomp.h"
void Test_GetStockObject()
{

View File

@ -5,14 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <stdio.h>
#include <wingdi.h>
#include <winuser.h>
#define TEST(x) ok(x, #x"\n")
#define RTEST(x) ok(x, #x"\n")
#include "precomp.h"
void Test_GetTextExtentExPoint()
{

View File

@ -5,12 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#define TEST(x) ok(x, #x"\n")
#define RTEST(x) ok(x, #x"\n")
#include "precomp.h"
void Test_GetTextFace()
{

View File

@ -5,10 +5,8 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include "precomp.h"
#include <wingdi.h>
#include <winuser.h>
#include "init.h"
void Test_MaskBlt_1bpp()

View File

@ -5,11 +5,9 @@
* PROGRAMMERS: Víctor Martínez Calvo ( victor.martinez@reactos.org )
*/
#include <apitest.h>
#include <wingdi.h>
#include <ndk/rtlfuncs.h>
#include <strsafe.h>
#include "precomp.h"
#include <ndk/rtlfuncs.h>
INT
APIENTRY

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#define CLIPRGN 1
#include "precomp.h"
void Test_OffsetClipRgn()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <windows.h>
#include <stdio.h>
#include "init.h"
#include "precomp.h"
void Test_OffsetRgn()
{

View File

@ -5,11 +5,9 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <windows.h>
#include <stdio.h>
#include "init.h"
#include "precomp.h"
#include "init.h"
void Test_PaintRgn()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <stdio.h>
#include <wingdi.h>
#include "precomp.h"
HBITMAP ghbmpTarget;
PULONG gpulTargetBits;

View File

@ -5,9 +5,8 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <stdio.h>
#include <wine/test.h>
#include <windows.h>
#include "precomp.h"
#include "init.h"
START_TEST(RealizePalette)
@ -19,4 +18,3 @@ START_TEST(RealizePalette)
ok_int(RealizePalette(ghdcDIB32), 0);
}

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Jérôme Gardou
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
void Test_Rectangle(void)
{

View File

@ -5,17 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <stdio.h>
#include <wingdi.h>
#include <winddi.h>
#include <winuser.h>
#include <include/ntgdityp.h>
#include <include/ntgdihdl.h>
#define TEST(x) ok(x, #x"\n")
#define RTEST(x) ok(x, #x"\n")
#include "precomp.h"
HDC hdc1, hdc2;

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org
*/
#include <apitest.h>
#include <winuser.h>
#include <wingdi.h>
#include "precomp.h"
START_TEST(SetBoundsRect)
{

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
void Test_Set(ULONG ulLine, HDC hdc, INT x, INT y, LPPOINT ppt, BOOL bExp, DWORD dwErrExp)
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include "precomp.h"
void Test_SetDCPenColor()
{

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Jérôme Gardou
*/
#include <apitest.h>
#include <wingdi.h>
#include "precomp.h"
void Test_SetDIBits()
{

View File

@ -5,9 +5,8 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include "precomp.h"
#include <wingdi.h>
#include "init.h"
static void

View File

@ -5,13 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#define TEST(x) ok(x, #x"\n")
#define RTEST(x) ok(x, #x"\n")
#include "precomp.h"
void Test_SetMapMode()
{

View File

@ -5,9 +5,8 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include "precomp.h"
#include <wingdi.h>
#include <mmsystem.h>
static struct

View File

@ -5,12 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#define TEST(x) ok(x, #x"\n")
#include "precomp.h"
#define NUM_SYSCOLORS 31

View File

@ -5,13 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#define TEST(x) ok(x, #x"\n")
#define RTEST(x) ok(x, #x"\n")
#include "precomp.h"
void Test_SetWindowExtEx()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include "precomp.h"
void Test_SetWorldTransform()
{

View File

@ -1,7 +1,6 @@
#include <stdio.h>
#include <windef.h>
#include <wingdi.h>
#include "precomp.h"
#include "init.h"
HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;

View File

@ -1,3 +1,4 @@
#pragma once
extern HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
extern HBITMAP ghbmpDIB1, ghbmpDIB4, ghbmpDIB8, ghbmpDIB16, ghbmpDIB24, ghbmpDIB32;

View File

@ -0,0 +1,25 @@
#ifndef _GDI32_APITEST_PRECOMP_H_
#define _GDI32_APITEST_PRECOMP_H_
#include <apitest.h>
#include <wingdi.h>
#include <winuser.h>
#include <winddi.h>
#include <winnls.h>
#include <include/ntgdityp.h>
#include <include/ntgdihdl.h>
#include <stdio.h>
#include <strsafe.h>
#define CLIPRGN 1
#define TEST(x) ok(x, #x"\n")
#define RTEST(x) ok(x, #x"\n")
#define ok_rect(_prc, _left, _top, _right, _bottom) \
ok_int((_prc)->left, _left); \
ok_int((_prc)->top, _top); \
ok_int((_prc)->right, _right); \
ok_int((_prc)->bottom, _bottom); \
#endif /* _GDI32_APITEST_PRECOMP_H_ */