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
1d1665ef
Commit
1d1665ef
authored
Feb 22, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Skip some tests on missing function.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27040a4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
mf.c
dlls/mf/tests/mf.c
+24
-2
No files found.
dlls/mf/tests/mf.c
View file @
1d1665ef
...
@@ -47,6 +47,8 @@ DEFINE_GUID(MFVideoFormat_ABGR32, 0x00000020, 0x0000, 0x0010, 0x80, 0x00, 0x00,
...
@@ -47,6 +47,8 @@ DEFINE_GUID(MFVideoFormat_ABGR32, 0x00000020, 0x0000, 0x0010, 0x80, 0x00, 0x00,
#include "wine/test.h"
#include "wine/test.h"
static
HRESULT
(
WINAPI
*
pMFCreateSampleCopierMFT
)(
IMFTransform
**
copier
);
#define EXPECT_REF(obj,ref) _expect_ref((IUnknown*)obj, ref, __LINE__)
#define EXPECT_REF(obj,ref) _expect_ref((IUnknown*)obj, ref, __LINE__)
static
void
_expect_ref
(
IUnknown
*
obj
,
ULONG
expected_refcount
,
int
line
)
static
void
_expect_ref
(
IUnknown
*
obj
,
ULONG
expected_refcount
,
int
line
)
{
{
...
@@ -4669,7 +4671,13 @@ static void test_sample_copier(void)
...
@@ -4669,7 +4671,13 @@ static void test_sample_copier(void)
UINT32
value
;
UINT32
value
;
HRESULT
hr
;
HRESULT
hr
;
hr
=
MFCreateSampleCopierMFT
(
&
copier
);
if
(
!
pMFCreateSampleCopierMFT
)
{
win_skip
(
"MFCreateSampleCopierMFT() is not available.
\n
"
);
return
;
}
hr
=
pMFCreateSampleCopierMFT
(
&
copier
);
ok
(
hr
==
S_OK
,
"Failed to create sample copier, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to create sample copier, hr %#x.
\n
"
,
hr
);
hr
=
IMFTransform_GetAttributes
(
copier
,
&
attributes
);
hr
=
IMFTransform_GetAttributes
(
copier
,
&
attributes
);
...
@@ -5005,7 +5013,10 @@ static void test_sample_copier_output_processing(void)
...
@@ -5005,7 +5013,10 @@ static void test_sample_copier_output_processing(void)
HRESULT
hr
;
HRESULT
hr
;
BYTE
*
ptr
;
BYTE
*
ptr
;
hr
=
MFCreateSampleCopierMFT
(
&
copier
);
if
(
!
pMFCreateSampleCopierMFT
)
return
;
hr
=
pMFCreateSampleCopierMFT
(
&
copier
);
ok
(
hr
==
S_OK
,
"Failed to create sample copier, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to create sample copier, hr %#x.
\n
"
,
hr
);
/* Configure for 16 x 16 of D3DFMT_X8R8G8B8. */
/* Configure for 16 x 16 of D3DFMT_X8R8G8B8. */
...
@@ -5152,8 +5163,19 @@ static void test_MFGetTopoNodeCurrentType(void)
...
@@ -5152,8 +5163,19 @@ static void test_MFGetTopoNodeCurrentType(void)
IMFMediaType_Release
(
media_type2
);
IMFMediaType_Release
(
media_type2
);
}
}
static
void
init_functions
(
void
)
{
HMODULE
mod
=
GetModuleHandleA
(
"mf.dll"
);
#define X(f) p##f = (void*)GetProcAddress(mod, #f)
X
(
MFCreateSampleCopierMFT
);
#undef X
}
START_TEST
(
mf
)
START_TEST
(
mf
)
{
{
init_functions
();
test_topology
();
test_topology
();
test_topology_tee_node
();
test_topology_tee_node
();
test_topology_loader
();
test_topology_loader
();
...
...
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