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

This commit is contained in:
Dan Hipschman 2008-04-04 16:01:06 -07:00 committed by Alexandre Julliard
parent 07f9c44b36
commit b37ee80166
1 changed files with 9 additions and 0 deletions

View File

@ -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);