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
7ca60b90
Commit
7ca60b90
authored
Apr 12, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/tests: Add more tests for smart tee pin interfaces.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a770ebe3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
39 deletions
+49
-39
smartteefilter.c
dlls/qcap/tests/smartteefilter.c
+49
-39
No files found.
dlls/qcap/tests/smartteefilter.c
View file @
7ca60b90
...
...
@@ -63,6 +63,7 @@ static void test_interfaces(void)
{
IBaseFilter
*
filter
=
create_smart_tee
();
ULONG
ref
;
IPin
*
pin
;
check_interface
(
filter
,
&
IID_IBaseFilter
,
TRUE
);
check_interface
(
filter
,
&
IID_IMediaFilter
,
TRUE
);
...
...
@@ -82,6 +83,54 @@ static void test_interfaces(void)
check_interface
(
filter
,
&
IID_IReferenceClock
,
FALSE
);
check_interface
(
filter
,
&
IID_IVideoWindow
,
FALSE
);
IBaseFilter_FindPin
(
filter
,
sink_id
,
&
pin
);
check_interface
(
pin
,
&
IID_IMemInputPin
,
TRUE
);
check_interface
(
pin
,
&
IID_IPin
,
TRUE
);
todo_wine
check_interface
(
pin
,
&
IID_IQualityControl
,
TRUE
);
check_interface
(
pin
,
&
IID_IUnknown
,
TRUE
);
check_interface
(
pin
,
&
IID_IAMStreamConfig
,
FALSE
);
check_interface
(
pin
,
&
IID_IAMStreamControl
,
FALSE
);
check_interface
(
pin
,
&
IID_IKsPropertySet
,
FALSE
);
check_interface
(
pin
,
&
IID_IMediaPosition
,
FALSE
);
check_interface
(
pin
,
&
IID_IMediaSeeking
,
FALSE
);
check_interface
(
pin
,
&
IID_IPropertyBag
,
FALSE
);
IPin_Release
(
pin
);
IBaseFilter_FindPin
(
filter
,
capture_id
,
&
pin
);
todo_wine
check_interface
(
pin
,
&
IID_IAMStreamControl
,
TRUE
);
check_interface
(
pin
,
&
IID_IPin
,
TRUE
);
todo_wine
check_interface
(
pin
,
&
IID_IQualityControl
,
TRUE
);
check_interface
(
pin
,
&
IID_IUnknown
,
TRUE
);
check_interface
(
pin
,
&
IID_IAMStreamConfig
,
FALSE
);
check_interface
(
pin
,
&
IID_IAsyncReader
,
FALSE
);
check_interface
(
pin
,
&
IID_IKsPropertySet
,
FALSE
);
check_interface
(
pin
,
&
IID_IMediaPosition
,
FALSE
);
check_interface
(
pin
,
&
IID_IMediaSeeking
,
FALSE
);
check_interface
(
pin
,
&
IID_IPropertyBag
,
FALSE
);
IPin_Release
(
pin
);
IBaseFilter_FindPin
(
filter
,
preview_id
,
&
pin
);
todo_wine
check_interface
(
pin
,
&
IID_IAMStreamControl
,
TRUE
);
check_interface
(
pin
,
&
IID_IPin
,
TRUE
);
todo_wine
check_interface
(
pin
,
&
IID_IQualityControl
,
TRUE
);
check_interface
(
pin
,
&
IID_IUnknown
,
TRUE
);
check_interface
(
pin
,
&
IID_IAMStreamConfig
,
FALSE
);
check_interface
(
pin
,
&
IID_IAsyncReader
,
FALSE
);
check_interface
(
pin
,
&
IID_IKsPropertySet
,
FALSE
);
check_interface
(
pin
,
&
IID_IMediaPosition
,
FALSE
);
check_interface
(
pin
,
&
IID_IMediaSeeking
,
FALSE
);
check_interface
(
pin
,
&
IID_IPropertyBag
,
FALSE
);
IPin_Release
(
pin
);
ref
=
IBaseFilter_Release
(
filter
);
ok
(
!
ref
,
"Got unexpected refcount %d.
\n
"
,
ref
);
}
...
...
@@ -1842,21 +1891,6 @@ static SourceFilter* create_audio_SourceFilter(void)
return
This
;
}
static
BOOL
has_interface
(
IUnknown
*
unknown
,
REFIID
uuid
)
{
HRESULT
hr
;
IUnknown
*
iface
=
NULL
;
hr
=
IUnknown_QueryInterface
(
unknown
,
uuid
,
(
void
**
)
&
iface
);
if
(
SUCCEEDED
(
hr
))
{
IUnknown_Release
(
iface
);
return
TRUE
;
}
else
return
FALSE
;
}
static
void
test_smart_tee_filter_in_graph
(
IBaseFilter
*
smartTeeFilter
,
IPin
*
inputPin
,
IPin
*
capturePin
,
IPin
*
previewPin
)
{
...
...
@@ -2036,30 +2070,6 @@ static void test_smart_tee_filter(void)
if
(
!
(
inputPin
&&
capturePin
&&
previewPin
))
goto
end
;
ok
(
has_interface
((
IUnknown
*
)
inputPin
,
&
IID_IUnknown
),
"IUnknown should exist on the input pin
\n
"
);
ok
(
has_interface
((
IUnknown
*
)
inputPin
,
&
IID_IMemInputPin
),
"IMemInputPin should exist the input pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
inputPin
,
&
IID_IKsPropertySet
),
"IKsPropertySet shouldn't exist on the input pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
inputPin
,
&
IID_IAMStreamConfig
),
"IAMStreamConfig shouldn't exist on the input pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
inputPin
,
&
IID_IAMStreamControl
),
"IAMStreamControl shouldn't exist on the input pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
inputPin
,
&
IID_IPropertyBag
),
"IPropertyBag shouldn't exist on the input pin
\n
"
);
todo_wine
ok
(
has_interface
((
IUnknown
*
)
inputPin
,
&
IID_IQualityControl
),
"IQualityControl should exist on the input pin
\n
"
);
ok
(
has_interface
((
IUnknown
*
)
capturePin
,
&
IID_IUnknown
),
"IUnknown should exist on the capture pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
capturePin
,
&
IID_IAsyncReader
),
"IAsyncReader shouldn't exist on the capture pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
capturePin
,
&
IID_IKsPropertySet
),
"IKsPropertySet shouldn't exist on the capture pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
capturePin
,
&
IID_IAMStreamConfig
),
"IAMStreamConfig shouldn't exist on the capture pin
\n
"
);
todo_wine
ok
(
has_interface
((
IUnknown
*
)
capturePin
,
&
IID_IAMStreamControl
),
"IAMStreamControl should exist on the capture pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
capturePin
,
&
IID_IPropertyBag
),
"IPropertyBag shouldn't exist on the capture pin
\n
"
);
todo_wine
ok
(
has_interface
((
IUnknown
*
)
capturePin
,
&
IID_IQualityControl
),
"IQualityControl should exist on the capture pin
\n
"
);
ok
(
has_interface
((
IUnknown
*
)
previewPin
,
&
IID_IUnknown
),
"IUnknown should exist on the preview pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
previewPin
,
&
IID_IAsyncReader
),
"IAsyncReader shouldn't exist on the preview pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
previewPin
,
&
IID_IKsPropertySet
),
"IKsPropertySet shouldn't exist on the preview pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
previewPin
,
&
IID_IAMStreamConfig
),
"IAMStreamConfig shouldn't exist on the preview pin
\n
"
);
todo_wine
ok
(
has_interface
((
IUnknown
*
)
capturePin
,
&
IID_IAMStreamControl
),
"IAMStreamControl should exist on the preview pin
\n
"
);
ok
(
!
has_interface
((
IUnknown
*
)
previewPin
,
&
IID_IPropertyBag
),
"IPropertyBag shouldn't exist on the preview pin
\n
"
);
todo_wine
ok
(
has_interface
((
IUnknown
*
)
previewPin
,
&
IID_IQualityControl
),
"IQualityControl should exist on the preview pin
\n
"
);
hr
=
IPin_QueryInterface
(
inputPin
,
&
IID_IMemInputPin
,
(
void
**
)
&
memInputPin
);
ok
(
SUCCEEDED
(
hr
),
"couldn't get mem input pin, hr=0x%08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
...
...
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