Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0416d2f1
Commit
0416d2f1
authored
May 05, 2022
by
Andrew Eikum
Committed by
Alexandre Julliard
May 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Add tests for IMFByteStream position.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0c2f1121
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
mfplat.c
dlls/mfplat/tests/mfplat.c
+35
-0
No files found.
dlls/mfplat/tests/mfplat.c
View file @
0416d2f1
...
...
@@ -1972,6 +1972,7 @@ static void test_MFCreateMFByteStreamOnStream(void)
ULONG
ref
,
size
;
HRESULT
hr
;
UINT
count
;
QWORD
to
;
if
(
!
pMFCreateMFByteStreamOnStream
)
{
...
...
@@ -2055,11 +2056,45 @@ static void test_MFCreateMFByteStreamOnStream(void)
ok
(
hr
==
S_OK
,
"Failed to get stream capabilities, hr %#lx.
\n
"
,
hr
);
ok
(
caps
==
(
MFBYTESTREAM_IS_READABLE
|
MFBYTESTREAM_IS_SEEKABLE
),
"Unexpected caps %#lx.
\n
"
,
caps
);
/* IMFByteStream maintains position separately from IStream */
caps
=
0
;
hr
=
IStream_Read
(
stream
,
&
caps
,
sizeof
(
caps
),
&
size
);
ok
(
hr
==
S_OK
,
"Failed to read from raw stream, hr %#lx.
\n
"
,
hr
);
ok
(
size
==
4
,
"Unexpected size.
\n
"
);
ok
(
caps
==
0xffff0000
,
"Unexpected content.
\n
"
);
caps
=
0
;
hr
=
IMFByteStream_Read
(
bytestream
,
(
BYTE
*
)
&
caps
,
sizeof
(
caps
),
&
size
);
ok
(
hr
==
S_OK
,
"Failed to read from stream, hr %#lx.
\n
"
,
hr
);
ok
(
size
==
4
,
"Unexpected size.
\n
"
);
ok
(
caps
==
0xffff0000
,
"Unexpected content.
\n
"
);
caps
=
0
;
hr
=
IStream_Read
(
stream
,
&
caps
,
sizeof
(
caps
),
&
size
);
ok
(
hr
==
S_OK
,
"Failed to read from raw stream, hr %#lx.
\n
"
,
hr
);
ok
(
size
==
0
,
"Unexpected size.
\n
"
);
ok
(
caps
==
0
,
"Unexpected content.
\n
"
);
hr
=
IMFByteStream_Seek
(
bytestream
,
msoBegin
,
0
,
0
,
&
to
);
ok
(
hr
==
S_OK
,
"Failed to read from stream, hr %#lx.
\n
"
,
hr
);
hr
=
IStream_Read
(
stream
,
&
caps
,
sizeof
(
caps
),
&
size
);
ok
(
hr
==
S_OK
,
"Failed to read from raw stream, hr %#lx.
\n
"
,
hr
);
ok
(
size
==
0
,
"Unexpected size.
\n
"
);
ok
(
caps
==
0
,
"Unexpected content.
\n
"
);
caps
=
0
;
hr
=
IMFByteStream_Read
(
bytestream
,
(
BYTE
*
)
&
caps
,
sizeof
(
caps
),
&
size
);
ok
(
hr
==
S_OK
,
"Failed to read from stream, hr %#lx.
\n
"
,
hr
);
ok
(
size
==
4
,
"Unexpected size.
\n
"
);
ok
(
caps
==
0xffff0000
,
"Unexpected content.
\n
"
);
caps
=
0
;
hr
=
IMFByteStream_Read
(
bytestream
,
(
BYTE
*
)
&
caps
,
sizeof
(
caps
),
&
size
);
ok
(
hr
==
S_OK
,
"Failed to read from stream, hr %#lx.
\n
"
,
hr
);
ok
(
size
==
0
,
"Unexpected size.
\n
"
);
ok
(
caps
==
0
,
"Unexpected content.
\n
"
);
IMFAttributes_Release
(
attributes
);
IMFByteStream_Release
(
bytestream
);
IStream_Release
(
stream
);
...
...
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