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
953af3af
Commit
953af3af
authored
Apr 22, 2024
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Apr 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Add tests to reject unsupported contents for MPEG splitter.
parent
c7375748
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
mpegsplit.c
dlls/quartz/tests/mpegsplit.c
+44
-0
No files found.
dlls/quartz/tests/mpegsplit.c
View file @
953af3af
...
...
@@ -2120,6 +2120,49 @@ static void test_video_file(void)
ok
(
ret
,
"Failed to delete file, error %lu.
\n
"
,
GetLastError
());
}
static
void
test_no_acceptable_type
(
void
)
{
const
WCHAR
*
filename
=
load_resource
(
L"test.wav"
);
IBaseFilter
*
splitter
=
create_mpeg_splitter
();
IFileSourceFilter
*
filesource
;
IFilterGraph2
*
graph
;
IBaseFilter
*
reader
;
IPin
*
source
,
*
sink
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_AsyncReader
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IBaseFilter
,
(
void
**
)
&
reader
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IBaseFilter_QueryInterface
(
reader
,
&
IID_IFileSourceFilter
,
(
void
**
)
&
filesource
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IFileSourceFilter_Load
(
filesource
,
filename
,
NULL
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
CoCreateInstance
(
&
CLSID_FilterGraph
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IFilterGraph2
,
(
void
**
)
&
graph
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IFilterGraph2_AddFilter
(
graph
,
reader
,
NULL
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IFilterGraph2_AddFilter
(
graph
,
splitter
,
NULL
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IBaseFilter_FindPin
(
splitter
,
L"Input"
,
&
sink
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IBaseFilter_FindPin
(
reader
,
L"Output"
,
&
source
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
source
,
sink
,
NULL
);
todo_wine
ok
(
hr
==
VFW_E_NO_ACCEPTABLE_TYPES
,
"Got hr %#lx.
\n
"
,
hr
);
IPin_Release
(
source
);
IPin_Release
(
sink
);
IBaseFilter_Release
(
reader
);
IBaseFilter_Release
(
splitter
);
IFileSourceFilter_Release
(
filesource
);
IFilterGraph2_Release
(
graph
);
DeleteFileW
(
filename
);
}
START_TEST
(
mpegsplit
)
{
IBaseFilter
*
filter
;
...
...
@@ -2147,6 +2190,7 @@ START_TEST(mpegsplit)
test_streaming
();
test_large_file
();
test_video_file
();
test_no_acceptable_type
();
CoUninitialize
();
}
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