ReactOS  0.4.14-dev-114-gc8cbd56
test.h File Reference
#include <stdarg.h>
#include <stdlib.h>
#include <windef.h>
#include <winbase.h>
Include dependency graph for test.h:

Go to the source code of this file.

Macros

#define INVALID_FILE_ATTRIBUTES   (~0u)
 
#define INVALID_SET_FILE_POINTER   (~0u)
 
#define START_TEST(name)   void func_##name(void)
 
#define __winetest_cdecl
 
#define __winetest_va_list   va_list
 
#define WINETEST_PRINTF_ATTR(fmt, args)
 
#define ok_(file, line)   (winetest_set_location(file, line), 0) ? (void)0 : winetest_ok
 
#define skip_(file, line)   (winetest_set_location(file, line), 0) ? (void)0 : winetest_skip
 
#define win_skip_(file, line)   (winetest_set_location(file, line), 0) ? (void)0 : winetest_win_skip
 
#define trace_(file, line)   (winetest_set_location(file, line), 0) ? (void)0 : winetest_trace
 
#define ok   ok_(__FILE__, __LINE__)
 
#define skip   skip_(__FILE__, __LINE__)
 
#define win_skip   win_skip_(__FILE__, __LINE__)
 
#define trace   trace_(__FILE__, __LINE__)
 
#define todo_if(is_todo)
 
#define todo_ros   todo_if(!strcmp(winetest_platform, "reactos"))
 
#define todo_ros_if(is_todo)   todo_if((is_todo) && !strcmp(winetest_platform, "reactos"))
 
#define todo_wine   todo_if(!strcmp(winetest_platform, "wine"))
 
#define todo_wine_if(is_todo)   todo_if((is_todo) && !strcmp(winetest_platform, "wine"))
 
#define ARRAY_SIZE(x)   (sizeof(x) / sizeof((x)[0]))
 
#define U(x)   (x)
 
#define U1(x)   (x)
 
#define U2(x)   (x)
 
#define U3(x)   (x)
 
#define U4(x)   (x)
 
#define U5(x)   (x)
 
#define U6(x)   (x)
 
#define U7(x)   (x)
 
#define U8(x)   (x)
 
#define S(x)   (x)
 
#define S1(x)   (x)
 
#define S2(x)   (x)
 
#define S3(x)   (x)
 
#define S4(x)   (x)
 
#define S5(x)   (x)
 
#define ok_hex(expression, result)
 
#define ok_dec(expression, result)
 
#define ok_ptr(expression, result)
 
#define ok_size_t(expression, result)
 
#define ok_char(expression, result)   ok_hex(expression, result)
 
#define ok_err(error)   ok(GetLastError() == (error), "Wrong last error. Expected " #error ", got 0x%lx\n", GetLastError())
 
#define ok_str(x, y)   ok(strcmp(x, y) == 0, "Wrong string. Expected '%s', got '%s'\n", y, x)
 
#define ok_wstr(x, y)   ok(wcscmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x)
 
#define ok_long(expression, result)   ok_hex(expression, result)
 
#define ok_int(expression, result)   ok_dec(expression, result)
 
#define ok_ntstatus(status, expected)   ok_hex(status, expected)
 
#define ok_hdl   ok_ptr
 

Functions

void winetest_set_location (const char *file, int line)
 
void winetest_start_todo (int is_todo)
 
int winetest_loop_todo (void)
 
void winetest_end_todo (void)
 
int winetest_get_mainargs (char ***pargv)
 
LONG winetest_get_failures (void)
 
void winetest_add_failures (LONG new_failures)
 
void winetest_wait_child_process (HANDLE process)
 
const charwine_dbgstr_wn (const WCHAR *str, intptr_t n)
 
const charwine_dbgstr_guid (const GUID *guid)
 
const charwine_dbgstr_point (const POINT *guid)
 
const charwine_dbgstr_size (const SIZE *guid)
 
const charwine_dbgstr_rect (const RECT *rect)
 
static const charwine_dbgstr_w (const WCHAR *s)
 
static int winetest_strcmpW (const WCHAR *str1, const WCHAR *str2)
 
int broken (int condition)
 
int winetest_vok (int condition, const char *msg, __winetest_va_list ap)
 
void winetest_vskip (const char *msg, __winetest_va_list ap)
 
void __winetest_cdecl winetest_ok (int condition, const char *msg,...)
 
void __winetest_cdecl winetest_skip (const char *msg,...)
 
void __winetest_cdecl winetest_win_skip (const char *msg,...)
 
void __winetest_cdecl winetest_trace (const char *msg,...)
 

Variables

int winetest_debug
 
int winetest_interactive
 
const charwinetest_platform
 

Macro Definition Documentation

◆ __winetest_cdecl

#define __winetest_cdecl

Definition at line 110 of file test.h.

◆ __winetest_va_list

#define __winetest_va_list   va_list

Definition at line 111 of file test.h.

◆ ARRAY_SIZE

#define ARRAY_SIZE (   x)    (sizeof(x) / sizeof((x)[0]))

