Commit 872fbceb authored by Mohamad Al-Jaf's avatar Mohamad Al-Jaf Committed by Alexandre Julliard

graphicscapture/tests: Add IGraphicsCaptureSessionStatics::IsSupported() tests.

parent a36f7015
......@@ -49,6 +49,7 @@ static void test_GraphicsCaptureSessionStatics(void)
static const WCHAR *session_statics_name = L"Windows.Graphics.Capture.GraphicsCaptureSession";
IGraphicsCaptureSessionStatics *session_statics;
IActivationFactory *factory;
BOOLEAN res;
HSTRING str;
HRESULT hr;
LONG ref;
......@@ -72,6 +73,11 @@ static void test_GraphicsCaptureSessionStatics(void)
hr = IActivationFactory_QueryInterface( factory, &IID_IGraphicsCaptureSessionStatics, (void **)&session_statics );
ok( hr == S_OK, "got hr %#lx.\n", hr );
res = 2;
hr = IGraphicsCaptureSessionStatics_IsSupported( session_statics, &res );
todo_wine ok( hr == S_OK, "got hr %#lx.\n", hr );
todo_wine ok( res == TRUE, "got %d.\n", res );
ref = IGraphicsCaptureSessionStatics_Release( session_statics );
ok( ref == 1, "got ref %ld.\n", ref );
ref = IActivationFactory_Release( factory );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment