mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[USER32_APITEST] Add a PCH.
This commit is contained in:
parent
283bbe7346
commit
c39b0fc667
39 changed files with 67 additions and 196 deletions
|
@ -1,4 +1,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
|
||||
{
|
||||
WNDCLASSEXW wcex;
|
||||
|
|
|
@ -5,14 +5,7 @@
|
|||
* PROGRAMMERS: Giannis Adamopoulos
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <msgtrace.h>
|
||||
#include <user32testhelpers.h>
|
||||
|
||||
#define DESKTOP_ALL_ACCESS 0x01ff
|
||||
#include "precomp.h"
|
||||
|
||||
typedef struct {
|
||||
DWORD tid;
|
||||
|
|
|
@ -38,13 +38,13 @@ list(APPEND SOURCE
|
|||
TrackMouseEvent.c
|
||||
WndProc.c
|
||||
wsprintf.c
|
||||
testlist.c
|
||||
user32_apitest.rc)
|
||||
precomp.h)
|
||||
|
||||
add_executable(user32_apitest ${SOURCE})
|
||||
add_executable(user32_apitest ${SOURCE} testlist.c user32_apitest.rc)
|
||||
target_link_libraries(user32_apitest wine ${PSEH_LIB})
|
||||
set_module_type(user32_apitest win32cui)
|
||||
add_importlibs(user32_apitest advapi32 gdi32 user32 msvcrt kernel32 ntdll)
|
||||
add_pch(user32_apitest precomp.h SOURCE)
|
||||
add_rostests_file(TARGET user32_apitest)
|
||||
|
||||
add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/verclasstest1.manifest")
|
||||
|
|
|
@ -5,12 +5,7 @@
|
|||
* PROGRAMMERS: Andreas Maier
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define TEST_MAX_MSG 50
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winuser.h>
|
||||
#include <wingdi.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(CreateIconFromResourceEx)
|
||||
{
|
||||
|
@ -89,4 +86,4 @@ START_TEST(CreateIconFromResourceEx)
|
|||
ok(hcur1 == NULL, "\n");
|
||||
err = GetLastError();
|
||||
ok(err == 0x0badf00d, "err: %lu\n", err);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,10 +6,7 @@
|
|||
* Mark Jansen
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <winuser.h>
|
||||
#include <msgtrace.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static void Test_Params(void)
|
||||
{
|
||||
|
|
|
@ -5,12 +5,7 @@
|
|||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winuser.h>
|
||||
#include <undocuser.h>
|
||||
#include <msgtrace.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include "precomp.h"
|
||||
|
||||
HWND hWnd1, hWnd2, hWnd3, hWnd4;
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(DestroyCursorIcon)
|
||||
{
|
||||
|
@ -51,4 +48,4 @@ START_TEST(DestroyCursorIcon)
|
|||
/* clean up */
|
||||
DeleteObject(iconinfo.hbmMask);
|
||||
DeleteObject(iconinfo.hbmColor);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(DrawIconEx)
|
||||
{
|
||||
|
@ -55,4 +52,4 @@ START_TEST(DrawIconEx)
|
|||
hbmp = SelectObject(hdc, hbmp);
|
||||
DeleteObject(hbmp);
|
||||
DeleteDC(hdc);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,13 +5,7 @@
|
|||
* PROGRAMMERS: Giannis Adamopoulos
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
|
||||
#include <msgtrace.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include "precomp.h"
|
||||
|
||||
HWND hWnd1, hWnd2;
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define SIZEOF_DEVMODEW_300_W 188
|
||||
#define SIZEOF_DEVMODEW_400_W 212
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
* PROGRAMMERS: Timo Kreuzer
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <wine/test.h>
|
||||
#include <windows.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define DCX_USESTYLE 0x00010000
|
||||
|
||||
|
@ -446,4 +444,3 @@ START_TEST(GetDCEx)
|
|||
Test_GetDCEx_CS_Mixed();
|
||||
Test_GetDCEx_CS_SwitchedStyle();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
|
||||
#include "resource.h"
|
||||
#include "precomp.h"
|
||||
|
||||
// FIXME user32
|
||||
|
||||
|
@ -278,5 +273,3 @@ START_TEST(GetIconInfo)
|
|||
/* Delete cursor */
|
||||
DestroyCursor(hcursor);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMERS: Giannis Adamopoulos
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winuser.h>
|
||||
#include <assert.h>
|
||||
#include "precomp.h"
|
||||
|
||||
HHOOK hKbdHook, hKbdLLHook;
|
||||
|
||||
|
@ -133,4 +130,4 @@ void Test_GetKeyState()
|
|||
START_TEST(GetKeyState)
|
||||
{
|
||||
Test_GetKeyState();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
void Test_GetMessage(HWND hWnd)
|
||||
{
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMERS: Timo Kreuzer
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
void Test_GetSystemMetrics()
|
||||
{
|
||||
|
@ -408,4 +405,3 @@ START_TEST(GetSystemMetrics)
|
|||
{
|
||||
Test_GetSystemMetrics();
|
||||
}
|
||||
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include <ndk/mmfuncs.h>
|
||||
#include <ndk/pstypes.h>
|
||||
#include <strsafe.h>
|
||||
|
@ -465,4 +464,4 @@ START_TEST(GetUserObjectInformation)
|
|||
{
|
||||
TestGetUserObjectInfoW();
|
||||
TestGetUserObjectInfoA();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define ALIGN_DOWN_BY(size, align) \
|
||||
((ULONG_PTR)(size) & ~((ULONG_PTR)(align) - 1))
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
* PROGRAMMERS: Magnus Olsen
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
typedef struct _LPK_LPEDITCONTROL_LIST
|
||||
{
|
||||
|
@ -106,4 +104,3 @@ START_TEST(InitializeLpkHooks)
|
|||
{
|
||||
Test_InitializeLpkHooks();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(LoadImage)
|
||||
{
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
|
||||
#include "resource.h"
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(LookupIconIdFromDirectoryEx)
|
||||
{
|
||||
|
@ -129,4 +124,4 @@ START_TEST(LookupIconIdFromDirectoryEx)
|
|||
ok(ChangeDisplaySettingsExW(NULL, &dm, NULL, 0, NULL) == DISP_CHANGE_SUCCESSFUL, "\n");
|
||||
|
||||
FreeResource(hMem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,12 +5,8 @@
|
|||
* PROGRAMMERS: Katayama Hirofumi MZ
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <apitest.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <windowsx.h>
|
||||
#include <dlgs.h>
|
||||
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMERS: Gregor Gullwi
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||
|
||||
|
@ -189,4 +186,3 @@ START_TEST(RealGetWindowClass)
|
|||
Test_ClassAtoms();
|
||||
Test_RealGetWindowClass();
|
||||
}
|
||||
|
||||
|
|
|
@ -5,14 +5,7 @@
|
|||
* PROGRAMMERS: Giannis Adamopoulos
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#define WIN32_NO_STATUS
|
||||
#include <ndk/rtlfuncs.h>
|
||||
|
||||
#include <wchar.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <undocuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static ATOM _RegisterClass(LPCWSTR lpwszClassName, HINSTANCE hInstance, UINT style, WNDPROC lpfnWndProc)
|
||||
{
|
||||
|
|
|
@ -5,12 +5,7 @@
|
|||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winuser.h>
|
||||
#include <shlobj.h>
|
||||
#include <undocshell.h>
|
||||
#include <undocuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define msg_hotkey(msg, id, mod, vk) do \
|
||||
{ \
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMERS: Timo Kreuzer
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
void Test_ScrollDC()
|
||||
{
|
||||
|
@ -75,4 +72,3 @@ START_TEST(ScrollDC)
|
|||
{
|
||||
Test_ScrollDC();
|
||||
}
|
||||
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMERS: Timo Kreuzer
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
void Test_ScrollWindowEx()
|
||||
{
|
||||
|
@ -61,4 +58,3 @@ START_TEST(ScrollWindowEx)
|
|||
{
|
||||
Test_ScrollWindowEx();
|
||||
}
|
||||
|
||||
|
|
|
@ -5,11 +5,7 @@
|
|||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <winuser.h>
|
||||
|
||||
#include <msgtrace.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static DWORD dwThread1;
|
||||
static DWORD dwThread2;
|
||||
|
|
|
@ -5,14 +5,7 @@
|
|||
* PROGRAMMERS: Giannis Adamopoulos
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <undocuser.h>
|
||||
|
||||
#include <msgtrace.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include "precomp.h"
|
||||
|
||||
HWND hWnd1, hWnd2;
|
||||
|
||||
|
|
|
@ -5,11 +5,7 @@
|
|||
* PROGRAMMERS: Giannis Adamopoulos
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <assert.h>
|
||||
#include "precomp.h"
|
||||
|
||||
HHOOK hMouseHookLL, hMouseHook;
|
||||
|
||||
|
|
|
@ -5,11 +5,7 @@
|
|||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winuser.h>
|
||||
#include <msgtrace.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static HWND hWndList[5 + 1];
|
||||
static const int hWndCount = sizeof(hWndList) / sizeof(hWndList[0]) - 1;
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <winuser.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static ATOM Atom1, Atom2, Atom3;
|
||||
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(SetScrollInfo)
|
||||
{
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(SetScrollRange)
|
||||
{
|
||||
|
|
|
@ -5,14 +5,7 @@
|
|||
* PROGRAMMERS: Giannis Adamopoulos
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <undocuser.h>
|
||||
|
||||
#include <msgtrace.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include "precomp.h"
|
||||
|
||||
HWND hWnd1, hWnd2;
|
||||
|
||||
|
@ -193,4 +186,4 @@ START_TEST(SystemParametersInfo)
|
|||
DestroyWindow(hWnd1);
|
||||
DestroyWindow(hWnd2);
|
||||
UnregisterClassW(L"sysparamstest", 0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,13 +5,7 @@
|
|||
* PROGRAMMERS: Giannis Adamopoulos
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <undocuser.h>
|
||||
|
||||
#include <msgtrace.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include "precomp.h"
|
||||
|
||||
HWND hWnd1, hWnd2, hWnd3;
|
||||
HHOOK hMouseHookLL, hMouseHook;
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMERS:
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include "precomp.h"
|
||||
|
||||
/* Used wine Redraw test for proof in principle. */
|
||||
|
||||
|
|
|
@ -6,18 +6,10 @@
|
|||
* Thomas Faber
|
||||
*/
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <apitest.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include <ndk/umtypes.h>
|
||||
#include <ndk/obfuncs.h>
|
||||
|
||||
#define DESKTOP_ALL_ACCESS 0x01ff
|
||||
|
||||
struct test_info {
|
||||
WCHAR* ExpectedWinsta;
|
||||
WCHAR* ExpectedDesktp;
|
||||
|
|
18
modules/rostests/apitests/user32/precomp.h
Normal file
18
modules/rostests/apitests/user32/precomp.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef _USER32_APITEST_PRECOMP_H_
|
||||
#define _USER32_APITEST_PRECOMP_H_
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <apitest.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <msgtrace.h>
|
||||
#include <user32testhelpers.h>
|
||||
#include <undocuser.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
#define DESKTOP_ALL_ACCESS 0x01ff
|
||||
|
||||
#endif /* _USER32_APITEST_PRECOMP_H_ */
|
Loading…
Reference in a new issue