Definition at line 158 of file test.h.

◆ INVALID_FILE_ATTRIBUTES

#define INVALID_FILE_ATTRIBUTES   (~0u)

Definition at line 47 of file test.h.

◆ INVALID_SET_FILE_POINTER

#define INVALID_SET_FILE_POINTER   (~0u)

Definition at line 50 of file test.h.

◆ ok

#define ok   ok_(__FILE__, __LINE__)

Definition at line 139 of file test.h.

◆ ok_

#define ok_ (   file,
  line 
)    (winetest_set_location(file, line), 0) ? (void)0 : winetest_ok

Definition at line 134 of file test.h.

◆ ok_char

#define ok_char (   expression,
  result 
)    ok_hex(expression, result)

Definition at line 787 of file test.h.

◆ ok_dec

#define ok_dec (   expression,
  result 
)
Value:
do { \
int _value = (expression); \
ok(_value == (result), "Wrong value for '%s', expected: " #result " (%d), got: %d\n", \
#expression, (int)(result), _value); \
} while (0)
GLuint64EXT * result
Definition: glext.h:11304

Definition at line 766 of file test.h.

◆ ok_err

#define ok_err (   error)    ok(GetLastError() == (error), "Wrong last error. Expected " #error ", got 0x%lx\n", GetLastError())

Definition at line 789 of file test.h.

◆ ok_hdl

#define ok_hdl   ok_ptr

Definition at line 801 of file test.h.

◆ ok_hex

#define ok_hex (   expression,
  result 
)
Value:
do { \
int _value = (expression); \
ok(_value == (result), "Wrong value for '%s', expected: " #result " (0x%x), got: 0x%x\n", \
#expression, (int)(result), _value); \
} while (0)
GLuint64EXT * result
Definition: glext.h:11304

Definition at line 759 of file test.h.

◆ ok_int

#define ok_int (   expression,
  result 
)    ok_dec(expression, result)

Definition at line 799 of file test.h.

◆ ok_long

#define ok_long (   expression,
  result 
)    ok_hex(expression, result)

Definition at line 798 of file test.h.

◆ ok_ntstatus

#define ok_ntstatus (   status,
  expected 
)    ok_hex(status, expected)

Definition at line 800 of file test.h.

◆ ok_ptr

#define ok_ptr (   expression,
  result 
)
Value:
do { \
void *_value = (expression); \
ok(_value == (result), "Wrong value for '%s', expected: " #result " (%p), got: %p\n", \
#expression, (void*)(result), _value); \
} while (0)
GLuint64EXT * result
Definition: glext.h:11304

Definition at line 773 of file test.h.

◆ ok_size_t

#define ok_size_t (   expression,
  result 
)
Value:
do { \
size_t _value = (expression); \
ok(_value == (result), "Wrong value for '%s', expected: " #result " (%Ix), got: %Ix\n", \
#expression, (size_t)(result), _value); \
} while (0)
GLuint64EXT * result
Definition: glext.h:11304

Definition at line 780 of file test.h.

◆ ok_str

#define ok_str (   x,
  y 
)    ok(strcmp(x, y) == 0, "Wrong string. Expected '%s', got '%s'\n", y, x)

Definition at line 792 of file test.h.

◆ ok_wstr

#define ok_wstr (   x,
  y 
)    ok(wcscmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x)

Definition at line 795 of file test.h.

◆ S

#define S (   x)    (x)

Definition at line 190 of file test.h.

◆ S1

#define S1 (   x)    (x)

Definition at line 191 of file test.h.

◆ S2

#define S2 (   x)    (x)

Definition at line 192 of file test.h.

◆ S3

#define S3 (   x)    (x)

Definition at line 193 of file test.h.

◆ S4

#define S4 (   x)    (x)

Definition at line 194 of file test.h.

◆ S5

#define S5 (   x)    (x)

Definition at line 195 of file test.h.

◆ skip

#define skip   skip_(__FILE__, __LINE__)

Definition at line 140 of file test.h.

◆ skip_

#define skip_ (   file,
  line 
)    (winetest_set_location(file, line), 0) ? (void)0 : winetest_skip

Definition at line 135 of file test.h.

◆ START_TEST

#define START_TEST (   name)    void func_##name(void)

Definition at line 101 of file test.h.

◆ todo_if

#define todo_if (   is_todo)
Value:
for (winetest_start_todo(is_todo); \
winetest_loop_todo(); \
winetest_end_todo())
void winetest_start_todo(int is_todo)

Definition at line 144 of file test.h.

◆ todo_ros

#define todo_ros   todo_if(!strcmp(winetest_platform, "reactos"))

Definition at line 148 of file test.h.

◆ todo_ros_if

#define todo_ros_if (   is_todo)    todo_if((is_todo) && !strcmp(winetest_platform, "reactos"))

Definition at line 149 of file test.h.

◆ todo_wine

#define todo_wine   todo_if(!strcmp(winetest_platform, "wine"))

Definition at line 154 of file test.h.

