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
47851381
Commit
47851381
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 ISystemMediaTransportControlsInterop::GetForWindow() tests.
parent
99fdedb4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
Makefile.in
dlls/windows.media.mediacontrol/tests/Makefile.in
+1
-1
mediacontrol.c
dlls/windows.media.mediacontrol/tests/mediacontrol.c
+14
-0
No files found.
dlls/windows.media.mediacontrol/tests/Makefile.in
View file @
47851381
TESTDLL
=
windows.media.mediacontrol.dll
IMPORTS
=
combase
IMPORTS
=
combase
user32
C_SRCS
=
\
mediacontrol.c
dlls/windows.media.mediacontrol/tests/mediacontrol.c
View file @
47851381
...
...
@@ -50,7 +50,9 @@ static void test_MediaControlStatics(void)
{
static
const
WCHAR
*
media_control_statics_name
=
L"Windows.Media.SystemMediaTransportControls"
;
ISystemMediaTransportControlsInterop
*
media_control_interop_statics
;
ISystemMediaTransportControls
*
media_control_statics
=
NULL
;
IActivationFactory
*
factory
;
HWND
window
=
NULL
;
HSTRING
str
;
HRESULT
hr
;
LONG
ref
;
...
...
@@ -74,6 +76,18 @@ static void test_MediaControlStatics(void)
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_ISystemMediaTransportControlsInterop
,
(
void
**
)
&
media_control_interop_statics
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControlsInterop_GetForWindow
(
media_control_interop_statics
,
NULL
,
&
IID_ISystemMediaTransportControls
,
(
void
**
)
&
media_control_statics
);
todo_wine
ok
(
hr
==
E_POINTER
||
broken
(
hr
==
0x80070578
)
/* Win8 */
,
"got hr %#lx.
\n
"
,
hr
);
window
=
CreateWindowExA
(
0
,
"static"
,
0
,
0
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
800
,
600
,
NULL
,
NULL
,
GetModuleHandleA
(
NULL
),
0
);
ok
(
window
!=
NULL
,
"Failed to create a window
\n
"
);
hr
=
ISystemMediaTransportControlsInterop_GetForWindow
(
media_control_interop_statics
,
window
,
&
IID_ISystemMediaTransportControlsInterop
,
(
void
**
)
&
media_control_statics
);
todo_wine
ok
(
hr
==
E_NOINTERFACE
||
broken
(
hr
==
0x80070578
)
/* Win8 */
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
ISystemMediaTransportControlsInterop_GetForWindow
(
media_control_interop_statics
,
window
,
&
IID_ISystemMediaTransportControls
,
(
void
**
)
&
media_control_statics
);
todo_wine
ok
(
hr
==
S_OK
||
broken
(
hr
==
0x80070578
)
/* Win8 */
,
"got hr %#lx.
\n
"
,
hr
);
if
(
media_control_statics
)
ISystemMediaTransportControls_Release
(
media_control_statics
);
DestroyWindow
(
window
);
ref
=
ISystemMediaTransportControlsInterop_Release
(
media_control_interop_statics
);
ok
(
ref
==
2
,
"got ref %ld.
\n
"
,
ref
);
ref
=
IActivationFactory_Release
(
factory
);
...
...
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