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
1435688b
Commit
1435688b
authored
Sep 28, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Oct 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.mediacontrol/tests: Add some ISystemMediaTransportControls properties tests.
parent
0471de64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
mediacontrol.c
dlls/windows.media.mediacontrol/tests/mediacontrol.c
+44
-0
No files found.
dlls/windows.media.mediacontrol/tests/mediacontrol.c
View file @
1435688b
...
...
@@ -63,6 +63,7 @@ static void test_MediaControlStatics(void)
ISystemMediaTransportControls
*
media_control_statics
=
NULL
;
IActivationFactory
*
factory
;
HWND
window
=
NULL
;
BOOLEAN
value
;
HSTRING
str
;
HRESULT
hr
;
LONG
ref
;
...
...
@@ -102,6 +103,49 @@ static void test_MediaControlStatics(void)
ok
(
hr
==
S_OK
||
broken
(
hr
==
0x80070578
)
/* Win8 */
,
"got hr %#lx.
\n
"
,
hr
);
if
(
!
media_control_statics
)
goto
done
;
hr
=
ISystemMediaTransportControls_put_PlaybackStatus
(
media_control_statics
,
-
1
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControls_put_PlaybackStatus
(
media_control_statics
,
5
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControls_put_PlaybackStatus
(
media_control_statics
,
MediaPlaybackStatus_Closed
);
todo_wine
ok
(
hr
==
S_OK
||
broken
(
hr
==
S_FALSE
)
/* Win10 1507,1607 */
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControls_put_IsPlayEnabled
(
media_control_statics
,
FALSE
);
todo_wine
ok
(
hr
==
S_OK
||
broken
(
hr
==
S_FALSE
)
/* Win10 1507,1607 */
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControls_put_IsPauseEnabled
(
media_control_statics
,
FALSE
);
todo_wine
ok
(
hr
==
S_OK
||
broken
(
hr
==
S_FALSE
)
/* Win10 1507,1607 */
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControls_put_IsPreviousEnabled
(
media_control_statics
,
FALSE
);
todo_wine
ok
(
hr
==
S_OK
||
broken
(
hr
==
S_FALSE
)
/* Win10 1507,1607 */
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControls_put_IsNextEnabled
(
media_control_statics
,
FALSE
);
todo_wine
ok
(
hr
==
S_OK
||
broken
(
hr
==
S_FALSE
)
/* Win10 1507,1607 */
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControls_put_IsEnabled
(
media_control_statics
,
FALSE
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
value
=
TRUE
;
hr
=
ISystemMediaTransportControls_get_IsPlayEnabled
(
media_control_statics
,
&
value
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
value
==
FALSE
,
"got value %d.
\n
"
,
value
);
value
=
TRUE
;
hr
=
ISystemMediaTransportControls_get_IsPauseEnabled
(
media_control_statics
,
&
value
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
value
==
FALSE
,
"got value %d.
\n
"
,
value
);
value
=
TRUE
;
hr
=
ISystemMediaTransportControls_get_IsPreviousEnabled
(
media_control_statics
,
&
value
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
value
==
FALSE
,
"got value %d.
\n
"
,
value
);
value
=
TRUE
;
hr
=
ISystemMediaTransportControls_get_IsNextEnabled
(
media_control_statics
,
&
value
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
value
==
FALSE
,
"got value %d.
\n
"
,
value
);
value
=
TRUE
;
hr
=
ISystemMediaTransportControls_get_IsEnabled
(
media_control_statics
,
&
value
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
value
==
FALSE
,
"got value %d.
\n
"
,
value
);
ref
=
ISystemMediaTransportControls_Release
(
media_control_statics
);
ok
(
ref
==
1
||
broken
(
ref
==
3
)
/* Win10 1507 */
||
broken
(
ref
==
2
)
/* Win10 1607 */
,
"got ref %ld.
\n
"
,
ref
);
done:
...
...
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