◆ todo_wine_if

#define todo_wine_if (   is_todo)    todo_if((is_todo) && !strcmp(winetest_platform, "wine"))

Definition at line 155 of file test.h.

◆ trace

#define trace   trace_(__FILE__, __LINE__)

Definition at line 142 of file test.h.

◆ trace_

#define trace_ (   file,
  line 
)    (winetest_set_location(file, line), 0) ? (void)0 : winetest_trace

Definition at line 137 of file test.h.

◆ U

#define U (   x)    (x)

Definition at line 171 of file test.h.

◆ U1

#define U1 (   x)    (x)

Definition at line 172 of file test.h.

◆ U2

#define U2 (   x)    (x)

Definition at line 173 of file test.h.

◆ U3

#define U3 (   x)    (x)

Definition at line 174 of file test.h.

◆ U4

#define U4 (   x)    (x)

Definition at line 175 of file test.h.

◆ U5

#define U5 (   x)    (x)

Definition at line 176 of file test.h.

◆ U6

#define U6 (   x)    (x)

Definition at line 177 of file test.h.

◆ U7

#define U7 (   x)    (x)

Definition at line 178 of file test.h.

◆ U8

#define U8 (   x)    (x)

Definition at line 179 of file test.h.

◆ win_skip

#define win_skip   win_skip_(__FILE__, __LINE__)

Definition at line 141 of file test.h.

◆ win_skip_

#define win_skip_ (   file,
  line 
)    (winetest_set_location(file, line), 0) ? (void)0 : winetest_win_skip

Definition at line 136 of file test.h.

◆ WINETEST_PRINTF_ATTR

#define WINETEST_PRINTF_ATTR (   fmt,
  args 
)

Definition at line 126 of file test.h.

Function Documentation

◆ broken()

int broken ( int  condition)

◆ wine_dbgstr_guid()

const char* wine_dbgstr_guid ( const GUID guid)

