From: Vibhav Pant vibhavp@gmail.com
--- dlls/wintypes/tests/wintypes.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/dlls/wintypes/tests/wintypes.c b/dlls/wintypes/tests/wintypes.c index 8a54a6b2d17..c6df20d8248 100644 --- a/dlls/wintypes/tests/wintypes.c +++ b/dlls/wintypes/tests/wintypes.c @@ -1437,7 +1437,6 @@ static void test_IPropertySet(void) ok( hr == S_OK, "GetUInt32, got %#lx\n", hr ); ok( uint64 == 0xdeadbeefdeadbeef, "Got uint64 %I64u\n", uint64 ); } - WindowsDeleteString( key2 );
hr = IMap_HSTRING_IInspectable_QueryInterface( map, &IID_IIterable_IKeyValuePair_HSTRING_IInspectable, (void **)&iterable ); @@ -1447,6 +1446,28 @@ static void test_IPropertySet(void) IIterator_IKeyValuePair_HSTRING_IInspectable_Release( iterator ); IIterable_IKeyValuePair_HSTRING_IInspectable_Release( iterable );
+ hr = IMap_HSTRING_IInspectable_GetView( map, &map_view ); + ok( hr == S_OK, "GetView failed, got %#lx\n", hr ); + hr = IMapView_HSTRING_IInspectable_QueryInterface( map_view, &IID_IIterable_IKeyValuePair_HSTRING_IInspectable, + (void **)&iterable ); + ok( hr == S_OK, "QueryInterface failed, got %#lx\n", hr ); + hr = IMapView_HSTRING_IInspectable_Lookup( map_view, key2, &val ); + todo_wine + ok( hr == S_OK, "Lookup failed, got %#lx\n", hr ); + if (SUCCEEDED(hr)) IInspectable_Release( val ); + hr = IMap_HSTRING_IInspectable_Remove( map, key2 ); + todo_wine + ok( hr == S_OK, "Remove failed, got %#lx\n", hr ); + hr = IMapView_HSTRING_IInspectable_Lookup( map_view, key2, &val ); + todo_wine + ok( hr == E_CHANGED_STATE, "Got hr %#lx\n", hr ); + WindowsDeleteString( key2 ); + hr = IIterable_IKeyValuePair_HSTRING_IInspectable_First( iterable, &iterator ); + todo_wine + ok( hr == E_CHANGED_STATE, "got %#lx\n", hr ); + IIterable_IKeyValuePair_HSTRING_IInspectable_Release( iterable ); + IMapView_HSTRING_IInspectable_Release( map_view ); + hr = IMap_HSTRING_IInspectable_GetView( map, &map_view ); ok( hr == S_OK, "GetView failed, got %#lx\n", hr ); hr = IMapView_HSTRING_IInspectable_QueryInterface( map_view, &IID_IIterable_IKeyValuePair_HSTRING_IInspectable,