Commit b37ee801 authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

qedit/tests: Add a test for IMediaDet_(put|get)_CurrentStream.

parent 07f9c44b
......@@ -83,6 +83,7 @@ static void test_mediadet(void)
IMediaDet *pM = NULL;
BSTR filename = NULL;
long nstrms = 0;
long strm;
hr = CoCreateInstance(&CLSID_MediaDet, NULL, CLSCTX_INPROC_SERVER,
&IID_IMediaDet, (LPVOID*)&pM);
......@@ -105,6 +106,14 @@ static void test_mediadet(void)
"IMediaDet_get_Filename\n");
SysFreeString(filename);
hr = IMediaDet_put_CurrentStream(pM, 0);
todo_wine ok(hr == S_OK, "IMediaDet_put_CurrentStream\n");
strm = -1;
hr = IMediaDet_get_CurrentStream(pM, &strm);
todo_wine ok(hr == S_OK, "IMediaDet_get_CurrentStream\n");
todo_wine ok(strm == 0, "IMediaDet_get_CurrentStream\n");
hr = IMediaDet_Release(pM);
ok(hr == 0, "IMediaDet_Release returned: %x\n", hr);
......
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