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
0d3b83c0
Commit
0d3b83c0
authored
Sep 21, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime/tests: Add some tests for GUID_ConnectToDLSCollection.
parent
d92d9bc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
dmime.c
dlls/dmime/tests/dmime.c
+46
-0
No files found.
dlls/dmime/tests/dmime.c
View file @
0d3b83c0
...
...
@@ -3627,6 +3627,51 @@ static void test_band_track_play(void)
IDirectMusicTool_Release
(
tool
);
}
static
void
test_connect_to_collection
(
void
)
{
IDirectMusicCollection
*
collection
;
IDirectMusicSegment
*
segment
;
IDirectMusicTrack
*
track
;
void
*
param
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicCollection
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicCollection
,
(
void
**
)
&
collection
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicSegment
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicSegment
,
(
void
**
)
&
segment
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicBandTrack
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicTrack
,
(
void
**
)
&
track
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicSegment_InsertTrack
(
segment
,
track
,
1
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
/* it is possible to connect the band track to another collection, but not to disconnect it */
hr
=
IDirectMusicTrack_IsParamSupported
(
track
,
&
GUID_ConnectToDLSCollection
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicTrack_SetParam
(
track
,
&
GUID_ConnectToDLSCollection
,
0
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicTrack_SetParam
(
track
,
&
GUID_ConnectToDLSCollection
,
0
,
collection
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicTrack_GetParam
(
track
,
&
GUID_ConnectToDLSCollection
,
0
,
NULL
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicTrack_GetParam
(
track
,
&
GUID_ConnectToDLSCollection
,
0
,
NULL
,
&
param
);
ok
(
hr
==
DMUS_E_GET_UNSUPPORTED
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicSegment_SetParam
(
segment
,
&
GUID_ConnectToDLSCollection
,
-
1
,
DMUS_SEG_ALLTRACKS
,
0
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicSegment_SetParam
(
segment
,
&
GUID_ConnectToDLSCollection
,
-
1
,
DMUS_SEG_ALLTRACKS
,
0
,
collection
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
IDirectMusicTrack_Release
(
track
);
IDirectMusicSegment_Release
(
segment
);
IDirectMusicCollection_Release
(
collection
);
}
START_TEST
(
dmime
)
{
CoInitialize
(
NULL
);
...
...
@@ -3662,6 +3707,7 @@ START_TEST(dmime)
test_wave_pmsg
();
test_sequence_track
();
test_band_track_play
();
test_connect_to_collection
();
CoUninitialize
();
}
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