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
a3c0a1d5
Commit
a3c0a1d5
authored
Dec 26, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmcompos/tests: Add Chord track GetParam/SetParam tests.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eb2e9271
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
dmcompos.c
dlls/dmcompos/tests/dmcompos.c
+19
-0
No files found.
dlls/dmcompos/tests/dmcompos.c
View file @
a3c0a1d5
...
...
@@ -267,6 +267,7 @@ static void test_chordmaptrack(void)
{
IDirectMusicTrack8
*
dmt8
;
IPersistStream
*
ps
;
IDirectMusicChordMap
*
chordmap
;
CLSID
class
;
ULARGE_INTEGER
size
;
HRESULT
hr
;
...
...
@@ -331,11 +332,29 @@ static void test_chordmaptrack(void)
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_IsParamSupported failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_IsParamSupported
(
dmt8
,
&
GUID_IDirectMusicChordMap
);
ok
(
hr
==
S_OK
,
"IsParamSupported(GUID_IDirectMusicChordMap) failed: %08x, expected S_OK
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_GetParam
(
dmt8
,
&
GUID_IDirectMusicChordMap
,
0
,
NULL
,
&
chordmap
);
todo_wine
ok
(
hr
==
DMUS_E_NOT_FOUND
,
"GetParam(GUID_IDirectMusicChordMap) failed: %08x, expected DMUS_E_NOT_FOUND
\n
"
,
hr
);
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicChordMap
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicChordMap
,
(
void
**
)
&
chordmap
);
ok
(
hr
==
S_OK
,
"DirectMusicChordMap create failed: %08x, expected S_OK
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_SetParam
(
dmt8
,
&
GUID_IDirectMusicChordMap
,
0
,
chordmap
);
ok
(
hr
==
S_OK
,
"SetParam(GUID_IDirectMusicChordMap) failed: %08x, expected S_OK
\n
"
,
hr
);
IDirectMusicChordMap_Release
(
chordmap
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
unsupported
);
i
++
)
{
hr
=
IDirectMusicTrack8_IsParamSupported
(
dmt8
,
unsupported
[
i
].
type
);
ok
(
hr
==
DMUS_E_TYPE_UNSUPPORTED
,
"IsParamSupported(%s) failed: %08x, expected DMUS_E_TYPE_UNSUPPORTED
\n
"
,
unsupported
[
i
].
name
,
hr
);
hr
=
IDirectMusicTrack8_GetParam
(
dmt8
,
unsupported
[
i
].
type
,
0
,
NULL
,
&
chordmap
);
todo_wine
ok
(
hr
==
DMUS_E_GET_UNSUPPORTED
,
"GetParam(%s) failed: %08x, expected DMUS_E_GET_UNSUPPORTED
\n
"
,
unsupported
[
i
].
name
,
hr
);
hr
=
IDirectMusicTrack8_SetParam
(
dmt8
,
unsupported
[
i
].
type
,
0
,
chordmap
);
todo_wine
ok
(
hr
==
DMUS_E_SET_UNSUPPORTED
,
"SetParam(%s) failed: %08x, expected DMUS_E_SET_UNSUPPORTED
\n
"
,
unsupported
[
i
].
name
,
hr
);
}
hr
=
IDirectMusicTrack8_AddNotificationType
(
dmt8
,
NULL
);
...
...
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