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
bcab0696
Commit
bcab0696
authored
Nov 19, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmcompos/tests: Check all IDirectMusicTrack_IsParamSupported() types.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f5ad835e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
dmcompos.c
dlls/dmcompos/tests/dmcompos.c
+46
-0
No files found.
dlls/dmcompos/tests/dmcompos.c
View file @
bcab0696
...
...
@@ -270,6 +270,42 @@ static void test_chordmaptrack(void)
CLSID
class
;
ULARGE_INTEGER
size
;
HRESULT
hr
;
#define X(guid) &guid, #guid
const
struct
{
REFGUID
type
;
const
char
*
name
;
}
unsupported
[]
=
{
{
X
(
GUID_BandParam
)
},
{
X
(
GUID_ChordParam
)
},
{
X
(
GUID_Clear_All_Bands
)
},
{
X
(
GUID_CommandParam
)
},
{
X
(
GUID_CommandParam2
)
},
{
X
(
GUID_CommandParamNext
)
},
{
X
(
GUID_ConnectToDLSCollection
)
},
{
X
(
GUID_Disable_Auto_Download
)
},
{
X
(
GUID_DisableTempo
)
},
{
X
(
GUID_DisableTimeSig
)
},
{
X
(
GUID_Download
)
},
{
X
(
GUID_DownloadToAudioPath
)
},
{
X
(
GUID_Enable_Auto_Download
)
},
{
X
(
GUID_EnableTempo
)
},
{
X
(
GUID_EnableTimeSig
)
},
{
X
(
GUID_IDirectMusicBand
)
},
{
X
(
GUID_IDirectMusicStyle
)
},
{
X
(
GUID_MuteParam
)
},
{
X
(
GUID_Play_Marker
)
},
{
X
(
GUID_RhythmParam
)
},
{
X
(
GUID_SeedVariations
)
},
{
X
(
GUID_StandardMIDIFile
)
},
{
X
(
GUID_TempoParam
)
},
{
X
(
GUID_TimeSignature
)
},
{
X
(
GUID_Unload
)
},
{
X
(
GUID_UnloadFromAudioPath
)
},
{
X
(
GUID_Valid_Start_Time
)
},
{
X
(
GUID_Variations
)
},
};
#undef X
unsigned
int
i
;
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicChordMapTrack
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicTrack8
,
(
void
**
)
&
dmt8
);
...
...
@@ -290,8 +326,18 @@ static void test_chordmaptrack(void)
hr
=
IDirectMusicTrack8_SetParam
(
dmt8
,
NULL
,
0
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_SetParam failed: %08x
\n
"
,
hr
);
}
hr
=
IDirectMusicTrack8_IsParamSupported
(
dmt8
,
NULL
);
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
);
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_AddNotificationType
(
dmt8
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack8_AddNotificationType failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_RemoveNotificationType
(
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