Maarten Lankhorst : quartz: Add more state transitions to the filtergraph.

Alexandre Julliard julliard at winehq.org
Mon Apr 7 06:50:30 CDT 2008


Module: wine
Branch: master
Commit: 7f7c1d07527e4e9e2236fe6c7c9a5e0b12062403
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7f7c1d07527e4e9e2236fe6c7c9a5e0b12062403

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Fri Apr  4 14:10:13 2008 -0700

quartz: Add more state transitions to the filtergraph.

---

 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);
 




More information about the wine-cvs mailing list