From e6307f1a4ba827b5f06fbe9c59013bb60e6cf276 Mon Sep 17 00:00:00 2001 From: Damjan Jovanovic Date: Thu, 28 May 2015 19:04:24 +0200 Subject: [PATCH] qcap/tests: Test SmartTee filter aggregation. --- dlls/qcap/tests/smartteefilter.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dlls/qcap/tests/smartteefilter.c b/dlls/qcap/tests/smartteefilter.c index 126d7987599..83bcff93482 100644 --- a/dlls/qcap/tests/smartteefilter.c +++ b/dlls/qcap/tests/smartteefilter.c @@ -1532,12 +1532,28 @@ end: IEnumMediaTypes_Release(enumMediaTypes); } +static void test_smart_tee_filter_aggregation(void) +{ + SourceFilter *sourceFilter = create_SourceFilter(); + if (sourceFilter) { + IUnknown *unknown = NULL; + HRESULT hr = CoCreateInstance(&CLSID_SmartTee, (IUnknown*)&sourceFilter->IBaseFilter_iface, + CLSCTX_INPROC_SERVER, &IID_IUnknown, (void**)&unknown); + todo_wine ok(SUCCEEDED(hr), "SmartTee filter doesn't support aggregation, hr=0x%08x\n", hr); + if (unknown) + IUnknown_Release(unknown); + IBaseFilter_Release(&sourceFilter->IBaseFilter_iface); + } else + ok(0, "out of memory allocating SourceFilter for test\n"); +} + START_TEST(smartteefilter) { if (SUCCEEDED(CoInitialize(NULL))) { event = CreateEventW(NULL, FALSE, FALSE, NULL); if (event) { + test_smart_tee_filter_aggregation(); test_smart_tee_filter(); CloseHandle(event); } else