Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c1ae95fb
Commit
c1ae95fb
authored
Sep 28, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Oct 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.mediacontrol/tests: Add…
windows.media.mediacontrol/tests: Add ISystemMediaTransportControlsDisplayUpdater::get/put_Type() tests.
parent
07240534
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
mediacontrol.c
dlls/windows.media.mediacontrol/tests/mediacontrol.c
+13
-0
No files found.
dlls/windows.media.mediacontrol/tests/mediacontrol.c
View file @
c1ae95fb
...
...
@@ -62,6 +62,7 @@ static void test_MediaControlStatics(void)
ISystemMediaTransportControlsInterop
*
media_control_interop_statics
=
NULL
;
ISystemMediaTransportControlsDisplayUpdater
*
display_updater
=
NULL
;
ISystemMediaTransportControls
*
media_control_statics
=
NULL
;
MediaPlaybackType
playback_type
;
IActivationFactory
*
factory
;
HWND
window
=
NULL
;
BOOLEAN
value
;
...
...
@@ -154,6 +155,18 @@ static void test_MediaControlStatics(void)
check_interface
(
display_updater
,
&
IID_IInspectable
);
check_interface
(
display_updater
,
&
IID_IAgileObject
);
hr
=
ISystemMediaTransportControlsDisplayUpdater_put_Type
(
display_updater
,
-
1
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControlsDisplayUpdater_put_Type
(
display_updater
,
4
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControlsDisplayUpdater_put_Type
(
display_updater
,
1
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
playback_type
=
-
1
;
hr
=
ISystemMediaTransportControlsDisplayUpdater_get_Type
(
display_updater
,
&
playback_type
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
playback_type
==
MediaPlaybackType_Music
,
"got playback_type %d.
\n
"
,
playback_type
);
ISystemMediaTransportControlsDisplayUpdater_Release
(
display_updater
);
ISystemMediaTransportControls_Release
(
media_control_statics
);
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