quartz: Do aggregation test for more video renderer interfaces.

This commit is contained in:
Lei Zhang 2007-12-13 15:33:08 -08:00 committed by Alexandre Julliard
parent bf20ca1dd4
commit e8f69b5a42
1 changed files with 15 additions and 2 deletions

View File

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