From 8b7e8d5d658bc277f79f345abd50bc084a260b2f Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Fri, 4 Apr 2008 14:10:13 -0700 Subject: [PATCH] quartz: Improve the filtergraph tests slightly --- dlls/quartz/tests/filtergraph.c | 35 ++++++++++++++++++++++++++++++++--- 1 files changed, 32 insertions(+), 3 deletions(-) diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c index e1a6ef2..d72b7b3 100644 --- a/dlls/quartz/tests/filtergraph.c +++ b/dlls/quartz/tests/filtergraph.c @@ -58,17 +58,46 @@ static void rungraph(void) hr = IMediaControl_Run(pmc); ok(hr==S_FALSE, "Cannot run the graph returned: %x\n", hr); - Sleep(100); + Sleep(10); /* Crash fun */ + trace("run -> stop\n"); hr = IMediaControl_Stop(pmc); ok(hr==S_OK || hr == S_FALSE, "Cannot stop the graph returned: %x\n", hr); - hr = IMediaControl_Run(pmc); - ok(hr==S_OK || hr == S_FALSE, "Cannot start the graph returned: %x\n", hr); + + Sleep(10); + trace("stop -> pause\n"); hr = IMediaControl_Pause(pmc); + ok(hr==S_OK || hr == S_FALSE, "Cannot start the graph returned: %x\n", hr); + + Sleep(10); + trace("pause -> run\n"); + hr = IMediaControl_Run(pmc); ok(hr==S_OK || hr == S_FALSE, "Cannot pause the graph returned: %x\n", hr); + + Sleep(10); + trace("run -> pause\n"); + hr = IMediaControl_Pause(pmc); + ok(hr==S_OK || hr == S_FALSE, "Cannot start the graph returned: %x\n", hr); + + Sleep(10); + trace("pause -> stop\n"); + hr = IMediaControl_Stop(pmc); + ok(hr==S_OK || hr == S_FALSE, "Cannot start the graph returned: %x\n", hr); + + Sleep(10); + trace("pause -> run\n"); + hr = IMediaControl_Run(pmc); + ok(hr==S_OK || hr == S_FALSE, "Cannot start the graph returned: %x\n", hr); + + trace("run -> stop\n"); + hr = IMediaControl_Stop(pmc); + ok(hr==S_OK || hr == S_FALSE, "Cannot start the graph returned: %x\n", hr); + + trace("stop -> run\n"); hr = IMediaControl_Run(pmc); ok(hr==S_OK || hr == S_FALSE, "Cannot start the graph returned: %x\n", hr); + hr = IGraphBuilder_QueryInterface(pgraph, &IID_IMediaEvent, (LPVOID*)&pme); ok(hr==S_OK, "Cannot get IMediaEvent interface returned: %x\n", hr); -- 1.5.4.1