From e8f69b5a427d571ba4850bde918064d56557b139 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 13 Dec 2007 15:33:08 -0800 Subject: [PATCH] quartz: Do aggregation test for more video renderer interfaces. --- dlls/quartz/tests/videorenderer.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/quartz/tests/videorenderer.c b/dlls/quartz/tests/videorenderer.c index e58912fb16b..eeda91c2455 100644 --- a/dlls/quartz/tests/videorenderer.c +++ b/dlls/quartz/tests/videorenderer.c @@ -190,6 +190,20 @@ static void test_query_interface(void) RELEASE_EXPECT(pVideoWindow, 1); } +static void test_all_aggregations(void) +{ + IID iids[] = { + IID_IMediaFilter, IID_IBaseFilter, IID_IBasicVideo, IID_IVideoWindow + }; + int i; + + for (i = 0; i < sizeof(iids) / sizeof(iids[0]); i++) + { + test_aggregation(CLSID_SystemClock, CLSID_VideoRenderer, + IID_IReferenceClock, iids[i]); + } +} + START_TEST(videorenderer) { CoInitialize(NULL); @@ -197,8 +211,7 @@ START_TEST(videorenderer) return; test_query_interface(); - test_aggregation(CLSID_SystemClock, CLSID_VideoRenderer, - IID_IReferenceClock, IID_IVideoWindow); + test_all_aggregations(); release_video_renderer(); }