Module: wine Branch: master Commit: e99cf458e1d3a3a7f7dbdf6b03271628e0155363 URL: https://gitlab.winehq.org/wine/wine/-/commit/e99cf458e1d3a3a7f7dbdf6b0327162...
Author: Mohamad Al-Jaf mohamadaljaf@gmail.com Date: Thu Sep 28 19:26:35 2023 -0400
windows.media.mediacontrol/tests: Add IMusicDisplayProperties2::get/put_AlbumTitle() tests.
---
dlls/windows.media.mediacontrol/tests/mediacontrol.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/dlls/windows.media.mediacontrol/tests/mediacontrol.c b/dlls/windows.media.mediacontrol/tests/mediacontrol.c index 880d16ed87d..c87372aaa02 100644 --- a/dlls/windows.media.mediacontrol/tests/mediacontrol.c +++ b/dlls/windows.media.mediacontrol/tests/mediacontrol.c @@ -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 );