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
7a0b6a95
Commit
7a0b6a95
authored
Feb 03, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Add tests for IFilterGraph::Reconnect().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6446ddea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
filtergraph.c
dlls/quartz/tests/filtergraph.c
+33
-0
No files found.
dlls/quartz/tests/filtergraph.c
View file @
7a0b6a95
...
...
@@ -2878,8 +2878,41 @@ todo_wine
ok
(
source_pin
.
peer
==
&
sink_pin
.
IPin_iface
,
"Got peer %p.
\n
"
,
source_pin
.
peer
);
ok
(
source_pin
.
mt
==
&
mt
,
"Got mt %p.
\n
"
,
source_pin
.
mt
);
ok
(
!
sink_pin
.
peer
,
"Got peer %p.
\n
"
,
sink_pin
.
peer
);
hr
=
IFilterGraph2_Disconnect
(
graph
,
&
source_pin
.
IPin_iface
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
/* Test Reconnect[Ex](). */
hr
=
IFilterGraph2_Reconnect
(
graph
,
&
source_pin
.
IPin_iface
);
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IFilterGraph2_Reconnect
(
graph
,
&
sink_pin
.
IPin_iface
);
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
source_pin
.
IPin_iface
,
&
sink_pin
.
IPin_iface
,
&
mt
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IFilterGraph2_Reconnect
(
graph
,
&
source_pin
.
IPin_iface
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
source_pin
.
peer
==
&
sink_pin
.
IPin_iface
,
"Got peer %p.
\n
"
,
source_pin
.
peer
);
ok
(
!
source_pin
.
mt
,
"Got mt %p.
\n
"
,
source_pin
.
mt
);
ok
(
!
sink_pin
.
peer
,
"Got peer %p.
\n
"
,
sink_pin
.
peer
);
hr
=
IFilterGraph2_Disconnect
(
graph
,
&
source_pin
.
IPin_iface
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
source_pin
.
IPin_iface
,
&
sink_pin
.
IPin_iface
,
&
mt
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
sink_pin
.
peer
=
&
source_pin
.
IPin_iface
;
IPin_AddRef
(
sink_pin
.
peer
);
hr
=
IFilterGraph2_Reconnect
(
graph
,
&
sink_pin
.
IPin_iface
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
source_pin
.
peer
==
&
sink_pin
.
IPin_iface
,
"Got peer %p.
\n
"
,
source_pin
.
peer
);
ok
(
!
source_pin
.
mt
,
"Got mt %p.
\n
"
,
source_pin
.
mt
);
ok
(
!
sink_pin
.
peer
,
"Got peer %p.
\n
"
,
sink_pin
.
peer
);
hr
=
IFilterGraph2_Disconnect
(
graph
,
&
source_pin
.
IPin_iface
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
/* Both pins are disconnected when a filter is removed. */
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
source_pin
.
IPin_iface
,
&
sink_pin
.
IPin_iface
,
&
mt
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
sink_pin
.
peer
=
&
source_pin
.
IPin_iface
;
IPin_AddRef
(
sink_pin
.
peer
);
hr
=
IFilterGraph2_RemoveFilter
(
graph
,
&
source
.
IBaseFilter_iface
);
...
...
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