35 HRESULT res = (exp); \
37 ok(FALSE, #exp " failed: %x\n", res); \
113 *ppvOut = &
This->IACList_iface;
118 IEnumString_AddRef(iface);
123 trace(
"unknown interface queried\n");
132 trace(
"ACL(%p): read %d item(s)\n",
This, celt);
133 for (
i = 0;
i < celt;
i++)
150 ok(
FALSE,
"Unexpected call to TestACL_Skip\n");
156 ok(
FALSE,
"Unexpected call to TestACL_Clone\n");
215#define expect_str(obj, str) \
217 ole_ok(IEnumString_Next(obj, 1, &wstr, &i)); \
218 ok(i == 1, "Expected i == 1, got %d\n", i); \
219 ok(str[0] == wstr[0], "String mismatch\n"); \
220 CoTaskMemFree(wstr); \
223#define expect_end(obj) \
224 ok(IEnumString_Next(obj, 1, &wstr, &i) == S_FALSE, "Unexpected return from Next\n");
228 const char *strings1[] = {
"a",
"c",
"e"};
229 const char *strings2[] = {
"a",
"b",
"d"};
244 ok(
hr ==
S_OK,
"failed to create ACLMulti instance, 0x%08x\n",
hr);
247 hr = IEnumString_QueryInterface(
obj, &IID_IACList, (
void**)&acl);
249 hr = IEnumString_QueryInterface(
obj, &IID_IACList2, &tmp);
251 hr = IEnumString_QueryInterface(
obj, &IID_IObjMgr, (
void**)&mgr);
254 hr = IEnumString_QueryInterface(
obj, &IID_IEnumACString, (
LPVOID*)&unk);
259 ok(
hr ==
S_OK,
"QueryInterface(IID_IEnumACString) failed: %x\n",
hr);
261 IEnumACString_Release(unk);
267 ok(
i == 0,
"Unexpected fetched value %d\n",
i);
270 hr = IEnumString_Skip(
obj, 1);
293 hr = IEnumString_Reset(
obj);
295 ok(acl1->
pos == 0,
"acl1 not reset\n");
296 ok(acl2->
pos == 0,
"acl2 not reset\n");
302 "expcount - expected 0 or 1, got %d\n", acl2->
expcount);
304 hr = IEnumString_Next(
obj, 15, wstrtab, &
i);
306 ok(
i == 1,
"Expected i == 1, got %d\n",
i);
309 hr = IEnumString_Next(
obj, 15, wstrtab, &
i);
313 hr = IEnumString_Next(
obj, 15, wstrtab, &
i);
317 hr = IEnumString_Next(
obj, 15, wstrtab, &
i);
325 "expcount - expected 0 or 2, got %d\n", acl2->
expcount);
331 "expcount - expected 0 or 3, got %d\n", acl2->
expcount);
337 "expcount - expected 0 or 4, got %d\n", acl2->
expcount);
348 ok(acl1->
ref == 1,
"acl1 not released\n");
350 IEnumString_Reset(
obj);
356 IEnumString_Release(
obj);
359 ok(
ref == 0,
"Unexpected references\n");
360 ok(acl1->
ref == 1,
"acl1 not released\n");
361 ok(acl2->
ref == 1,
"acl2 not released\n");
370 IACList *
list, *list2;
374 ok(
hr ==
S_OK,
"failed to create ACListISF instance, 0x%08x\n",
hr);
379 hr = IEnumString_QueryInterface(enumstring, &IID_IACList, (
void**)&list2);
381 ok(
list == list2,
"got %p, %p\n",
list, list2);
384 IEnumString_Release(enumstring);
#define InterlockedIncrement
#define InterlockedDecrement
#define STDMETHODCALLTYPE
static HRESULT STDMETHODCALLTYPE TestACL_ACList_QueryInterface(IACList *iface, REFIID iid, LPVOID *ppvout)
static void test_ACLMulti(void)
static ULONG STDMETHODCALLTYPE TestACL_ACList_Release(IACList *iface)
static HRESULT STDMETHODCALLTYPE TestACL_Clone(IEnumString *iface, IEnumString **out)
static LPWSTR strdup_AtoW(LPCSTR str)
#define expect_str(obj, str)
IEnumStringVtbl TestACLVtbl
static ULONG STDMETHODCALLTYPE TestACL_ACList_AddRef(IACList *iface)
static TestACL * TestACL_Constructor(int limit, const char **strings)
static TestACL * impl_from_IACList(IACList *iface)
static HRESULT STDMETHODCALLTYPE TestACL_Skip(IEnumString *iface, ULONG celt)
IACListVtbl TestACL_ACListVtbl
static HRESULT STDMETHODCALLTYPE TestACL_Reset(IEnumString *iface)
static HRESULT STDMETHODCALLTYPE TestACL_QueryInterface(IEnumString *iface, REFIID iid, LPVOID *ppvOut)
static HRESULT STDMETHODCALLTYPE TestACL_Expand(IACList *iface, LPCOLESTR str)
static ULONG STDMETHODCALLTYPE TestACL_Release(IEnumString *iface)
static HRESULT STDMETHODCALLTYPE TestACL_Next(IEnumString *iface, ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
static void test_ACListISF(void)
static TestACL * impl_from_IEnumString(IEnumString *iface)
static ULONG STDMETHODCALLTYPE TestACL_AddRef(IEnumString *iface)
#define MultiByteToWideChar
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
GLsizei const GLchar *const * strings
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
VOID WINAPI CoTaskMemFree(LPVOID ptr)
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
const GUID IID_IEnumString
#define IsEqualGUID(rguid1, rguid2)
#define IObjMgr_Append(p, a)
#define IObjMgr_Remove(p, a)
#define IACList_Expand(p, a)
#define IACList_Release(p)
#define IACList_QueryInterface(p, a, b)
#define IObjMgr_Release(p)
IEnumString IEnumString_iface
#define CONTAINING_RECORD(address, type, field)