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
3de79096
Commit
3de79096
authored
Jul 06, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime/tests: Add some basic IDirectMusicTrack8 tests.
parent
8e959e12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
9 deletions
+51
-9
dmime.c
dlls/dmime/tests/dmime.c
+51
-9
No files found.
dlls/dmime/tests/dmime.c
View file @
3de79096
...
...
@@ -484,6 +484,7 @@ static void test_segment(void)
static
void
test_track
(
void
)
{
IDirectMusicTrack
*
dmt
;
IDirectMusicTrack8
*
dmt8
;
IPersistStream
*
ps
;
CLSID
classid
;
ULARGE_INTEGER
size
;
...
...
@@ -492,16 +493,17 @@ static void test_track(void)
const
struct
{
REFCLSID
clsid
;
const
char
*
name
;
BOOL
has_param
;
}
class
[]
=
{
{
X
(
DirectMusicLyricsTrack
)
},
{
X
(
DirectMusicMarkerTrack
)
},
{
X
(
DirectMusicParamControlTrack
)
},
{
X
(
DirectMusicSegmentTriggerTrack
)
},
{
X
(
DirectMusicSeqTrack
)
},
{
X
(
DirectMusicSysExTrack
)
},
{
X
(
DirectMusicTempoTrack
)
},
{
X
(
DirectMusicTimeSigTrack
)
},
{
X
(
DirectMusicWaveTrack
)
}
{
X
(
DirectMusicLyricsTrack
)
,
TRUE
},
{
X
(
DirectMusicMarkerTrack
)
,
TRUE
},
{
X
(
DirectMusicParamControlTrack
)
,
TRUE
},
{
X
(
DirectMusicSegmentTriggerTrack
)
,
TRUE
},
{
X
(
DirectMusicSeqTrack
)
,
FALSE
},
{
X
(
DirectMusicSysExTrack
)
,
FALSE
},
{
X
(
DirectMusicTempoTrack
)
,
TRUE
},
{
X
(
DirectMusicTimeSigTrack
)
,
TRUE
},
{
X
(
DirectMusicWaveTrack
)
,
TRUE
}
};
#undef X
unsigned
int
i
;
...
...
@@ -512,6 +514,46 @@ static void test_track(void)
(
void
**
)
&
dmt
);
ok
(
hr
==
S_OK
,
"%s create failed: %08x, expected S_OK
\n
"
,
class
[
i
].
name
,
hr
);
/* IDirectMusicTrack */
if
(
!
class
[
i
].
has_param
)
{
hr
=
IDirectMusicTrack_GetParam
(
dmt
,
NULL
,
0
,
NULL
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack_GetParam failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack_SetParam
(
dmt
,
NULL
,
0
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack_SetParam failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack_IsParamSupported
(
dmt
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack_IsParamSupported failed: %08x
\n
"
,
hr
);
}
if
(
class
[
i
].
clsid
!=
&
CLSID_DirectMusicMarkerTrack
&&
class
[
i
].
clsid
!=
&
CLSID_DirectMusicTimeSigTrack
)
{
hr
=
IDirectMusicTrack_AddNotificationType
(
dmt
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack_AddNotificationType failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicTrack_RemoveNotificationType
(
dmt
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack_RemoveNotificationType failed: %08x
\n
"
,
hr
);
}
hr
=
IDirectMusicTrack_Clone
(
dmt
,
0
,
0
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack_Clone failed: %08x
\n
"
,
hr
);
/* IDirectMusicTrack8 */
hr
=
IDirectMusicTrack_QueryInterface
(
dmt
,
&
IID_IDirectMusicTrack8
,
(
void
**
)
&
dmt8
);
if
(
hr
==
S_OK
)
{
hr
=
IDirectMusicTrack8_PlayEx
(
dmt8
,
NULL
,
0
,
0
,
0
,
0
,
NULL
,
NULL
,
0
);
todo_wine
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_PlayEx failed: %08x
\n
"
,
hr
);
if
(
!
class
[
i
].
has_param
)
{
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
);
}
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
);
if
(
class
[
i
].
clsid
==
&
CLSID_DirectMusicTempoTrack
)
todo_wine
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_Join failed: %08x
\n
"
,
hr
);
else
ok
(
hr
==
E_NOTIMPL
,
"IDirectMusicTrack8_Join failed: %08x
\n
"
,
hr
);
IDirectMusicTrack8_Release
(
dmt8
);
}
/* IPersistStream */
hr
=
IDirectMusicTrack_QueryInterface
(
dmt
,
&
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