Commit 6702f445 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

qcap: Add AVI Mux QueryInterface tests.

parent eac789c6
......@@ -993,12 +993,53 @@ static void test_CaptureGraphBuilder_RenderStream(void)
ICaptureGraphBuilder2_Release(cgb);
}
static void test_AviMux_QueryInterface(void)
{
IUnknown *avimux, *unk;
HRESULT hr;
hr = CoCreateInstance(&CLSID_AviDest, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown, (void**)&avimux);
ok(hr == S_OK || broken(hr == REGDB_E_CLASSNOTREG),
"couldn't create AVI Mux filter, hr = %08x\n", hr);
if(hr != S_OK) {
win_skip("AVI Mux filter is not registered\n");
return;
}
hr = IUnknown_QueryInterface(avimux, &IID_IBaseFilter, (void**)&unk);
ok(hr == S_OK, "QueryInterface(IID_IBaseFilter) failed: %x\n", hr);
IUnknown_Release(unk);
hr = IUnknown_QueryInterface(avimux, &IID_IConfigAviMux, (void**)&unk);
ok(hr == S_OK, "QueryInterface(IID_IConfigAviMux) failed: %x\n", hr);
IUnknown_Release(unk);
hr = IUnknown_QueryInterface(avimux, &IID_IConfigInterleaving, (void**)&unk);
ok(hr == S_OK, "QueryInterface(IID_IConfigInterleaving) failed: %x\n", hr);
IUnknown_Release(unk);
hr = IUnknown_QueryInterface(avimux, &IID_IMediaSeeking, (void**)&unk);
ok(hr == S_OK, "QueryInterface(IID_IMediaSeeking) failed: %x\n", hr);
IUnknown_Release(unk);
hr = IUnknown_QueryInterface(avimux, &IID_IPersistMediaPropertyBag, (void**)&unk);
ok(hr == S_OK, "QueryInterface(IID_IPersistMediaPropertyBag) failed: %x\n", hr);
IUnknown_Release(unk);
hr = IUnknown_QueryInterface(avimux, &IID_ISpecifyPropertyPages, (void**)&unk);
ok(hr == S_OK, "QueryInterface(IID_ISpecifyPropertyPages) failed: %x\n", hr);
IUnknown_Release(unk);
IUnknown_Release(avimux);
}
START_TEST(qcap)
{
if (SUCCEEDED(CoInitialize(NULL)))
{
test_smart_tee_filter();
test_CaptureGraphBuilder_RenderStream();
test_AviMux_QueryInterface();
CoUninitialize();
}
else
......
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