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
dabb0bc2
Commit
dabb0bc2
authored
Apr 10, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/tests: Remove broken test.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ac13067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
42 deletions
+3
-42
mfplat.c
dlls/mfreadwrite/tests/mfplat.c
+3
-42
No files found.
dlls/mfreadwrite/tests/mfplat.c
View file @
dabb0bc2
...
...
@@ -79,47 +79,6 @@ static IMFByteStream *get_resource_stream(const char *name)
return
bytestream
;
}
static
void
test_MFCreateSourceReaderFromByteStream
(
void
)
{
static
const
WCHAR
audio
[]
=
{
'A'
,
'u'
,
'd'
,
'i'
,
'o'
,
0
};
IMFSourceReader
*
reader
=
NULL
;
IMFAttributes
*
attributes
;
IMFByteStream
*
bytestream
=
NULL
;
IStream
*
stream
=
NULL
;
HRESULT
hr
;
if
(
!
pMFCreateMFByteStreamOnStream
)
{
win_skip
(
"MFCreateMFByteStreamOnStream() not found
\n
"
);
return
;
}
hr
=
MFCreateAttributes
(
&
attributes
,
3
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IMFAttributes_SetString
(
attributes
,
&
MF_READWRITE_MMCSS_CLASS_AUDIO
,
audio
);
ok
(
hr
==
S_OK
,
"Failed to set string value, hr %#x.
\n
"
,
hr
);
hr
=
IMFAttributes_SetUINT32
(
attributes
,
&
MF_READWRITE_MMCSS_PRIORITY_AUDIO
,
0
);
ok
(
hr
==
S_OK
,
"Failed to set attribute, hr %#x.
\n
"
,
hr
);
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
stream
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
pMFCreateMFByteStreamOnStream
(
stream
,
&
bytestream
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
MFCreateSourceReaderFromByteStream
(
bytestream
,
attributes
,
&
reader
);
todo_wine
ok
(
hr
==
S_OK
||
hr
==
MF_E_UNSUPPORTED_BYTESTREAM_TYPE
,
"got 0x%08x
\n
"
,
hr
);
IStream_Release
(
stream
);
IMFByteStream_Release
(
bytestream
);
IMFAttributes_Release
(
attributes
);
if
(
reader
)
IMFSourceReader_Release
(
reader
);
}
static
void
test_factory
(
void
)
{
IMFReadWriteClassFactory
*
factory
,
*
factory2
;
...
...
@@ -237,7 +196,10 @@ static void test_source_reader(void)
HRESULT
hr
;
if
(
!
pMFCreateMFByteStreamOnStream
)
{
win_skip
(
"MFCreateMFByteStreamOnStream() not found
\n
"
);
return
;
}
stream
=
get_resource_stream
(
"test.wav"
);
...
...
@@ -379,7 +341,6 @@ START_TEST(mfplat)
init_functions
();
test_MFCreateSourceReaderFromByteStream
();
test_factory
();
test_source_reader
();
...
...
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