Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
fdc4d40d
Commit
fdc4d40d
authored
May 10, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
May 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Added more default handler QueryInterface tests.
parent
b301234f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
defaulthandler.c
dlls/ole32/tests/defaulthandler.c
+14
-0
No files found.
dlls/ole32/tests/defaulthandler.c
View file @
fdc4d40d
...
...
@@ -54,8 +54,15 @@
expect_ ## func = called_ ## func = FALSE; \
}while(0)
#define CHECK_NOT_CALLED(func) \
do { \
ok(!called_ ## func, "unexpected " #func "\n"); \
expect_ ## func = called_ ## func = FALSE; \
}while(0)
DEFINE_EXPECT
(
CF_QueryInterface_ClassFactory
);
DEFINE_EXPECT
(
CF_CreateInstance
);
DEFINE_EXPECT
(
CF_QueryInterface_IMarshal
);
static
const
char
*
debugstr_guid
(
REFIID
riid
)
{
...
...
@@ -178,6 +185,7 @@ static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID r
*
ppv
=
iface
;
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IMarshal
))
{
CHECK_EXPECT
(
CF_QueryInterface_IMarshal
);
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IClassFactory
))
{
...
...
@@ -262,11 +270,15 @@ static void test_default_handler_run(void)
ok
(
hres
==
REGDB_E_CLASSNOTREG
,
"Run returned: %x, expected REGDB_E_CLASSNOTREG
\n
"
,
hres
);
IRunnableObject_Release
(
ro
);
SET_EXPECT
(
CF_QueryInterface_IMarshal
);
CoRevokeClassObject
(
class_reg
);
todo_wine
CHECK_CALLED
(
CF_QueryInterface_IMarshal
);
SET_EXPECT
(
CF_QueryInterface_IMarshal
);
hres
=
CoRegisterClassObject
(
&
test_server_clsid
,
(
IUnknown
*
)
&
ClassFactory
,
CLSCTX_LOCAL_SERVER
,
0
,
&
class_reg
);
ok
(
hres
==
S_OK
,
"CoRegisterClassObject failed: %x
\n
"
,
hres
);
todo_wine
CHECK_NOT_CALLED
(
CF_QueryInterface_IMarshal
);
hres
=
OleCreateDefaultHandler
(
&
test_server_clsid
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hres
==
S_OK
,
"OleCreateDefaultHandler failed: %x
\n
"
,
hres
);
...
...
@@ -283,7 +295,9 @@ static void test_default_handler_run(void)
CHECK_CALLED
(
CF_CreateInstance
);
IRunnableObject_Release
(
ro
);
SET_EXPECT
(
CF_QueryInterface_IMarshal
);
CoRevokeClassObject
(
class_reg
);
todo_wine
CHECK_CALLED
(
CF_QueryInterface_IMarshal
);
}
START_TEST
(
defaulthandler
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment