Commit e8f69b5a authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

quartz: Do aggregation test for more video renderer interfaces.

parent bf20ca1d
...@@ -190,6 +190,20 @@ static void test_query_interface(void) ...@@ -190,6 +190,20 @@ static void test_query_interface(void)
RELEASE_EXPECT(pVideoWindow, 1); 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) START_TEST(videorenderer)
{ {
CoInitialize(NULL); CoInitialize(NULL);
...@@ -197,8 +211,7 @@ START_TEST(videorenderer) ...@@ -197,8 +211,7 @@ START_TEST(videorenderer)
return; return;
test_query_interface(); test_query_interface();
test_aggregation(CLSID_SystemClock, CLSID_VideoRenderer, test_all_aggregations();
IID_IReferenceClock, IID_IVideoWindow);
release_video_renderer(); release_video_renderer();
} }
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