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
1e421a26
Commit
1e421a26
authored
Jun 25, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmcompos/tests: Add some basic IDirectMusicTrack8 tests.
parent
7090b263
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
0 deletions
+75
-0
dmcompos.c
dlls/dmcompos/tests/dmcompos.c
+75
-0
No files found.
dlls/dmcompos/tests/dmcompos.c
View file @
1e421a26
...
...
@@ -273,6 +273,42 @@ static void test_chordmaptrack(void)
&
IID_IDirectMusicTrack8
,
(
void
**
)
&
dmt8
);
ok
(
hr
==
S_OK
,
"DirectMusicChordMapTrack create failed: %08x, expected S_OK
\n
"
,
hr
);
/* IDirectMusicTrack8 */
hr
=
IDirectMusicTrack8_Init
(
dmt8
,
NULL
);
ok
(
hr
==
S_OK
,
"IDirectMusicTrack8_Init failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_InitPlay
(
dmt8
,
NULL
,
NULL
,
NULL
,
0
,
0
);
ok
(
hr
==
S_OK
,
"IDirectMusicTrack8_InitPlay failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_EndPlay
(
dmt8
,
NULL
);
ok
(
hr
==
S_OK
,
"IDirectMusicTrack8_EndPlay failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_Play
(
dmt8
,
NULL
,
0
,
0
,
0
,
0
,
NULL
,
NULL
,
0
);
ok
(
hr
==
S_OK
,
"IDirectMusicTrack8_Play failed: %08x
\n
"
,
hr
);
todo_wine
{
hr
=
IDirectMusicTrack8_GetParam
(
dmt8
,
NULL
,
0
,
NULL
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_GetParam failed: %08x
\n
"
,
hr
);
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_AddNotificationType
(
dmt8
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack8_AddNotificationType failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_RemoveNotificationType
(
dmt8
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack8_RemoveNotificationType failed: %08x
\n
"
,
hr
);
todo_wine
{
hr
=
IDirectMusicTrack8_Clone
(
dmt8
,
0
,
0
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_Clone failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_PlayEx
(
dmt8
,
NULL
,
0
,
0
,
0
,
0
,
NULL
,
NULL
,
0
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_PlayEx failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_GetParamEx
(
dmt8
,
NULL
,
0
,
NULL
,
NULL
,
NULL
,
0
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_GetParamEx failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_SetParamEx
(
dmt8
,
NULL
,
0
,
NULL
,
NULL
,
0
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_SetParamEx failed: %08x
\n
"
,
hr
);
}
hr
=
IDirectMusicTrack8_Compose
(
dmt8
,
NULL
,
0
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack8_Compose failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_Join
(
dmt8
,
NULL
,
0
,
NULL
,
0
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_Join failed: %08x
\n
"
,
hr
);
/* IPersistStream */
hr
=
IDirectMusicTrack8_QueryInterface
(
dmt8
,
&
IID_IPersistStream
,
(
void
**
)
&
ps
);
ok
(
hr
==
S_OK
,
"QueryInterface for IID_IPersistStream failed: %08x
\n
"
,
hr
);
...
...
@@ -304,6 +340,45 @@ static void test_signposttrack(void)
&
IID_IDirectMusicTrack8
,
(
void
**
)
&
dmt8
);
ok
(
hr
==
S_OK
,
"DirectMusicSignPostTrack create failed: %08x, expected S_OK
\n
"
,
hr
);
/* IDirectMusicTrack8 */
hr
=
IDirectMusicTrack8_Init
(
dmt8
,
NULL
);
ok
(
hr
==
S_OK
,
"IDirectMusicTrack8_Init failed: %08x
\n
"
,
hr
);
if
(
0
)
{
/* Crashes on Windows */
hr
=
IDirectMusicTrack8_InitPlay
(
dmt8
,
NULL
,
NULL
,
NULL
,
0
,
0
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_InitPlay failed: %08x
\n
"
,
hr
);
}
hr
=
IDirectMusicTrack8_EndPlay
(
dmt8
,
NULL
);
ok
(
hr
==
S_OK
,
"IDirectMusicTrack8_EndPlay failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_Play
(
dmt8
,
NULL
,
0
,
0
,
0
,
0
,
NULL
,
NULL
,
0
);
ok
(
hr
==
S_OK
,
"IDirectMusicTrack8_Play failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_GetParam
(
dmt8
,
NULL
,
0
,
NULL
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack8_GetParam failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_SetParam
(
dmt8
,
NULL
,
0
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack8_SetParam failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_IsParamSupported
(
dmt8
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack8_IsParamSupported failed: %08x
\n
"
,
hr
);
todo_wine
{
hr
=
IDirectMusicTrack8_AddNotificationType
(
dmt8
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_AddNotificationType failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_RemoveNotificationType
(
dmt8
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_RemoveNotificationType failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_Clone
(
dmt8
,
0
,
0
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_Clone failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_PlayEx
(
dmt8
,
NULL
,
0
,
0
,
0
,
0
,
NULL
,
NULL
,
0
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_PlayEx failed: %08x
\n
"
,
hr
);
}
hr
=
IDirectMusicTrack8_GetParamEx
(
dmt8
,
NULL
,
0
,
NULL
,
NULL
,
NULL
,
0
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack8_GetParamEx failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_SetParamEx
(
dmt8
,
NULL
,
0
,
NULL
,
NULL
,
0
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack8_SetParamEx failed: %08x
\n
"
,
hr
);
todo_wine
{
hr
=
IDirectMusicTrack8_Compose
(
dmt8
,
NULL
,
0
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_Compose failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack8_Join
(
dmt8
,
NULL
,
0
,
NULL
,
0
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_Join failed: %08x
\n
"
,
hr
);
}
/* IPersistStream */
hr
=
IDirectMusicTrack8_QueryInterface
(
dmt8
,
&
IID_IPersistStream
,
(
void
**
)
&
ps
);
ok
(
hr
==
S_OK
,
"QueryInterface for IID_IPersistStream failed: %08x
\n
"
,
hr
);
...
...
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