qedit/tests: Add a test for IMediaDet_get_OutputStreams.

This commit is contained in:
Dan Hipschman 2008-04-04 16:00:05 -07:00 committed by Alexandre Julliard
parent 999bc5bcb2
commit b0b47ac5f5
1 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,7 @@ static void test_mediadet(void)
HRESULT hr;
IMediaDet *pM = NULL;
BSTR filename = NULL;
long nstrms = 0;
hr = CoCreateInstance(&CLSID_MediaDet, NULL, CLSCTX_INPROC_SERVER,
&IID_IMediaDet, (LPVOID*)&pM);
@ -93,6 +94,10 @@ static void test_mediadet(void)
todo_wine ok(hr == S_OK, "IMediaDet_put_Filename -> %x\n", hr);
SysFreeString(filename);
hr = IMediaDet_get_OutputStreams(pM, &nstrms);
todo_wine ok(hr == S_OK, "IMediaDet_get_OutputStreams\n");
todo_wine ok(nstrms == 1, "IMediaDet_get_OutputStreams\n");
hr = IMediaDet_Release(pM);
ok(hr == 0, "IMediaDet_Release returned: %x\n", hr);