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
e3a288f4
Commit
e3a288f4
authored
Aug 16, 2004
by
Christian Costa
Committed by
Alexandre Julliard
Aug 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for filtergraph.
parent
182a403e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
99 additions
and
0 deletions
+99
-0
configure
configure
+0
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/quartz/Makefile.in
+2
-0
.cvsignore
dlls/quartz/tests/.cvsignore
+3
-0
Makefile.in
dlls/quartz/tests/Makefile.in
+14
-0
filtergraph.c
dlls/quartz/tests/filtergraph.c
+79
-0
No files found.
configure
View file @
e3a288f4
This diff is collapsed.
Click to expand it.
configure.ac
View file @
e3a288f4
...
...
@@ -1621,6 +1621,7 @@ dlls/psapi/Makefile
dlls/psapi/tests/Makefile
dlls/qcap/Makefile
dlls/quartz/Makefile
dlls/quartz/tests/Makefile
dlls/rasapi32/Makefile
dlls/richedit/Makefile
dlls/rpcrt4/Makefile
...
...
dlls/quartz/Makefile.in
View file @
e3a288f4
...
...
@@ -25,6 +25,8 @@ C_SRCS = \
RC_SRCS
=
version.rc
SUBDIRS
=
tests
@MAKE_DLL_RULES@
### Dependencies:
dlls/quartz/tests/.cvsignore
0 → 100644
View file @
e3a288f4
Makefile
filtergraph.ok
testlist.c
dlls/quartz/tests/Makefile.in
0 → 100644
View file @
e3a288f4
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
quartz.dll
IMPORTS
=
ole32 user32 gdi32 kernel32
EXTRALIBS
=
-luuid
CTESTS
=
\
filtergraph.c
@MAKE_TEST_RULES@
### Dependencies:
dlls/quartz/tests/filtergraph.c
0 → 100644
View file @
e3a288f4
/*
* Unit tests for Direct Show functions
*
* Copyright (C) 2004 Christian Costa
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <assert.h>
#include "wine/test.h"
#include "uuids.h"
#include "dshow.h"
#include "control.h"
IGraphBuilder
*
pgraph
;
static
void
createfiltergraph
()
{
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_FilterGraph
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IGraphBuilder
,
(
LPVOID
*
)
&
pgraph
);
ok
(
hr
==
S_OK
,
"Creating filtergraph returned: %lx
\n
"
,
hr
);
}
#if 0
static void renderfile()
{
WCHAR file[] = {'t','e','s','t','.','a','v','i',0};
HRESULT hr;
hr = IGraphBuilder_RenderFile(pgraph, file, NULL);
ok(hr==S_OK, "RenderFile returned: %lx\n", hr);
}
static void rungraph()
{
HRESULT hr;
IMediaControl* pmc;
hr = IGraphBuilder_QueryInterface(pgraph, &IID_IMediaControl, (LPVOID*)&pmc);
ok(hr==S_OK, "Cannot get IMediaControl interface returned: %lx\n", hr);
hr = IMediaControl_Run(pmc);
ok(hr==S_OK, "Cannot run the graph returned: %lx\n", hr);
Sleep(20000);
}
#endif
static
void
releasefiltergraph
()
{
HRESULT
hr
;
hr
=
IGraphBuilder_Release
(
pgraph
);
ok
(
hr
==
S_OK
,
"Releasing filtergraph returned: %lx
\n
"
,
hr
);
}
START_TEST
(
filtergraph
)
{
createfiltergraph
();
#if 0
renderfile();
rungraph();
#endif
releasefiltergraph
();
}
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