Referenced by CFSFolder::_CreateShellExtInstance(), _test_class_info(), _test_cp_args(), _test_cp_eventarg(), _test_disp(), _test_disp2(), _test_ifaces(), _test_provideclassinfo(), Accessible_QueryInterface(), ActiveScript_QueryInterface(), Arguments2_GetIDsOfNames(), Arguments2_QueryInterface(), ax_qi(), AXObjectSafety_GetInterfaceSafetyOptions(), AXObjectSafety_QueryInterface(), AXObjectSafety_SetInterfaceSafetyOptions(), BindCallbackRedirect_QueryInterface(), BindInfo_QueryInterface(), Binding_QueryInterface(), BindStatusCallback_OnObjectAvailable(), BindStatusCallback_QueryInterface(), callback_QueryInterface(), check_bitmap_format(), check_bmp_format(), check_db_properties(), check_device_iface_(), check_device_info_(), check_known_folder(), check_png_format(), check_storage_contents(), check_tiff_format(), ClassFactory_CreateInstance(), ClassFactory_QueryInterface(), codeview_process_info(), compare_bitmap_data(), ConnectionPoint_QueryInterface(), ConnectionPointContainer_FindConnectionPoint(), create_decoder(), CreateComponentInfo(), CreateXmlReader(), CreateXmlWriter(), CustomDocHostUIHandler_QueryInterface(), DataObject_QueryInterface(), ddraw_enumerate_secondary_devices(), debugstr_guid(), debugstr_msxml_guid(), decode_frame_wic(), Disp_Invoke(), Dispatch_GetIDsOfNames(), Dispatch_Invoke(), Dispatch_QueryInterface(), DispatchEx_QueryInterface(), div_onclick_disp_Invoke(), DummyDispatch_Invoke(), enum_devices_callback(), EnumAddress_cb2(), EnumEffects(), EnumJoysticks(), EnumVARIANT_QueryInterface(), EventDispatch_Invoke(), External_QueryInterface(), find_ept_entry(), FontEventsDisp_Invoke(), GdipSaveImageToStream(), get_decoder_info_from_image(), get_pixelformat_info(), getinstance_cf_CreateInstance(), CShellDispatch::GetInterfaceSafetyOptions(), CShellDispatch::GetSite(), Guid2str(), HlinkBrowseContext_QueryInterface(), HlinkTarget_QueryInterface(), hls_QueryInterface(), hls_QueryService(), hls_test_Moniker_BindToStorage(), Host_GetIDsOfNames(), Host_QueryInterface(), HttpSecurity_GetWindow(), ICommDlgBrowser3_fnQueryInterface(), IExplorerPaneVisibility_fnGetPaneState(), IExplorerPaneVisibility_fnQueryInterface(), initialize_decoder_wic(), InPlaceFrame_QueryInterface(), InternetHostSecurityManager_ProcessUrlAction(), InternetHostSecurityManager_QueryCustomPolicy(), IServiceProvider_fnQueryInterface(), IServiceProvider_fnQueryService(), IUnknownImpl_QueryInterface(), CDefaultContextMenu::LoadDynamicContextMenuHandler(), match_guid_attr_imp(), matchGUID(), mdbr_QueryInterface(), mdr_QueryInterface(), MimeFilter_CreateInstance(), MimeProtocol_QueryInterface(), Moniker_BindToObject(), Moniker_BindToStorage(), Moniker_GetClassID(), Moniker_QueryInterface(), MonikerProp_QueryInterface(), NewWindowManager_QueryInterface(), ObjectSafety_GetInterfaceSafetyOptions(), ObjectSafety_QueryInterface(), ObjectSafety_SetInterfaceSafetyOptions(), ok_iids_(), OleCommandTarget_Exec(), OleWindow_QueryInterface(), outer_QueryInterface(), PersistMoniker_QueryInterface(), Protocol_QueryInterface(), ProtocolCF_CreateInstance(), ProtocolCF_QueryInterface(), ProtocolEmul_QueryInterface(), ProtocolSink_QueryInterface(), ProtocolUnk_QueryInterface(), Proxy_UnmarshalInterface(), query_interface(), QueryInterface(), CMenuBand::QueryService(), register_ps_clsid_thread(), resolver_QI(), RichEditOleCallback_QueryInterface(), ServiceProvider_QueryInterface(), ServiceProvider_QueryService(), CInternetToolbar::SetCommandTarget(), CShellDispatch::SetInterfaceSafetyOptions(), CShellBrowser::ShowBand(), sp_QueryInterface(), sp_QueryService(), START_TEST(), statusclb_OnObjectAvailable(), statusclb_OnProgress(), statusclb_OnStartBinding(), statusclb_OnStopBinding(), statusclb_QueryInterface(), std_release_marshal_data(), Storage_SetClass(), StorageBaseImpl_SetClass(), stream_info(), Stream_QueryInterface(), test1_QueryInterface(), test_activator_GetClassObject(), test_ApphelpCheckShellObject(), test_BindToObject(), test_bitmap_scaler(), test_CLSIDFromProgID(), test_CLSIDFromString(), test_CoCreateInstanceEx(), test_CoGetObjectContext(), test_CoGetPSClsid(), test_CoGetStandardMarshal(), test_color_formats(), test_CoRegisterPSClsid(), test_create_reader(), test_CreateBitmapFromHBITMAP(), test_CreateBitmapFromHICON(), test_CreateBody(), test_data_cache_init(), test_data_cache_initnew(), test_decode_adobe_cmyk(), test_delegated_methods(), test_devenum(), test_device_iface(), test_device_iface_detail(), test_device_info(), test_DfMarshal_custom_marshaling(), test_disp_QI(), test_dispatch_typeinfo(), test_filesourcefilter(), test_find_com_redirection(), test_find_ifaceps_redirection(), test_find_progid_redirection(), test_find_surrogate(), test_freethreadedmarshaldata(), test_freethreadedmarshaler(), test_GetAdaptersAddresses(), test_GetAddrInfoExW(), test_GetDatabaseInformation(), test_GetDatabaseInformationEmpty(), test_GetDefaultColumn(), test_GetDefaultSearchGUID(), test_global_gif_palette(), test_global_gif_palette_2frames(), test_GuidFunctions(), test_iface_ptr(), test_IIDFromString(), test_IIDs(), test_is_testdb(), test_IUnknown_GetClassID(), test_IWinHttpRequest_Invoke(), test_local_gif_palette(), test_media_seeking(), test_metadata_APE(), test_metadata_cHRM(), test_metadata_gAMA(), test_metadata_GCE(), test_metadata_gif(), test_metadata_GIF_comment(), test_metadata_IFD(), test_metadata_IMD(), test_metadata_LSD(), test_metadata_tEXt(), test_mode_generic(), test_moniker_BindToObject(), test_multi_encoder(), test_mxwriter_handlers(), test_namespaces_as_attributes(), test_OleCreateStaticFromData(), test_OleDoAutoConvert(), test_persiststream(), test_pixelformat_info(), test_png_palette(), test_PropVariantToGUID(), test_PSPropertyKeyFromString(), test_queryreader(), test_recinfo(), test_safearray_layout(), test_SHCreateQueryCancelAutoPlayMoniker(), Test_Shimdata(), test_SIPRetrieveSubjectGUID(), test_source_iface(), test_supporterrorinfo(), test_tiff_1bpp_palette(), test_tiff_24bpp(), test_tiff_8bpp_alpha(), test_tiff_8bpp_palette(), test_truncated_gif(), test_unk_QI(), test_UuidCreate(), test_UuidCreateSequential(), test_WICMapSchemaToName(), test_WICMapShortNameToGuid(), test_with_compat(), testinstance_QI(), testoutput_QueryInterface(), threadref_QueryInterface(), Timeline_IAMTimeline_GetDefaultEffect(), Timeline_IAMTimeline_GetDefaultTransition(), Timeline_IAMTimeline_SetDefaultEffect(), Timeline_IAMTimeline_SetDefaultTransition(), TimelineObj_SetSubObjectGUID(), timeoutFunc_Invoke(), transformdest_QueryInterface(), TravelLog_QueryInterface(), unknown_QueryInterface(), Unknown_QueryInterface(), VariantChangeType_QueryInterface(), ViewAdviseSink_QueryInterface(), wb_qi(), WBE2Sink_QueryInterface(), WICMapGuidToShortName(), WICMapSchemaToName(), and WinInetHttpInfo_QueryInterface().

