Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Unified Diff: media/base/pipeline_unittest.cc

Issue 17567007: Made MessagePump a non-thread safe class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/pipeline_unittest.cc
diff --git a/media/base/pipeline_unittest.cc b/media/base/pipeline_unittest.cc
index 804fc9916f8d66673bfe5883efee64b53e18d2fa..90c616f92db80c8207b8924f4357c28f59ecd365 100644
--- a/media/base/pipeline_unittest.cc
+++ b/media/base/pipeline_unittest.cc
@@ -689,14 +689,14 @@ static void TestNoCallsAfterError(
CHECK(message_loop);
// When we get to this stage, the message loop should be empty.
- message_loop->AssertIdle();
+ EXPECT_TRUE(message_loop->IsIdleForTesting());
// Make calls on pipeline after error has occurred.
pipeline->SetPlaybackRate(0.5f);
pipeline->SetVolume(0.5f);
// No additional tasks should be queued as a result of these calls.
- message_loop->AssertIdle();
+ EXPECT_TRUE(message_loop->IsIdleForTesting());
}
TEST_F(PipelineTest, NoMessageDuringTearDownFromError) {

Powered by Google App Engine
This is Rietveld 408576698