ReactOS 0.4.15-dev-8100-g1887773
name.c File Reference
#include <stdio.h>
#include <windows.h>
#include <winsxs.h>
#include <corerror.h>
#include "wine/test.h"
Include dependency graph for name.c:

Go to the source code of this file.

Macros

#define COBJMACROS
 

Functions

static void test_CreateAssemblyNameObject (void)
 
 START_TEST (name)
 

Variables

static const WCHAR wine1W []
 
static const WCHAR wine2W []
 
static const WCHAR wine3W []
 
static const WCHAR wine4W []
 
static const WCHAR wine5W []
 
static const WCHAR wine6W []
 
static const WCHAR wine7W []
 
static const WCHAR wine8W []
 
static const WCHAR wine9W []
 
static const WCHAR wine10W []
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 21 of file name.c.

Function Documentation

◆ START_TEST()

START_TEST ( name  )

Definition at line 219 of file name.c.

220{
222}
static void test_CreateAssemblyNameObject(void)
Definition: name.c:50

◆ test_CreateAssemblyNameObject()

static void test_CreateAssemblyNameObject ( void  )
static

Definition at line 50 of file name.c.

51{
52 static const WCHAR emptyW[] = {0};
54 HRESULT hr;
55
57 ok(hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr);
58
59 name = (IAssemblyName *)0xdeadbeef;
61 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
62 ok( !name, "expected NULL got %p\n", name );
63
64 name = (IAssemblyName *)0xdeadbeef;
66 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
67 ok( !name, "expected NULL got %p\n", name );
68
69 name = (IAssemblyName *)0xdeadbeef;
71 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
72 ok( !name, "expected NULL got %p\n", name );
73
74 name = (IAssemblyName *)0xdeadbeef;
76 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
77 ok( !name, "expected NULL got %p\n", name );
78
79 name = NULL;
81 ok( hr == S_OK, "expected S_OK got %08x\n", hr );
82 ok( name != NULL, "expected non-NULL name\n" );
83 IAssemblyName_Release( name );
84
86 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
87
88 name = (IAssemblyName *)0xdeadbeef;
90 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
91 ok( !name, "expected NULL got %p\n", name );
92
93 name = (IAssemblyName *)0xdeadbeef;
95 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
96 ok( !name, "expected NULL got %p\n", name );
97
98 name = (IAssemblyName *)0xdeadbeef;
100 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
101 ok( !name, "expected NULL got %p\n", name );
102
103 name = (IAssemblyName *)0xdeadbeef;
105 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
106 ok( !name, "expected NULL got %p\n", name );
107
108 name = (IAssemblyName *)0xdeadbeef;
110 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
111 ok( !name, "expected NULL got %p\n", name );
112
114 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
115
116 name = (IAssemblyName *)0xdeadbeef;
118 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
119 ok( !name, "expected NULL got %p\n", name );
120
121 name = (IAssemblyName *)0xdeadbeef;
123 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
124 ok( !name, "expected NULL got %p\n", name );
125
126 name = (IAssemblyName *)0xdeadbeef;
128 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
129 ok( !name, "expected NULL got %p\n", name );
130
131 name = (IAssemblyName *)0xdeadbeef;
133 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
134 ok( !name, "expected NULL got %p\n", name );
135
136 name = (IAssemblyName *)0xdeadbeef;
138 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
139
141 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
142
143 name = (IAssemblyName *)0xdeadbeef;
145 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
146 ok( !name, "expected NULL got %p\n", name );
147
148 name = (IAssemblyName *)0xdeadbeef;
150 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
151 ok( !name, "expected NULL got %p\n", name );
152
153 name = (IAssemblyName *)0xdeadbeef;
155 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
156 ok( !name, "expected NULL got %p\n", name );
157
158 name = (IAssemblyName *)0xdeadbeef;
160 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
161 ok( !name, "expected NULL got %p\n", name );
162
163 name = (IAssemblyName *)0xdeadbeef;
165 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
166 ok( !name, "expected NULL got %p\n", name );
167
168 name = NULL;
170 ok( hr == S_OK, "expected S_OK got %08x\n", hr );
171 ok( name != NULL, "expected non-NULL name\n" );
172 IAssemblyName_Release( name );
173
174 name = (IAssemblyName *)0xdeadbeef;
176 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
177 ok( !name, "expected NULL got %p\n", name );
178
179 name = (IAssemblyName *)0xdeadbeef;
182 "expected ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME got %08x\n", hr );
183 ok( !name, "expected NULL got %p\n", name );
184
185 name = (IAssemblyName *)0xdeadbeef;
188 "expected ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME got %08x\n", hr );
189 ok( !name, "expected NULL got %p\n", name );
190
191 name = (IAssemblyName *)0xdeadbeef;
193 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
194 ok( !name, "expected NULL got %p\n", name );
195
196 name = NULL;
198 ok( hr == S_OK, "expected S_OK got %08x\n", hr );
199 ok( name != NULL, "expected non-NULL name\n" );
200 IAssemblyName_Release( name );
201
202 name = (IAssemblyName *)0xdeadbeef;
204 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
205 ok( !name, "expected NULL got %p\n", name );
206
207 name = NULL;
209 ok( hr == S_OK, "expected S_OK got %08x\n", hr );
210 ok( name != NULL, "expected non-NULL name\n" );
211 IAssemblyName_Release( name );
212
213 name = (IAssemblyName *)0xdeadbeef;
215 ok( hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr );
216 ok( !name, "expected NULL got %p\n", name );
217}
#define ok(value,...)
Definition: atltest.h:57
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
HRESULT WINAPI CreateAssemblyNameObject(IAssemblyName **ppAssemblyNameObj, LPCWSTR szAssemblyName, DWORD dwFlags, LPVOID pvReserved)
Definition: asmname.c:797
static const WCHAR emptyW[]
Definition: navigate.c:40
#define S_OK
Definition: intsafe.h:52
static const WCHAR wine6W[]
Definition: name.c:39
static const WCHAR wine7W[]
Definition: name.c:41
static const WCHAR wine4W[]
Definition: name.c:35
static const WCHAR wine1W[]
Definition: name.c:29
static const WCHAR wine3W[]
Definition: name.c:33
static const WCHAR wine2W[]
Definition: name.c:31
static const WCHAR wine9W[]
Definition: name.c:45
static const WCHAR wine8W[]
Definition: name.c:43
static const WCHAR wine5W[]
Definition: name.c:37
static const WCHAR wine10W[]
Definition: name.c:47
HRESULT hr
Definition: shlfolder.c:183
Definition: name.c:39
#define ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME
Definition: winerror.h:2221
#define HRESULT_FROM_WIN32(x)
Definition: winerror.h:92
@ CANOF_PARSE_DISPLAY_NAME
Definition: winsxs.idl:193
@ CANOF_SET_DEFAULT_VALUES
Definition: winsxs.idl:194
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by START_TEST().

