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
208a8aaa
Commit
208a8aaa
authored
Jul 20, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Jul 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsdmo/tests: Add IMediaParamInfo tests.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
parent
4e23e412
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
14 deletions
+28
-14
dsdmo.c
dlls/dsdmo/tests/dsdmo.c
+28
-14
No files found.
dlls/dsdmo/tests/dsdmo.c
View file @
208a8aaa
...
...
@@ -24,6 +24,7 @@
#include "mmsystem.h"
#include "dmo.h"
#include "initguid.h"
#include "medparam.h"
#include "dsound.h"
#include "uuids.h"
#include "wine/test.h"
...
...
@@ -131,28 +132,41 @@ static void test_aggregation(const GUID *clsid)
static
void
test_interfaces
(
const
GUID
*
clsid
,
const
GUID
*
iid
)
{
static
const
GUID
*
guids
[]
=
{
&
IID_IMediaObject
,
&
IID_IMediaObjectInPlace
,
&
IID_IMediaParamInfo
,
};
IUnknown
*
unk
,
*
unk2
,
*
unk3
;
unsigned
int
i
;
HRESULT
hr
;
ULONG
ref
;
hr
=
CoCreateInstance
(
clsid
,
NULL
,
CLSCTX_INPROC_SERVER
,
iid
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IMediaObject
,
(
void
**
)
&
unk2
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
unk2
,
iid
,
(
void
**
)
&
unk3
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
unk3
==
unk
,
"Interface pointers didn't match.
\n
"
);
IUnknown_Release
(
unk3
);
IUnknown_Release
(
unk2
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
guids
);
++
i
)
{
winetest_push_context
(
"GUID %s"
,
debugstr_guid
(
guids
[
i
]));
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IMediaObjectInPlace
,
(
void
**
)
&
unk2
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
unk2
,
iid
,
(
void
**
)
&
unk3
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
unk3
==
unk
,
"Interface pointers didn't match.
\n
"
);
IUnknown_Release
(
unk3
);
IUnknown_Release
(
unk2
);
hr
=
IUnknown_QueryInterface
(
unk
,
guids
[
i
],
(
void
**
)
&
unk2
);
todo_wine_if
(
guids
[
i
]
==
&
IID_IMediaParamInfo
)
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
{
winetest_pop_context
();
continue
;
}
hr
=
IUnknown_QueryInterface
(
unk2
,
iid
,
(
void
**
)
&
unk3
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
unk3
==
unk
,
"Interface pointers didn't match.
\n
"
);
IUnknown_Release
(
unk3
);
IUnknown_Release
(
unk2
);
winetest_pop_context
();
}
ref
=
IUnknown_Release
(
unk
);
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
...
...
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