◆ wine_dbgstr_point()

◆ wine_dbgstr_rect()

const char* wine_dbgstr_rect ( const RECT rect)

Referenced by ArrangeCtrlPositions(), CBCalcPlacement(), CFn_WMPaint(), check_update_rgn(), clip_emf_enum_proc(), column_fill_hditem(), COMBOEX_AdjustEditPos(), COMBOEX_ComboWndProc(), COMBOEX_Create(), COMBOEX_DrawItem(), COMBOEX_EditWndProc(), COMBOEX_SetItemHeight(), COMBOEX_WindowPosChanging(), compare_bounds(), CreateEnhMetaFileW(), d3d8_device_Present(), d3d8_surface_LockRect(), d3d8_swapchain_Present(), d3d8_texture_2d_AddDirtyRect(), d3d8_texture_cube_AddDirtyRect(), d3d9_device_PresentEx(), d3d9_device_StretchRect(), d3d9_surface_LockRect(), d3d9_swapchain_Present(), d3d9_texture_2d_AddDirtyRect(), d3d9_texture_cube_AddDirtyRect(), d3d_device1_Pick(), d3d_device7_Load(), d3dx9_sprite_Draw(), D3DXLoadSurfaceFromFileA(), D3DXLoadSurfaceFromFileInMemory(), D3DXLoadSurfaceFromFileW(), D3DXLoadSurfaceFromMemory(), D3DXLoadSurfaceFromResourceA(), D3DXLoadSurfaceFromResourceW(), D3DXLoadSurfaceFromSurface(), D3DXSaveSurfaceToFileA(), D3DXSaveSurfaceToFileInMemory(), D3DXSaveSurfaceToFileW(), ddraw_clipper_GetClipList(), ddraw_surface1_AddOverlayDirtyRect(), ddraw_surface1_Blt(), ddraw_surface1_BltFast(), ddraw_surface1_Lock(), ddraw_surface1_UpdateOverlay(), ddraw_surface2_AddOverlayDirtyRect(), ddraw_surface2_Blt(), ddraw_surface2_BltFast(), ddraw_surface2_Lock(), ddraw_surface2_UpdateOverlay(), ddraw_surface3_AddOverlayDirtyRect(), ddraw_surface3_Blt(), ddraw_surface3_BltFast(), ddraw_surface3_Lock(), ddraw_surface3_UpdateOverlay(), ddraw_surface4_AddOverlayDirtyRect(), ddraw_surface4_Blt(), ddraw_surface4_BltFast(), ddraw_surface4_Lock(), ddraw_surface4_UpdateOverlay(), ddraw_surface7_AddOverlayDirtyRect(), ddraw_surface7_Blt(), ddraw_surface7_BltFast(), ddraw_surface7_Lock(), ddraw_surface7_Unlock(), ddraw_surface7_UpdateOverlay(), DefaultHandler_DoVerb(), device_clear_render_targets(), device_parent_mode_changed(), DirectDrawMediaStreamImpl_IDirectDrawMediaStream_CreateSample(), DrawTextExWorker(), dump_region(), EMFDRV_ExtTextOut(), EnumEnhMetaFile(), FileMenu_DrawItem(), FileMenu_GetItemExtent(), fullscreen_wnd_proc(), GdipDrawImagePointsRect(), GetThemeBackgroundContentRect(), GetThemeBackgroundExtent(), GetWinMetaFileBits(), ID3DXFontImpl_DrawTextA(), ID3DXFontImpl_DrawTextW(), ImmSetCandidateWindow(), ImmSetCompositionWindow(), iterator_frameditems(), iterator_frameditems_absolute(), LISTBOX_GetItemRect(), LISTBOX_PaintItem(), LISTVIEW_DrawItemPart(), LISTVIEW_FillBkgnd(), LISTVIEW_GetItemMetrics(), LISTVIEW_GetItemRect(), LISTVIEW_GetSubItemRect(), LISTVIEW_GetViewRect(), LISTVIEW_HitTest(), LISTVIEW_InvalidateRect(), LISTVIEW_RefreshOwnerDraw(), LISTVIEW_RefreshReportGrid(), LISTVIEW_ScrollOnInsert(), LISTVIEW_UpdateSize(), main_window_proc(), main_window_procA(), MCIAVI_mciPut(), MCIAVI_mciWhere(), MCIQTZ_mciWhere(), MCIWndProc(), mdi_child_wnd_proc_2(), MDI_ChildGetMinMaxInfo(), mdi_main_wnd_procA(), ME_DrawParagraph(), menu_ownerdraw_wnd_proc(), MONTHCAL_DrawDay(), MONTHCAL_GetMinReqRect(), MONTHCAL_UpdateSize(), msi_dialog_adjust_dialog_pos(), nccalchelper(), OleInPlaceObject_SetObjectRects(), OleObject_DoVerb(), OLEPictureImpl_Render(), PAGER_DrawButton(), PAGER_MouseMove(), PAGER_NCCalcSize(), pagesetup_change_preview(), parentdc_window_procA(), ParentMsgCheckProcA(), PlayEnhMetaFileRecord(), PROPSHEET_AdjustSize(), PROPSHEET_AdjustSizeWizard(), PROPSHEET_SetCurSel(), PROPSHEET_SizeMismatch(), REBAR_CalcHorzBand(), REBAR_CalcVertBand(), REBAR_Create(), REBAR_DumpBand(), REBAR_EraseBkGnd(), REBAR_GetRect(), REBAR_Layout(), REBAR_MoveChildWindows(), REBAR_NCCalcSize(), REBAR_NCCreate(), REBAR_NCPaint(), REBAR_Paint(), REBAR_SetBandsHeight(), REBAR_SizeToRect(), REBAR_WindowPosChanged(), resize_template_hook(), scissorrect(), ScriptStringOut(), ScriptTextOut(), SHAppBarMessage(), SPY_DumpStructure(), STATUSBAR_DrawPart(), STATUSBAR_DrawSizeGrip(), STATUSBAR_SetPartBounds(), surface_blt_fbo(), surface_blt_special(), surface_depth_blt_fbo(), surface_lock(), surface_upload_from_surface(), swapchain_blit(), TAB_AdjustRect(), TAB_DrawBorder(), TAB_DrawItem(), TAB_DrawItemInterior(), TAB_FocusChanging(), TAB_InsertItemT(), TAB_InternalGetItemRect(), TAB_InvalidateTabArea(), TAB_Paint(), TAB_SetItemBounds(), test_AWR_flags(), test_basics(), test_begin_paint(), test_boundsrect(), test_ChangeDisplaySettingsEx(), test_clipping(), test_clipping_2(), test_CreateWindow(), test_CRect(), test_dc_layout(), test_dc_visrgn(), test_device_caps(), test_DrawTextCalcRect(), test_edit_control_5(), test_emf_clipping(), test_format_rect(), test_fullscreen(), test_getmenubarinfo(), test_GetRandomRgn(), test_GetScrollBarInfo(), test_GetUpdateRect(), test_hwnd_message(), test_initialization(), test_Input_mouse(), test_IsRectEmpty(), test_layered_window(), test_margin(), test_margins_usefontinfo(), test_mbs_help(), test_memory_dc_clipping(), test_mouse_input(), test_nccalcscroll(), test_nonclient_area(), test_ownerdraw(), test_pager(), test_redraw(), test_rtl_layout(), test_savedc_2(), test_scroll_window(), test_scrolldc(), test_scrollvalidate(), test_SetParent(), test_SetWindowPos(), test_showwindow(), test_ShowWindow(), test_SubtractRect(), test_tic_settings(), test_validatergn(), test_vis_rgn(), test_window_dc_clipping(), test_winregion(), test_work_area(), texture_resource_sub_resource_map(), TOOLBAR_DrawFlatHorizontalSeparator(), TOOLBAR_DrawString(), TOOLBAR_DumpButton(), TOOLBAR_GetIdealSize(), TOOLBAR_Paint(), TOOLBAR_Size(), TOOLTIPS_NewToolRectT(), TRACKBAR_CalcSelection(), TREEVIEW_DrawItem(), TREEVIEW_GetItemRect(), update_plugin_window(), verify_region(), VideoRenderer_AutoShowWindow(), VideoRenderer_SendSampleData(), VMR7WindowlessControl_SetVideoPosition(), VMR9_ImagePresenter_PresentImage(), VMR9_SendSampleData(), VMR9WindowlessControl_SetVideoPosition(), warp_check(), wined3d_device_clear_rendertarget_view(), wined3d_device_get_scissor_rect(), wined3d_device_set_scissor_rect(), wined3d_surface_blt(), wined3d_surface_upload_data(), wined3d_swapchain_get_front_buffer_data(), wined3d_swapchain_present(), wined3d_texture_blt(), wined3d_texture_update_overlay(), and winsizes_wnd_proc().

