ReactOS  0.4.15-dev-3428-g0609db5
GetStockObject.c File Reference
#include "precomp.h"
Include dependency graph for GetStockObject.c:

Go to the source code of this file.

Functions

void Test_GetStockObject ()
 
 START_TEST (GetStockObject)
 

Function Documentation

◆ START_TEST()

START_TEST ( GetStockObject  )

Definition at line 49 of file GetStockObject.c.

50 {
52 }
void Test_GetStockObject()

◆ Test_GetStockObject()

void Test_GetStockObject ( )

Definition at line 10 of file GetStockObject.c.

11 {
12  /* Test limits and error */
14  RTEST(GetStockObject(0) != NULL);
15  TEST(GetStockObject(20) != NULL);
16  RTEST(GetStockObject(21) != NULL);
17  RTEST(GetStockObject(-1) == NULL);
18  RTEST(GetStockObject(9) == NULL);
19  RTEST(GetStockObject(22) == NULL);
21 
22  /* Test for the stock bit */
24 
25  /* Test for correct types */
47 }
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define ERROR_SUCCESS
Definition: deptool.c:10
#define WHITE_PEN
Definition: wingdi.h:905
#define NULL_BRUSH
Definition: wingdi.h:901
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1040
#define WHITE_BRUSH
Definition: wingdi.h:902
#define GDI_OBJECT_TYPE_COLORSPACE
Definition: gdi.h:56
#define OEM_FIXED_FONT
Definition: wingdi.h:910
#define GDI_OBJECT_TYPE_BRUSH
Definition: gdi.h:52
#define DEVICE_DEFAULT_FONT
Definition: wingdi.h:908
#define NULL_PEN
Definition: wingdi.h:904
#define SYSTEM_FONT
Definition: wingdi.h:911
#define LTGRAY_BRUSH
Definition: wingdi.h:900
#define GRAY_BRUSH
Definition: wingdi.h:898
#define GDI_OBJECT_TYPE_PALETTE
Definition: gdi.h:49
#define GDI_HANDLE_GET_TYPE(h)
Definition: gdi.h:31
#define BLACK_BRUSH
Definition: wingdi.h:896
#define DEFAULT_PALETTE
Definition: wingdi.h:913
#define GDI_OBJECT_TYPE_PEN
Definition: gdi.h:54
#define TEST(x)
Definition: precomp.h:20
#define SetLastError(x)
Definition: compat.h:611
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
#define DEFAULT_GUI_FONT
Definition: wingdi.h:909
#define DKGRAY_BRUSH
Definition: wingdi.h:897
#define GDI_OBJECT_TYPE_BITMAP
Definition: gdi.h:48
#define ANSI_VAR_FONT
Definition: wingdi.h:907
#define BLACK_PEN
Definition: wingdi.h:903
#define NULL
Definition: types.h:112
#define ANSI_FIXED_FONT
Definition: wingdi.h:906
#define GDI_OBJECT_TYPE_FONT
Definition: gdi.h:50
#define GDI_HANDLE_STOCK_MASK
Definition: gdi.h:19
#define RTEST(x)
Definition: precomp.h:21
#define SYSTEM_FIXED_FONT
Definition: wingdi.h:912

Referenced by START_TEST().