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
a324786b
Commit
a324786b
authored
Jul 12, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Add MFCreateAttributes tests.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
465feb7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
mfplat.c
dlls/mfplat/tests/mfplat.c
+28
-0
No files found.
dlls/mfplat/tests/mfplat.c
View file @
a324786b
...
...
@@ -32,11 +32,14 @@
#include "mfapi.h"
#include "mfidl.h"
#include "mferror.h"
#include "mfreadwrite.h"
#include "wine/test.h"
static
HRESULT
(
WINAPI
*
pMFCreateSourceResolver
)(
IMFSourceResolver
**
resolver
);
DEFINE_GUID
(
MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS
,
0xa634a91c
,
0x822b
,
0x41b9
,
0xa4
,
0x94
,
0x4d
,
0xe4
,
0x64
,
0x36
,
0x12
,
0xb0
);
DEFINE_GUID
(
MFT_CATEGORY_OTHER
,
0x90175d57
,
0xb7ea
,
0x4901
,
0xae
,
0xb3
,
0x93
,
0x3a
,
0x87
,
0x47
,
0x75
,
0x6f
);
DEFINE_GUID
(
DUMMY_CLSID
,
0x12345678
,
0x1234
,
0x1234
,
0x12
,
0x13
,
0x14
,
0x15
,
0x16
,
0x17
,
0x18
,
0x19
);
...
...
@@ -217,6 +220,30 @@ if(0)
MFShutdown
();
}
static
void
test_MFCreateAttributes
(
void
)
{
IMFAttributes
*
attributes
;
HRESULT
hr
;
UINT32
count
;
hr
=
MFCreateAttributes
(
&
attributes
,
3
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
count
=
88
;
hr
=
IMFAttributes_GetCount
(
attributes
,
&
count
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
count
==
0
,
"got %d
\n
"
,
count
);
hr
=
IMFAttributes_SetUINT32
(
attributes
,
&
MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS
,
0
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IMFAttributes_GetCount
(
attributes
,
&
count
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
count
==
1
,
"got %d
\n
"
,
count
);
IMFAttributes_Release
(
attributes
);
}
START_TEST
(
mfplat
)
{
...
...
@@ -227,6 +254,7 @@ START_TEST(mfplat)
test_register
();
test_source_resolver
();
test_MFCreateMediaType
();
test_MFCreateAttributes
();
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