Variable Documentation

◆ wine10W

const WCHAR wine10W[]
static
Initial value:
=
{'w','i','n','e',',','t','y','p','e','=','\"','w','i','n','3','2',0}

Definition at line 47 of file name.c.

Referenced by test_CreateAssemblyNameObject().

◆ wine1W

const WCHAR wine1W[]
static
Initial value:
=
{'w','i','n','e',0}

Definition at line 29 of file name.c.

Referenced by test_CreateAssemblyNameObject(), and test_QueryAssemblyInfo().

◆ wine2W

const WCHAR wine2W[]
static
Initial value:
=
{'w','i','n','e',',','v','e','r','s','i','o','n','=','\"','1','.','2','.','3','.','4','\"',0}

Definition at line 31 of file name.c.

Referenced by test_CreateAssemblyNameObject(), and test_QueryAssemblyInfo().

◆ wine3W

const WCHAR wine3W[]
static
Initial value:
=
{'w','i','n','e',',','v','e','r','s','i','o','n','=','1','.','2','.','3','.','4',0}

Definition at line 33 of file name.c.

Referenced by test_CreateAssemblyNameObject(), and test_QueryAssemblyInfo().

◆ wine4W

const WCHAR wine4W[]
static
Initial value:
=
{'w','i','n','e',',',' ','v','e','r','s','i','o','n','=','\"','1','.','2','.','3','.','4','\"',0}

Definition at line 35 of file name.c.

Referenced by test_CreateAssemblyNameObject(), and test_QueryAssemblyInfo().

◆ wine5W

const WCHAR wine5W[]
static
Initial value:
=
{'w','i','n','e',',','v','e','r','s','i','o','n',' ','=','\"','1','.','2','.','3','.','4','\"',0}

Definition at line 37 of file name.c.

Referenced by test_CreateAssemblyNameObject(), and test_QueryAssemblyInfo().

◆ wine6W

const WCHAR wine6W[]
static
Initial value:
=
{'w','i','n','e',',','v','e','r','s','i','o','n','=',' ','\"','1','.','2','.','3','.','4','\"',0}

Definition at line 39 of file name.c.

Referenced by test_CreateAssemblyNameObject().

◆ wine7W

const WCHAR wine7W[]
static
Initial value:
=
{'w','i','n','e',' ',',','v','e','r','s','i','o','n','=','\"','1','.','2','.','3','.','4','\"',0}

Definition at line 41 of file name.c.

Referenced by test_CreateAssemblyNameObject().

◆ wine8W

const WCHAR wine8W[]
static
Initial value:
=
{'w','i','n','e',',','v','e','r','s','i','o','n',0}

Definition at line 43 of file name.c.

Referenced by test_CreateAssemblyNameObject().

◆ wine9W

const WCHAR wine9W[]
static
Initial value:
=
{'w','i','n','e',',','t','y','p','e','=','\"','\"',0}

Definition at line 45 of file name.c.

Referenced by test_CreateAssemblyNameObject().