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
e99cf458
Commit
e99cf458
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 IMusicDisplayProperties2::get/put_AlbumTitle() tests.
parent
73db91c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
mediacontrol.c
dlls/windows.media.mediacontrol/tests/mediacontrol.c
+15
-0
No files found.
dlls/windows.media.mediacontrol/tests/mediacontrol.c
View file @
e99cf458
...
...
@@ -211,6 +211,21 @@ static void test_MediaControlStatics(void)
hr
=
IMusicDisplayProperties_QueryInterface
(
music_properties
,
&
IID_IMusicDisplayProperties2
,
(
void
**
)
&
music_properties2
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IMusicDisplayProperties2_put_AlbumTitle
(
music_properties2
,
NULL
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCreateStringReference
(
L"Wine Hits"
,
wcslen
(
L"Wine Hits"
),
&
header
,
&
str
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IMusicDisplayProperties2_put_AlbumTitle
(
music_properties2
,
str
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IMusicDisplayProperties2_get_AlbumTitle
(
music_properties2
,
&
ret_str
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCompareStringOrdinal
(
str
,
ret_str
,
&
res
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
!
res
,
"got string %s.
\n
"
,
debugstr_hstring
(
ret_str
)
);
todo_wine
ok
(
str
!=
ret_str
,
"got same HSTRINGs %p, %p.
\n
"
,
str
,
ret_str
);
WindowsDeleteString
(
str
);
WindowsDeleteString
(
ret_str
);
IMusicDisplayProperties2_Release
(
music_properties2
);
IMusicDisplayProperties_Release
(
music_properties
);
ISystemMediaTransportControlsDisplayUpdater_Release
(
display_updater
);
...
...
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