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
2945f467
Commit
2945f467
authored
Nov 19, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qasf/tests: Test (dis)connecting while not stopped.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6463f65a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
dmowrapper.c
dlls/qasf/tests/dmowrapper.c
+31
-0
No files found.
dlls/qasf/tests/dmowrapper.c
View file @
2945f467
...
...
@@ -1445,6 +1445,8 @@ static void test_filter_state(IMediaControl *control)
OAFilterState
state
;
HRESULT
hr
;
got_Flush
=
0
;
hr
=
IMediaControl_GetState
(
control
,
0
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
state
==
State_Stopped
,
"Got state %u.
\n
"
,
state
);
...
...
@@ -1782,6 +1784,13 @@ static void test_connect_pin(void)
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
testsource
.
source
.
pin
.
IPin_iface
,
sink
,
&
req_mt
);
ok
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IMediaControl_Pause
(
control
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
testsource
.
source
.
pin
.
IPin_iface
,
sink
,
&
req_mt
);
ok
(
hr
==
VFW_E_NOT_STOPPED
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IMediaControl_Stop
(
control
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
!
testdmo_input_mt_set
,
"Input type should not be set.
\n
"
);
req_mt
.
lSampleSize
=
123
;
...
...
@@ -1800,6 +1809,13 @@ static void test_connect_pin(void)
ok
(
testdmo_input_mt_set
,
"Input type should be set.
\n
"
);
ok
(
compare_media_types
(
&
testdmo_input_mt
,
&
req_mt
),
"Media types didn't match.
\n
"
);
hr
=
IMediaControl_Pause
(
control
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IFilterGraph2_Disconnect
(
graph
,
sink
);
ok
(
hr
==
VFW_E_NOT_STOPPED
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IMediaControl_Stop
(
control
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
test_sink_allocator
(
meminput
);
/* Test source connection. */
...
...
@@ -1816,6 +1832,14 @@ static void test_connect_pin(void)
/* Exact connection. */
req_mt
=
mt2
;
hr
=
IMediaControl_Pause
(
control
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
source
,
&
testsink
.
sink
.
pin
.
IPin_iface
,
&
req_mt
);
ok
(
hr
==
VFW_E_NOT_STOPPED
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IMediaControl_Stop
(
control
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
source
,
&
testsink
.
sink
.
pin
.
IPin_iface
,
&
req_mt
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
...
...
@@ -1831,6 +1855,13 @@ static void test_connect_pin(void)
ok
(
testdmo_output_mt_set
,
"Output type should be set.
\n
"
);
ok
(
compare_media_types
(
&
testdmo_output_mt
,
&
req_mt
),
"Media types didn't match.
\n
"
);
hr
=
IMediaControl_Pause
(
control
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IFilterGraph2_Disconnect
(
graph
,
source
);
ok
(
hr
==
VFW_E_NOT_STOPPED
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IMediaControl_Stop
(
control
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
test_filter_state
(
control
);
test_sample_processing
(
control
,
meminput
);
...
...
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