#include "initguid.h"
#include "wine/dxdiag.h"
#include "wine/test.h"
Go to the source code of this file.
◆ COBJMACROS
◆ START_TEST()
Definition at line 154 of file provider.c.
155{
160}
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
static void test_Initialize(void)
static void test_GetRootContainer(void)
◆ test_GetRootContainer()
static void test_GetRootContainer |
( |
void |
| ) |
|
|
static |
Definition at line 93 of file provider.c.
94{
96 IDxDiagProvider *
pddp;
97 IDxDiagContainer *
pddc, *pddc2;
99
104 "Creating a IDxDiagProvider instance failed with %x\n",
hr);
106 {
107 skip(
"Failed to create a IDxDiagProvider instance\n");
108 return;
109 }
110
111
114 "Expected IDxDiagProvider::GetRootContainer to return CO_E_NOTINITIALIZED, got %x\n",
hr);
115
118 "Expected IDxDiagProvider::GetRootContainer to return CO_E_NOTINITIALIZED, got %x\n",
hr);
119
125 ok(
hr ==
S_OK,
"Expected IDxDiagProvider::Initialize to return S_OK, got %x\n",
hr);
127 {
128 skip(
"IDxDiagProvider::Initialize failed\n");
130 return;
131 }
132
133
134 if (0)
135 {
137 trace(
"IDxDiagProvider::GetRootContainer returned %x\n",
hr);
138 }
139
141 ok(
hr ==
S_OK,
"Expected IDxDiagProvider::GetRootContainer to return S_OK, got %x\n",
hr);
142
143
144
146 ok(
hr ==
S_OK,
"Expected IDxDiagProvider::GetRootContainer to return S_OK, got %x\n",
hr);
147 ok(
pddc != pddc2,
"Expected the two pointers (%p vs. %p) to be unequal\n",
pddc, pddc2);
148
152}
#define CO_E_NOTINITIALIZED
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
#define IDxDiagContainer_Release(p)
#define IDxDiagProvider_Release(p)
#define IDxDiagProvider_GetRootContainer(p, a)
#define DXDIAG_DX9_SDK_VERSION
#define IDxDiagProvider_Initialize(p, a, b)
GLenum const GLfloat * params
static IDxDiagContainer * pddc
static IDxDiagProvider * pddp
#define REGDB_E_CLASSNOTREG
Referenced by START_TEST().
◆ test_Initialize()
Definition at line 27 of file provider.c.
28{
30 IDxDiagProvider *
pddp;
32
37 "Creating a IDxDiagProvider instance failed with %x\n",
hr);
39 {
40 skip(
"Failed to create a IDxDiagProvider instance\n");
41 return;
42 }
43
44
47 "Expected IDxDiagProvider::Initialize to return E_POINTER, got %x\n",
hr);
48
49
53 "Expected IDxDiagProvider::Initialize to return E_INVALIDARG, got %x\n",
hr);
54
58 "Expected IDxDiagProvider::Initialize to return E_INVALIDARG, got %x\n",
hr);
59
60
62 params.dwDxDiagHeaderVersion = 0;
67 "Expected IDxDiagProvider::Initialize to return E_INVALIDARG, got %x\n",
hr);
68
69
70 if (0)
71 {
76 trace(
"IDxDiagProvider::Initialize returned %x\n",
hr);
77 }
78
79
84 ok(
hr ==
S_OK,
"Expected IDxDiagProvider::Initialize to return S_OK, got %x\n",
hr);
85
86
88 ok(
hr ==
S_OK,
"Expected IDxDiagProvider::Initialize to return S_OK, got %x\n",
hr);
89
91}
Referenced by START_TEST().