◆ wine_dbgstr_size()

const char* wine_dbgstr_size ( const SIZE guid)

Referenced by test_CSize().

◆ wine_dbgstr_w()

static const char* wine_dbgstr_w ( const WCHAR s)
inlinestatic

Definition at line 79 of file test.h.

79 { return wine_dbgstr_wn( s, -1 ); }
GLdouble s
Definition: gl.h:2039
const char * wine_dbgstr_wn(const WCHAR *str, intptr_t n)
Definition: compat.c:342

◆ wine_dbgstr_wn()

const char* wine_dbgstr_wn ( const WCHAR str,
intptr_t  n 
)

Definition at line 342 of file compat.c.

343 {
344  char *dst, *res;
345  size_t size;
346  static char buffer[256];
347 
348  if (!((ULONG_PTR)str >> 16))
349  {
350  if (!str) return "(null)";
351  res = buffer;
352  sprintf( res, "#%04x", LOWORD(str) );
353  return res;
354  }
355  if (n == -1)
356  {
357  const WCHAR *end = str;
358  while (*end) end++;
359  n = end - str;
360  }
361  if (n < 0) n = 0;
362  size = 12 + min( 300, n * 5 );
363  dst = res = buffer;
364  *dst++ = 'L';
365  *dst++ = '"';
366  while (n-- > 0 && dst <= res + size - 10)
367  {
368  WCHAR c = *str++;
369  switch (c)
370  {
371  case '\n': *dst++ = '\\'; *dst++ = 'n'; break;
372  case '\r': *dst++ = '\\'; *dst++ = 'r'; break;
373  case '\t': *dst++ = '\\'; *dst++ = 't'; break;
374  case '"': *dst++ = '\\'; *dst++ = '"'; break;
375  case '\\': *dst++ = '\\'; *dst++ = '\\'; break;
376  default:
377  if (c >= ' ' && c <= 126)
378  *dst++ = c;
379  else
380  {
381  *dst++ = '\\';
382  sprintf(dst,"%04x",c);
383  dst+=4;
384  }
385  }
386  }
387  *dst++ = '"';
388  if (n > 0)
389  {
390  *dst++ = '.';
391  *dst++ = '.';
392  *dst++ = '.';
393  }
394  *dst++ = 0;
395  return res;
396 }
GLdouble n
Definition: glext.h:7729
GLuint buffer
Definition: glext.h:5915
GLuint GLuint end
Definition: gl.h:1545
uint32_t ULONG_PTR
Definition: typedefs.h:63
#define sprintf(buf, format,...)
Definition: sprintf.c:55
const WCHAR * str
GLsizeiptr size
Definition: glext.h:5919
__wchar_t WCHAR
Definition: xmlstorage.h:180
const GLubyte * c
Definition: glext.h:8905
GLenum GLenum dst
Definition: glext.h:6340
#define min(a, b)
Definition: monoChain.cc:55
GLuint res
Definition: glext.h:9613
#define c
Definition: ke_i.h:80
#define LOWORD(l)
Definition: pedump.c:82

Referenced by _test_hkey_main_Value_W(), get_token(), map_type(), mqr_GetMetadataByName(), SoftModalMessageBox(), START_TEST(), tally_test_file(), test_flags_NtQueryDirectoryFile(), test_GetStateText(), test_IdnToAscii(), test_IdnToNameprepUnicode(), test_IdnToUnicode(), test_IMLangConvertCharset(), test_IWinHttpRequest(), test_marshal_bstr(), test_NtQueryDirectoryFile(), test_NtQueryDirectoryFile_case(), test_NtQueryKey(), test_query_attribute_information_file(), test_readdirectorychanges_cr(), test_reg_query_info(), test_RtlUTF8ToUnicodeN(), test_saxstr(), test_SQLGetPrivateProfileStringW(), test_string_data(), test_string_data_process(), test_utf7_decoding(), Widget_bstr(), wine_dbgstr_us(), and wine_dbgstr_w().

◆ winetest_add_failures()

void winetest_add_failures ( LONG  new_failures)

◆ winetest_end_todo()

void winetest_end_todo ( void  )

◆ winetest_get_failures()

LONG winetest_get_failures ( void  )

◆ winetest_get_mainargs()

◆ winetest_loop_todo()

int winetest_loop_todo ( void  )

◆ winetest_ok()

◆ winetest_set_location()

void winetest_set_location ( const char file,
int  line 
)

Referenced by START_TEST().

◆ winetest_skip()

void __winetest_cdecl winetest_skip ( const char msg,
  ... 
)

Referenced by _find_font_for_range(), and ok_fls_().

◆ winetest_start_todo()

void winetest_start_todo ( int  is_todo)

◆ winetest_strcmpW()

static int winetest_strcmpW ( const WCHAR str1,
const WCHAR str2 
)
inlinestatic

Definition at line 83 of file test.h.

84 {
85  while (*str1 && (*str1 == *str2)) { str1++; str2++; }
86  return *str1 - *str2;
87 }

Referenced by check_lnk_(), create_lnk_(), test__wenviron(), test_collection_content(), test_credentials(), and test_versioninfo().

◆ winetest_trace()

void __winetest_cdecl winetest_trace ( const char msg,
  ... 
)

◆ winetest_vok()

int winetest_vok ( int  condition,
const char msg,
__winetest_va_list  ap 
)

Referenced by WINETEST_PRINTF_ATTR().

◆ winetest_vskip()

void winetest_vskip ( const char msg,
__winetest_va_list  ap 
)

◆ winetest_wait_child_process()

◆ winetest_win_skip()

void __winetest_cdecl winetest_win_skip ( const char msg,
  ... 
)

Referenced by _test_items_ok(), and _test_shape_ok().

Variable Documentation

◆ winetest_debug

int winetest_debug

Referenced by alarmThreadMain(), buffer_service(), buffer_service8(), call_continue(), callback(), callback_func(), cb(), check_menu_items(), check_position(), check_storage_contents(), check_update_rgn(), closetest_callback(), compare_bits(), compare_menu_data(), ddeCb(), do_test(), doChild(), dscenum_callback(), dump_child_(), dump_emf_bits(), dump_emf_record(), dump_emf_records(), dump_mf_bits(), enum_callback(), enum_func(), EnumFormatImpl_Next(), exercizeServer(), gdf_driver_proc(), hook_proc(), hook_WaitForInputIdle(), hooked_WaitForInputIdle(), InternetReadFile_test(), langgrp_procA(), lgrplocale_procA(), luilocale_proc1A(), menu_ownerdraw_wnd_proc(), ok_path(), ProtocolSink_ReportProgress(), rpcThreadMain(), semaphore_thread_proc(), serverThreadMain1(), serverThreadMain2(), serverThreadMain3(), serverThreadMain4(), serverThreadMain5(), shell_execute_(), shell_execute_ex_(), test1_QueryInterface(), test_aligned_malloc(), test_aligned_offset_malloc(), test_aligned_offset_realloc(), test_aligned_realloc(), test_buffer(), test_buffer8(), test_capture_buffer(), test_clock(), test_color_formats(), test_CreateNamedPipe(), test_data_cache_contents(), test_devenum(), test_EnumCodePages(), test_EnumForms(), test_getDefaultCryptProv(), test_import_export(), test_mbs_help(), test_menu_bmp_and_string(), test_menu_resource_layout(), test_metadata_gif(), test_multi_encoder(), test_NamedPipe_2(), test_query_process_vm(), test_RegisterClipboardFormatA(), test_scrolldc(), test_scrollvalidate(), test_SHCreateStreamOnFileEx(), test_SHGetStockIconInfo(), test_sid(), test_text_metrics(), test_thread(), test_timer(), test_worst_case(), Test_WSAIoctl_GetInterfaceList(), Test_WSAIoctl_InitTest(), testGetIcmpStatistics(), testGetIcmpStatisticsEx(), testGetIfTable(), testGetIpForwardTable(), testGetIpNetTable(), testGetIpStatistics(), testGetIpStatisticsEx(), testGetTcpStatistics(), testGetTcpStatisticsEx(), testGetTcpTable(), testGetUdpStatistics(), testGetUdpStatisticsEx(), testGetUdpTable(), and WndProc2().

◆ winetest_interactive

int winetest_interactive

Referenced by _sink_check_ok(), _sink_fire_ok(), check_bits(), check_count(), create_child_editcontrol(), create_custom_header_control(), create_editcontrol(), create_header_control(), create_tabcontrol(), create_window(), createFilledTabControl(), driver_tests(), DriverEnumProc(), dscenum_callback(), dsenum_callback(), EnumJoysticks(), force_redraw(), FormatEnumProc(), FormatTagEnumProc(), mixer_test_controlA(), mixer_test_controlW(), mixer_test_deviceA(), mixer_test_deviceW(), ProtocolSink_ReportResult(), show_image(), START_TEST(), TabCheckSetSize(), test_acquire(), test_AddPortUI(), test_api(), test_AVISaveOptions(), test_buffer(), test_buffer8(), test_clock(), test_ConfigurePort(), test_ConfigurePortUI(), test_controlevent(), test_CredUIPromptForCredentials(), test_dib_formats(), test_drvCommConfigDialogA(), test_drvCommConfigDialogW(), test_edit_control_2(), test_event_binding(), test_ExitCode(), test_flash_ax(), test_focus(), test_fontsize(), test_frequency(), test_get_input_report(), test_get_state(), test_hdm_filterMessages(), test_hdm_index_messages(), test_hdm_sethotdivider(), test_header_control(), test_Hlink_Navigate(), test_HTMLDocument_http(), test_http_connection(), test_ImmGetCompositionString(), test_LaunchINFSection(), test_LaunchINFSectionEx(), test_menualign(), test_midiOut_device(), test_mono_bitmap(), test_NtQueryKey(), test_onclick(), test_play(), test_primary(), test_primary8(), test_primary_3d(), test_primary_3d8(), test_primary_3d_with_listener(), test_primary_3d_with_listener8(), test_primary_secondary(), test_primary_secondary8(), test_PrintDlgExW(), test_read_device(), test_resizable2(), test_RunControlPanel(), test_ScriptGetFontProperties(), test_secondary(), test_secondary8(), test_SHGetSpecialFolderPath(), test_sioAddressListChange(), test_sourcepath(), test_sources(), test_SspiPromptForCredentials(), test_start_stop(), test_submit(), test_url_action(), test_worst_case(), testNotifyAddrChange(), wave_generate_tone(), wave_in_test_deviceIn(), wave_out_test_device(), and wave_out_tests().

◆ winetest_platform