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
617d7fc9
Commit
617d7fc9
authored
Oct 23, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime/tests: Test IDirectMusicPerformance_GetSegmentState.
parent
d9636260
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
dmime.c
dlls/dmime/tests/dmime.c
+25
-0
No files found.
dlls/dmime/tests/dmime.c
View file @
617d7fc9
...
...
@@ -4053,6 +4053,12 @@ static void test_segment_state(void)
check_track_state
(
track
,
initialized
,
FALSE
);
check_track_state
(
track
,
playing
,
FALSE
);
hr
=
IDirectMusicPerformance_GetSegmentState
(
performance
,
NULL
,
0
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicPerformance_GetSegmentState
(
performance
,
&
tmp_state
,
0
);
todo_wine
ok
(
hr
==
DMUS_E_NOT_FOUND
,
"got %#lx
\n
"
,
hr
);
tmp_state
=
state
;
state
=
(
void
*
)
0xdeadbeef
;
hr
=
IDirectMusicPerformance_PlaySegment
(
performance
,
segment
,
0
,
20
,
&
state
);
...
...
@@ -4062,6 +4068,22 @@ static void test_segment_state(void)
ok
(
state
!=
tmp_state
,
"got %p
\n
"
,
state
);
IDirectMusicSegmentState_Release
(
tmp_state
);
tmp_state
=
(
void
*
)
0xdeadbeef
;
hr
=
IDirectMusicPerformance_GetSegmentState
(
performance
,
&
tmp_state
,
0
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
state
==
tmp_state
,
"got %p
\n
"
,
state
);
if
(
tmp_state
!=
(
void
*
)
0xdeadbeef
)
IDirectMusicSegmentState_Release
(
tmp_state
);
tmp_state
=
(
void
*
)
0xdeadbeef
;
hr
=
IDirectMusicPerformance_GetSegmentState
(
performance
,
&
tmp_state
,
69
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
state
==
tmp_state
,
"got %p
\n
"
,
state
);
if
(
tmp_state
!=
(
void
*
)
0xdeadbeef
)
IDirectMusicSegmentState_Release
(
tmp_state
);
hr
=
IDirectMusicPerformance_GetSegmentState
(
performance
,
&
tmp_state
,
70
);
todo_wine
ok
(
hr
==
DMUS_E_NOT_FOUND
,
"got %#lx
\n
"
,
hr
);
check_track_state
(
track
,
downloaded
,
FALSE
);
check_track_state
(
track
,
initialized
,
TRUE
);
...
...
@@ -4074,6 +4096,9 @@ static void test_segment_state(void)
ret
=
test_track_wait_playing
(
track
,
50
);
ok
(
ret
==
0
,
"got %#lx
\n
"
,
ret
);
hr
=
IDirectMusicPerformance_GetSegmentState
(
performance
,
&
tmp_state
,
0
);
todo_wine
ok
(
hr
==
DMUS_E_NOT_FOUND
,
"got %#lx
\n
"
,
hr
);
tmp_segment
=
(
void
*
)
0xdeadbeef
;
hr
=
IDirectMusicSegmentState_GetSegment
(
state
,
&
tmp_segment
);
...
...
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