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
8309a38d
Commit
8309a38d
authored
Jul 02, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Add COM aggregation test for NullRenderer.
parent
02216db8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
misc.c
dlls/quartz/tests/misc.c
+19
-0
No files found.
dlls/quartz/tests/misc.c
View file @
8309a38d
...
...
@@ -69,6 +69,11 @@ static void test_aggregation(const CLSID clsidOuter, const CLSID clsidInner,
/* for aggregation, we should only be able to request IUnknown */
hr
=
CoCreateInstance
(
&
clsidInner
,
pUnkOuter
,
CLSCTX_INPROC_SERVER
,
&
iidInner
,
(
LPVOID
*
)
&
pUnkInnerFail
);
if
(
hr
==
REGDB_E_CLASSNOTREG
)
{
skip
(
"Class not registered
\n
"
);
return
;
}
ok
(
hr
==
E_NOINTERFACE
,
"CoCreateInstance returned %x
\n
"
,
hr
);
ok
(
pUnkInnerFail
==
NULL
,
"pUnkInnerFail is not NULL
\n
"
);
...
...
@@ -157,6 +162,19 @@ static void test_aggregation(const CLSID clsidOuter, const CLSID clsidInner,
}
while
(
refCount
);
}
static
void
test_null_renderer_aggregations
(
void
)
{
const
IID
*
iids
[]
=
{
&
IID_IMediaFilter
,
&
IID_IBaseFilter
};
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
iids
)
/
sizeof
(
iids
[
0
]);
i
++
)
{
test_aggregation
(
CLSID_SystemClock
,
CLSID_NullRenderer
,
IID_IReferenceClock
,
*
iids
[
i
]);
}
}
static
void
test_video_renderer_aggregations
(
void
)
{
const
IID
*
iids
[]
=
{
...
...
@@ -206,6 +224,7 @@ START_TEST(misc)
{
CoInitialize
(
NULL
);
test_null_renderer_aggregations
();
test_video_renderer_aggregations
();
test_filter_graph_aggregations
();
test_filter_mapper_aggregations
();
...
...
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