Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
8ff76d24
Commit
8ff76d24
authored
Jan 14, 2009
by
Andrey Turkin
Committed by
Alexandre Julliard
Jan 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Add test for IContextCallback.
parent
aa8f0089
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
compobj.c
dlls/ole32/tests/compobj.c
+26
-0
No files found.
dlls/ole32/tests/compobj.c
View file @
8ff76d24
...
...
@@ -29,6 +29,9 @@
#include "shlguid.h"
#include "urlmon.h"
/* for CLSID_FileProtocol */
#include "initguid.h"
#include "ctxtcall.h"
#include "wine/test.h"
/* functions that are not present on all versions of Windows */
...
...
@@ -967,6 +970,7 @@ static void test_CoGetObjectContext(void)
HRESULT
hr
;
ULONG
refs
;
IComThreadingInfo
*
pComThreadingInfo
;
IContextCallback
*
pContextCallback
;
APTTYPE
apttype
;
THDTYPE
thdtype
;
...
...
@@ -996,6 +1000,17 @@ static void test_CoGetObjectContext(void)
refs
=
IComThreadingInfo_Release
(
pComThreadingInfo
);
ok
(
refs
==
0
,
"pComThreadingInfo should have 0 refs instead of %d refs
\n
"
,
refs
);
hr
=
pCoGetObjectContext
(
&
IID_IContextCallback
,
(
void
**
)
&
pContextCallback
);
todo_wine
{
ok_ole_success
(
hr
,
"CoGetObjectContext(ContextCallback)"
);
}
if
(
hr
==
S_OK
)
{
refs
=
IContextCallback_Release
(
pContextCallback
);
ok
(
refs
==
0
,
"pContextCallback should have 0 refs instead of %d refs
\n
"
,
refs
);
}
CoUninitialize
();
pCoInitializeEx
(
NULL
,
COINIT_MULTITHREADED
);
...
...
@@ -1014,6 +1029,17 @@ static void test_CoGetObjectContext(void)
refs
=
IComThreadingInfo_Release
(
pComThreadingInfo
);
ok
(
refs
==
0
,
"pComThreadingInfo should have 0 refs instead of %d refs
\n
"
,
refs
);
hr
=
pCoGetObjectContext
(
&
IID_IContextCallback
,
(
void
**
)
&
pContextCallback
);
todo_wine
{
ok_ole_success
(
hr
,
"CoGetObjectContext(ContextCallback)"
);
}
if
(
hr
==
S_OK
)
{
refs
=
IContextCallback_Release
(
pContextCallback
);
ok
(
refs
==
0
,
"pContextCallback should have 0 refs instead of %d refs
\n
"
,
refs
);
}
CoUninitialize
();
}
...
...
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