|
ReactOS 0.4.17-dev-357-ga8f14ff
|
#include <stdbool.h>#include <math.h>#include <windows.h>#include <ocidl.h>#include <stdio.h>#include "wine/test.h"#include "tmarshal.h"
Go to the source code of this file.
Classes | |
| struct | host_object_data |
| struct | disp_obj |
| struct | coclass_obj |
| struct | Widget |
| struct | KindaEnum |
Macros | |
| #define | COBJMACROS |
| #define | CONST_VTABLE |
| #define | ok_ole_success(hr, func) ok(hr == S_OK, #func " failed with error %#08lx\n", hr) |
| #define | release_iface(a) release_iface_(__LINE__, a) |
| #define | RELEASEMARSHALDATA WM_USER |
Typedefs | |
| typedef struct Widget | Widget |
| typedef struct KindaEnum | KindaEnum |
Variables | |
| static const WCHAR | test_bstr1 [] = {'f','o','o',0,'b','a','r'} |
| static const WCHAR | test_bstr2 [] = {'t','e','s','t',0} |
| static const WCHAR | test_bstr3 [] = {'q','u','x',0} |
| static const WCHAR | test_bstr4 [] = {'a','b','c',0} |
| static const MYSTRUCT | test_mystruct1 = {0x12345678, 0xdeadbeef98765432ull, {0,1,2,3,4,5,6,7}} |
| static const MYSTRUCT | test_mystruct2 = {0x91827364, 0x8877665544332211ull, {3,6,1,4,0,1,3,0}} |
| static const MYSTRUCT | test_mystruct3 = {0x1a1b1c1d, 0x1e1f101112131415ull, {9,2,4,5,6,5,1,3}} |
| static const MYSTRUCT | test_mystruct4 = {0x2a2b2c2d, 0x2e2f202122232425ull, {0,4,6,7,3,6,7,4}} |
| static const MYSTRUCT | test_mystruct5 = {0x3a3b3c3d, 0x3e3f303132333435ull, {1,6,7,3,8,4,6,5}} |
| static const MYSTRUCT | test_mystruct6 = {0x4a4b4c4d, 0x4e4f404142434445ull, {3,6,5,3,4,8,0,9}} |
| static const MYSTRUCT | test_mystruct7 = {0x5a5b5c5d, 0x5e5f505152535455ull, {1,8,4,4,4,2,3,1}} |
| static const struct thin | test_thin_struct = {-456, 78} |
| static const RECT | test_rect1 = {1,2,3,4} |
| static const RECT | test_rect2 = {5,6,7,8} |
| static const RECT | test_rect3 = {9,10,11,12} |
| static const RECT | test_rect4 = {13,14,15,16} |
| static const RECT | test_rect5 = {17,18,19,20} |
| static const RECT | test_rect6 = {21,22,23,24} |
| static const RECT | test_rect7 = {25,26,27,28} |
| static const array_t | test_array1 = {1,2,3,4} |
| static const array_t | test_array2 = {5,6,7,8} |
| static const array_t | test_array3 = {9,10,11,12} |
| static const array_t | test_array4 = {13,14,15,16} |
| static const array_t | test_array5 = {17,18,19,20} |
| static const array_t | test_array6 = {21,22,23,24} |
| static int | external_connections |
| static BOOL | expect_last_release_closes |
| static const IExternalConnectionVtbl | ExternalConnectionVtbl |
| static IExternalConnection | ExternalConnection = { &ExternalConnectionVtbl } |
| static ItestDual | TestDual = { &TestDualVtbl } |
| static ItestDual | TestDualDisp = { &TestDualVtbl } |
| static const ITestSecondIfaceVtbl | TestSecondIfaceVtbl |
| static ITestSecondIface | TestSecondIface = { &TestSecondIfaceVtbl } |
| static ITestSecondDispVtbl | TestSecondDispVtbl |
| static ITestSecondDisp | TestSecondDisp = { &TestSecondDispVtbl } |
| static ItestDualVtbl | TestDualVtbl |
| static const ISomethingFromDispatchVtbl | disp_obj_vtbl |
| static const ICoclass1Vtbl | coclass1_vtbl |
| static const ICoclass2Vtbl | coclass2_vtbl |
| static int | testmode |
| static const struct IWidgetVtbl | Widget_VTable |
| static const IStaticWidgetVtbl | StaticWidgetVtbl |
| static IStaticWidget | StaticWidget = { &StaticWidgetVtbl } |
| static const IKindaEnumWidgetVtbl | KindaEnumWidget_VTable |
| static INonOleAutomationVtbl | NonOleAutomation_VTable |
| static INonOleAutomation | NonOleAutomation = { &NonOleAutomation_VTable } |
| #define COBJMACROS |
Definition at line 23 of file tmarshal.c.
| #define CONST_VTABLE |
Definition at line 24 of file tmarshal.c.
Definition at line 34 of file tmarshal.c.
| #define release_iface | ( | a | ) | release_iface_(__LINE__, a) |
Definition at line 41 of file tmarshal.c.
Definition at line 73 of file tmarshal.c.
|
static |
Definition at line 1243 of file tmarshal.c.
Referenced by test_marshal_iface(), Widget_iface_in(), and Widget_iface_noptr().
Definition at line 1404 of file tmarshal.c.
Referenced by test_marshal_safearray(), and Widget_safearray().
Definition at line 539 of file tmarshal.c.
|
static |
Definition at line 567 of file tmarshal.c.
|
static |
Definition at line 560 of file tmarshal.c.
Definition at line 554 of file tmarshal.c.
|
static |
Definition at line 574 of file tmarshal.c.
Definition at line 516 of file tmarshal.c.
Definition at line 545 of file tmarshal.c.
Definition at line 581 of file tmarshal.c.
Definition at line 592 of file tmarshal.c.
|
static |
Definition at line 617 of file tmarshal.c.
|
static |
Definition at line 610 of file tmarshal.c.
Definition at line 604 of file tmarshal.c.
|
static |
Definition at line 624 of file tmarshal.c.
Definition at line 586 of file tmarshal.c.
Definition at line 598 of file tmarshal.c.
Definition at line 631 of file tmarshal.c.
|
static |
Definition at line 660 of file tmarshal.c.
Referenced by test_marshal_coclass(), and Widget_Coclass_ptr().
|
static |
Definition at line 494 of file tmarshal.c.
Referenced by test_marshal_iface(), test_marshal_struct(), Widget_iface_out(), Widget_iface_ptr(), and Widget_variant_array().
|
static |
Definition at line 485 of file tmarshal.c.
Referenced by create_disp_obj(), and test_marshal_dispinterface().
Definition at line 426 of file tmarshal.c.
Definition at line 468 of file tmarshal.c.
|
static |
Definition at line 454 of file tmarshal.c.
|
static |
Definition at line 447 of file tmarshal.c.
|
static |
Definition at line 441 of file tmarshal.c.
|
static |
Definition at line 461 of file tmarshal.c.
|
static |
Definition at line 406 of file tmarshal.c.
Definition at line 432 of file tmarshal.c.
Definition at line 167 of file tmarshal.c.
Referenced by test_external_connection(), test_marshal_dispinterface(), and test_typelibmarshal().
|
static |
Definition at line 196 of file tmarshal.c.
|
static |
Definition at line 186 of file tmarshal.c.
|
static |
Definition at line 179 of file tmarshal.c.
|
static |
Definition at line 191 of file tmarshal.c.
|
static |
Definition at line 205 of file tmarshal.c.
Definition at line 1807 of file tmarshal.c.
Referenced by test_StaticWidget(), and Widget_Create().
Definition at line 85 of file tmarshal.c.
Referenced by start_host_object2().
|
inlinestatic |
Definition at line 506 of file tmarshal.c.
Referenced by coclass1_AddRef(), coclass1_QueryInterface(), and coclass1_Release().
|
inlinestatic |
Definition at line 511 of file tmarshal.c.
Referenced by coclass2_AddRef(), coclass2_QueryInterface(), and coclass2_Release().
|
inlinestatic |
Definition at line 1783 of file tmarshal.c.
Referenced by KindaEnum_AddRef(), and KindaEnum_Release().
|
inlinestatic |
Definition at line 401 of file tmarshal.c.
Referenced by disp_obj_AddRef(), disp_obj_QueryInterface(), and disp_obj_Release().
|
inlinestatic |
Definition at line 678 of file tmarshal.c.
Referenced by Widget_AddRef(), Widget_GetIDsOfNames(), Widget_GetTypeInfo(), Widget_GetTypeInfoCount(), Widget_Invoke(), and Widget_Release().
Definition at line 1874 of file tmarshal.c.
|
static |
Definition at line 1921 of file tmarshal.c.
Definition at line 1908 of file tmarshal.c.
|
static |
Definition at line 1897 of file tmarshal.c.
|
static |
Definition at line 1856 of file tmarshal.c.
Definition at line 1882 of file tmarshal.c.
Definition at line 1915 of file tmarshal.c.
|
static |
Definition at line 1939 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 1391 of file tmarshal.c.
Referenced by test_marshal_safearray(), and Widget_safearray().
Definition at line 1961 of file tmarshal.c.
Definition at line 1971 of file tmarshal.c.
Definition at line 1977 of file tmarshal.c.
Definition at line 1993 of file tmarshal.c.
Referenced by test_typelibmarshal().
|
static |
Definition at line 1950 of file tmarshal.c.
Definition at line 1966 of file tmarshal.c.
Definition at line 1788 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 35 of file tmarshal.c.
|
static |
Definition at line 150 of file tmarshal.c.
Referenced by test_external_connection(), test_marshal_dispinterface(), and test_typelibmarshal().
|
static |
Definition at line 128 of file tmarshal.c.
Referenced by start_host_object().
| START_TEST | ( | tmarshal | ) |
Definition at line 3793 of file tmarshal.c.
Definition at line 1711 of file tmarshal.c.
|
static |
Definition at line 1734 of file tmarshal.c.
|
static |
Definition at line 1727 of file tmarshal.c.
|
static |
Definition at line 1721 of file tmarshal.c.
|
static |
Definition at line 1741 of file tmarshal.c.
|
static |
Definition at line 1698 of file tmarshal.c.
Definition at line 1716 of file tmarshal.c.
Definition at line 1749 of file tmarshal.c.
|
static |
Definition at line 1756 of file tmarshal.c.
Definition at line 3550 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 3645 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 3622 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 2663 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2009 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2472 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2714 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 3762 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 2219 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2105 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2580 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2604 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2528 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 3580 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 2925 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 344 of file tmarshal.c.
|
static |
Definition at line 366 of file tmarshal.c.
|
static |
Definition at line 360 of file tmarshal.c.
Definition at line 354 of file tmarshal.c.
|
static |
Definition at line 373 of file tmarshal.c.
|
static |
Definition at line 320 of file tmarshal.c.
Definition at line 349 of file tmarshal.c.
Definition at line 264 of file tmarshal.c.
|
static |
Definition at line 286 of file tmarshal.c.
|
static |
Definition at line 280 of file tmarshal.c.
|
static |
Definition at line 274 of file tmarshal.c.
|
static |
Definition at line 293 of file tmarshal.c.
|
static |
Definition at line 259 of file tmarshal.c.
Definition at line 269 of file tmarshal.c.
Definition at line 301 of file tmarshal.c.
Definition at line 235 of file tmarshal.c.
|
static |
Definition at line 230 of file tmarshal.c.
Definition at line 240 of file tmarshal.c.
Definition at line 245 of file tmarshal.c.
Definition at line 701 of file tmarshal.c.
|
static |
Definition at line 1503 of file tmarshal.c.
|
static |
Definition at line 1141 of file tmarshal.c.
|
static |
Definition at line 1160 of file tmarshal.c.
|
static |
Definition at line 1331 of file tmarshal.c.
Definition at line 1012 of file tmarshal.c.
Definition at line 879 of file tmarshal.c.
Definition at line 895 of file tmarshal.c.
Definition at line 887 of file tmarshal.c.
|
static |
Definition at line 969 of file tmarshal.c.
|
static |
Definition at line 1555 of file tmarshal.c.
|
static |
Definition at line 1611 of file tmarshal.c.
|
static |
Definition at line 1571 of file tmarshal.c.
Definition at line 1481 of file tmarshal.c.
|
static |
Definition at line 1827 of file tmarshal.c.
Referenced by KindaEnum_Next(), and test_DispCallFunc().
|
static |
Definition at line 816 of file tmarshal.c.
Definition at line 962 of file tmarshal.c.
|
static |
Definition at line 1179 of file tmarshal.c.
Definition at line 806 of file tmarshal.c.
Definition at line 987 of file tmarshal.c.
|
static |
Definition at line 835 of file tmarshal.c.
|
static |
Definition at line 757 of file tmarshal.c.
Definition at line 870 of file tmarshal.c.
|
static |
Definition at line 740 of file tmarshal.c.
Definition at line 725 of file tmarshal.c.
|
static |
Definition at line 1260 of file tmarshal.c.
|
static |
Definition at line 1325 of file tmarshal.c.
|
static |
Definition at line 1273 of file tmarshal.c.
|
static |
Definition at line 1288 of file tmarshal.c.
|
static |
Definition at line 776 of file tmarshal.c.
|
static |
Definition at line 1190 of file tmarshal.c.
|
static |
Definition at line 1206 of file tmarshal.c.
Definition at line 852 of file tmarshal.c.
|
static |
Definition at line 1547 of file tmarshal.c.
|
static |
Definition at line 1441 of file tmarshal.c.
Definition at line 1540 of file tmarshal.c.
Definition at line 1455 of file tmarshal.c.
Definition at line 1044 of file tmarshal.c.
Definition at line 1627 of file tmarshal.c.
Definition at line 1037 of file tmarshal.c.
Definition at line 798 of file tmarshal.c.
Definition at line 978 of file tmarshal.c.
Definition at line 844 of file tmarshal.c.
|
static |
Definition at line 683 of file tmarshal.c.
Referenced by Widget_Clone(), Widget_CloneCoclass(), and Widget_CloneDispatch().
|
static |
Definition at line 1467 of file tmarshal.c.
Definition at line 709 of file tmarshal.c.
|
static |
Definition at line 1423 of file tmarshal.c.
Definition at line 862 of file tmarshal.c.
Definition at line 1461 of file tmarshal.c.
|
static |
Definition at line 903 of file tmarshal.c.
Definition at line 924 of file tmarshal.c.
|
static |
Definition at line 1096 of file tmarshal.c.
|
static |
Definition at line 1051 of file tmarshal.c.
|
static |
Definition at line 1361 of file tmarshal.c.
|
static |
Definition at line 1517 of file tmarshal.c.
Definition at line 916 of file tmarshal.c.
|
static |
Definition at line 636 of file tmarshal.c.
Referenced by create_coclass_obj().
|
static |
Definition at line 648 of file tmarshal.c.
Referenced by create_coclass_obj().
|
static |
Definition at line 473 of file tmarshal.c.
Referenced by create_disp_obj2().
|
static |
Definition at line 177 of file tmarshal.c.
Referenced by ExternalConnection_ReleaseConnection(), and test_external_connection().
|
static |
Definition at line 176 of file tmarshal.c.
Referenced by ExternalConnection_AddConnection(), ExternalConnection_ReleaseConnection(), and test_external_connection().
|
static |
Definition at line 226 of file tmarshal.c.
Referenced by TestDual_QueryInterface().
|
static |
Definition at line 218 of file tmarshal.c.
|
static |
Definition at line 1928 of file tmarshal.c.
Referenced by KindaEnumWidget_Create().
|
static |
Definition at line 1991 of file tmarshal.c.
Referenced by test_typelibmarshal().
|
static |
Definition at line 1982 of file tmarshal.c.
|
static |
Definition at line 1775 of file tmarshal.c.
Referenced by test_StaticWidget().
|
static |
Definition at line 1763 of file tmarshal.c.
|
static |
Definition at line 66 of file tmarshal.c.
Referenced by test_marshal_array(), test_marshal_struct(), Widget_array(), and Widget_complex_struct().
|
static |
Definition at line 67 of file tmarshal.c.
Referenced by test_marshal_array().
|
static |
Definition at line 68 of file tmarshal.c.
Referenced by test_marshal_array(), and Widget_array().
|
static |
Definition at line 69 of file tmarshal.c.
Referenced by Widget_array().
|
static |
Definition at line 70 of file tmarshal.c.
Referenced by test_marshal_array(), and Widget_array().
|
static |
Definition at line 71 of file tmarshal.c.
Referenced by test_marshal_array(), and Widget_array().
Definition at line 43 of file tmarshal.c.
Referenced by test_marshal_array(), test_marshal_bstr(), Widget_bstr(), and Widget_variant_array().
Definition at line 44 of file tmarshal.c.
Referenced by test_marshal_array(), test_marshal_bstr(), test_marshal_struct(), test_marshal_variant(), Widget_bstr(), Widget_complex_struct(), Widget_variant(), and Widget_variant_array().
Definition at line 45 of file tmarshal.c.
Referenced by test_marshal_bstr(), and Widget_bstr().
Definition at line 46 of file tmarshal.c.
Referenced by test_marshal_bstr(), and Widget_bstr().
|
static |
Definition at line 48 of file tmarshal.c.
Referenced by test_marshal_array(), test_marshal_struct(), Widget_complex_struct(), Widget_mystruct(), Widget_mystruct_array(), and Widget_mystruct_ptr_ptr().
|
static |
Definition at line 49 of file tmarshal.c.
Referenced by test_marshal_array(), test_marshal_struct(), and Widget_mystruct_array().
|
static |
Definition at line 50 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_mystruct().
|
static |
Definition at line 51 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_mystruct().
|
static |
Definition at line 52 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_mystruct().
|
static |
Definition at line 53 of file tmarshal.c.
Referenced by Widget_mystruct().
|
static |
Definition at line 54 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_mystruct().
Definition at line 58 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_rect().
Definition at line 59 of file tmarshal.c.
Referenced by test_gethrgn(), and test_marshal_struct().
Definition at line 60 of file tmarshal.c.
Referenced by test_gethrgn(), test_marshal_struct(), and Widget_rect().
Definition at line 61 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_rect().
Definition at line 62 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_rect().
Definition at line 63 of file tmarshal.c.
Referenced by Widget_rect().
Definition at line 64 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_rect().
Definition at line 56 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_thin_struct().
|
static |
Definition at line 228 of file tmarshal.c.
Referenced by StaticWidget_TestDual(), test_external_connection(), TestDual_QueryInterface(), TestSecondDisp_QueryInterface(), and TestSecondIface_QueryInterface().
|
static |
Definition at line 228 of file tmarshal.c.
Referenced by test_StaticWidget(), and TestDual_QueryInterface().
|
static |
Definition at line 381 of file tmarshal.c.
|
static |
Definition at line 669 of file tmarshal.c.
Referenced by test_marshal_bstr(), test_marshal_coclass(), test_marshal_iface(), test_marshal_pointer(), test_marshal_variant(), Widget_bstr(), Widget_Coclass_ptr(), Widget_iface_in(), Widget_iface_out(), Widget_iface_ptr(), Widget_long_ptr(), Widget_long_ptr_ptr(), and Widget_variant().
|
static |
Definition at line 318 of file tmarshal.c.
Referenced by TestDual_QueryInterface().
|
static |
Definition at line 307 of file tmarshal.c.
|
static |
Definition at line 257 of file tmarshal.c.
Referenced by StaticWidget_TestSecondIface(), and TestDual_QueryInterface().
|
static |
Definition at line 250 of file tmarshal.c.
Definition at line 1635 of file tmarshal.c.
Referenced by Widget_Create().