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
6702f445
Commit
6702f445
authored
Nov 22, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Add AVI Mux QueryInterface tests.
parent
eac789c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
qcap.c
dlls/qcap/tests/qcap.c
+41
-0
No files found.
dlls/qcap/tests/qcap.c
View file @
6702f445
...
...
@@ -993,12 +993,53 @@ static void test_CaptureGraphBuilder_RenderStream(void)
ICaptureGraphBuilder2_Release
(
cgb
);
}
static
void
test_AviMux_QueryInterface
(
void
)
{
IUnknown
*
avimux
,
*
unk
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_AviDest
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
avimux
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
REGDB_E_CLASSNOTREG
),
"couldn't create AVI Mux filter, hr = %08x
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
{
win_skip
(
"AVI Mux filter is not registered
\n
"
);
return
;
}
hr
=
IUnknown_QueryInterface
(
avimux
,
&
IID_IBaseFilter
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"QueryInterface(IID_IBaseFilter) failed: %x
\n
"
,
hr
);
IUnknown_Release
(
unk
);
hr
=
IUnknown_QueryInterface
(
avimux
,
&
IID_IConfigAviMux
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"QueryInterface(IID_IConfigAviMux) failed: %x
\n
"
,
hr
);
IUnknown_Release
(
unk
);
hr
=
IUnknown_QueryInterface
(
avimux
,
&
IID_IConfigInterleaving
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"QueryInterface(IID_IConfigInterleaving) failed: %x
\n
"
,
hr
);
IUnknown_Release
(
unk
);
hr
=
IUnknown_QueryInterface
(
avimux
,
&
IID_IMediaSeeking
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"QueryInterface(IID_IMediaSeeking) failed: %x
\n
"
,
hr
);
IUnknown_Release
(
unk
);
hr
=
IUnknown_QueryInterface
(
avimux
,
&
IID_IPersistMediaPropertyBag
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"QueryInterface(IID_IPersistMediaPropertyBag) failed: %x
\n
"
,
hr
);
IUnknown_Release
(
unk
);
hr
=
IUnknown_QueryInterface
(
avimux
,
&
IID_ISpecifyPropertyPages
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"QueryInterface(IID_ISpecifyPropertyPages) failed: %x
\n
"
,
hr
);
IUnknown_Release
(
unk
);
IUnknown_Release
(
avimux
);
}
START_TEST
(
qcap
)
{
if
(
SUCCEEDED
(
CoInitialize
(
NULL
)))
{
test_smart_tee_filter
();
test_CaptureGraphBuilder_RenderStream
();
test_AviMux_QueryInterface
();
CoUninitialize
();
}
else
...
...
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