Go to the source code of this file.
◆ CreateFolder2Instance()
◆ START_TEST()
Definition at line 165 of file ShellFolder.cpp.
166{
167 CCoInit ComInit;
168
172}
static void TestGetDefaultColumn()
static void TestGetDefaultColumnState()
static void TestFolderSearch()
◆ TestFolderSearch()
| static void TestFolderSearch |
( |
| ) |
|
|
static |
Definition at line 24 of file ShellFolder.cpp.
25{
27 static const struct {
30 const GUID *pExpected;
31 } defs[] =
32 {
41 };
43 {
45 if (!pFolder)
46 {
47 skip(
"Can't create special folder %d\n", defs[
i].csidl);
48 continue;
49 }
53 ok(
hr == defs[
i].
hr,
"Unexpected result %#x for %d\n",
hr, defs[
i].csidl);
54 ok(
IsEqualGUID(
guid, defs[
i].pExpected ? *defs[
i].pExpected : invalid),
"GUID mismatch for %d!\n", defs[
i].csidl);
55 }
56
57 static const struct {
60 bool NullOutput;
62 {
70 };
72 {
74 if (!pFolder)
75 {
76 skip(
"Can't create special folder %d\n",
enums[
i].csidl);
77 continue;
78 }
81 HRESULT hr = pFolder->EnumSearches(&pEnum);
83 ok(pEnum == (
enums[
i].NullOutput ?
NULL : invalid),
"Result mismatch for %d!\n",
enums[
i].csidl);
84 if (pEnum && pEnum != invalid)
86 }
87}
static IShellFolder2 * CreateFolder2Instance(WORD csidl)
DWORD WINAPI GetVersion(void)
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
static const struct encodedInt enums[]
#define IsEqualGUID(rguid1, rguid2)
#define CSIDL_CONNECTIONS
Referenced by START_TEST().
◆ TestGetDefaultColumn()
| static void TestGetDefaultColumn |
( |
| ) |
|
|
static |
Definition at line 89 of file ShellFolder.cpp.
90{
92 static const struct {
96 } defs[] =
97 {
108 };
110 {
112 if (!pFolder)
113 {
114 skip(
"Can't create special folder %d\n", defs[
i].csidl);
115 continue;
116 }
120 ok(
hr == defs[
i].
hr,
"Unexpected result %#x for %d\n",
hr, defs[
i].csidl);
123 ok(disp ==
expected,
"Unexpected output %#x for %d\n", disp, defs[
i].csidl);
124 }
125}
Referenced by START_TEST().
◆ TestGetDefaultColumnState()
| static void TestGetDefaultColumnState |
( |
| ) |
|
|
static |
Definition at line 127 of file ShellFolder.cpp.
128{
129
131 static const struct {
135 } states[] =
136 {
147 };
149 {
151 if (!pFolder)
152 {
153 skip(
"Can't create special folder %d\n", states[
i].csidl);
154 continue;
155 }
159 ok(
hr == states[
i].
hr,
"Unexpected result %#x for %d\n",
hr, states[
i].csidl);
162 }
163}
GLuint GLuint GLsizei GLenum type
Referenced by START_TEST().