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
646eefaa
Commit
646eefaa
authored
Dec 05, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Dec 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add some IGraphBuilder related tests.
parent
4ab6fd3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
filtergraph.c
dlls/quartz/tests/filtergraph.c
+47
-0
No files found.
dlls/quartz/tests/filtergraph.c
View file @
646eefaa
...
...
@@ -102,6 +102,52 @@ static void test_render_run(void)
releasefiltergraph
();
}
static
void
test_graph_builder
(
void
)
{
HRESULT
hr
;
IBaseFilter
*
pF
=
NULL
;
IBaseFilter
*
pF2
=
NULL
;
IPin
*
pIn
=
NULL
;
IEnumPins
*
pEnum
=
NULL
;
PIN_DIRECTION
dir
;
static
const
WCHAR
testFilterW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
'F'
,
'i'
,
'l'
,
't'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
fooBarW
[]
=
{
'f'
,
'o'
,
'o'
,
'B'
,
'a'
,
'r'
,
0
};
if
(
!
createfiltergraph
())
return
;
/* create video filter */
hr
=
CoCreateInstance
(
&
CLSID_VideoRenderer
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IBaseFilter
,
(
LPVOID
*
)
&
pF
);
ok
(
hr
==
S_OK
,
"CoCreateInstance failed with %x
\n
"
,
hr
);
ok
(
pF
!=
NULL
,
"pF is NULL
\n
"
);
/* add the two filters to the graph */
hr
=
IGraphBuilder_AddFilter
(
pgraph
,
pF
,
testFilterW
);
ok
(
hr
==
S_OK
,
"failed to add pF to the graph: %x
\n
"
,
hr
);
/* find the pins */
hr
=
IBaseFilter_EnumPins
(
pF
,
&
pEnum
);
ok
(
hr
==
S_OK
,
"IBaseFilter_EnumPins failed for pF: %x
\n
"
,
hr
);
ok
(
pEnum
!=
NULL
,
"pEnum is NULL
\n
"
);
hr
=
IEnumPins_Next
(
pEnum
,
1
,
&
pIn
,
NULL
);
ok
(
hr
==
S_OK
,
"IEnumPins_Next failed for pF: %x
\n
"
,
hr
);
ok
(
pIn
!=
NULL
,
"pIn is NULL
\n
"
);
hr
=
IPin_QueryDirection
(
pIn
,
&
dir
);
ok
(
hr
==
S_OK
,
"IPin_QueryDirection failed: %x
\n
"
,
hr
);
ok
(
dir
==
PINDIR_INPUT
,
"pin has wrong direction
\n
"
);
hr
=
IGraphBuilder_FindFilterByName
(
pgraph
,
fooBarW
,
&
pF2
);
todo_wine
{
ok
(
hr
==
VFW_E_NOT_FOUND
,
"IGraphBuilder_FindFilterByName returned %x
\n
"
,
hr
);
}
ok
(
pF2
==
NULL
,
"IGraphBuilder_FindFilterByName returned %p
\n
"
,
pF2
);
hr
=
IGraphBuilder_FindFilterByName
(
pgraph
,
testFilterW
,
&
pF2
);
ok
(
hr
==
S_OK
,
"IGraphBuilder_FindFilterByName returned %x
\n
"
,
hr
);
ok
(
pF2
!=
NULL
,
"IGraphBuilder_FindFilterByName returned NULL
\n
"
);
releasefiltergraph
();
}
static
void
test_filter_graph2
(
void
)
{
HRESULT
hr
;
...
...
@@ -119,5 +165,6 @@ START_TEST(filtergraph)
{
CoInitialize
(
NULL
);
test_render_run
();
test_graph_builder
();
test_filter_graph2
();
}
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