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

Unified Diff: media/base/fake_demuxer_stream_unittest.cc

Issue 2086353002: Remove calls to deprecated MessageLoop methods in media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « media/base/demuxer_perftest.cc ('k') | media/base/pipeline_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/fake_demuxer_stream_unittest.cc
diff --git a/media/base/fake_demuxer_stream_unittest.cc b/media/base/fake_demuxer_stream_unittest.cc
index f68e2658467ab8366a2a7acb786a2f6b23a32740..def5f9ca914717334f7ef5db810a1c54cc7d792b 100644
--- a/media/base/fake_demuxer_stream_unittest.cc
+++ b/media/base/fake_demuxer_stream_unittest.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "media/base/decoder_buffer.h"
#include "media/base/demuxer_stream.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -104,7 +105,7 @@ class FakeDemuxerStreamTest : public testing::Test {
read_pending_ = true;
stream_->Read(base::Bind(&FakeDemuxerStreamTest::BufferReady,
base::Unretained(this)));
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
ExpectReadResult(result);
}
@@ -113,7 +114,7 @@ class FakeDemuxerStreamTest : public testing::Test {
read_pending_ = true;
stream_->Read(base::Bind(&FakeDemuxerStreamTest::BufferReady,
base::Unretained(this)));
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
if (read_pending_)
break;
}
@@ -122,14 +123,14 @@ class FakeDemuxerStreamTest : public testing::Test {
void SatisfyReadAndExpect(ReadResult result) {
EXPECT_TRUE(read_pending_);
stream_->SatisfyRead();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
ExpectReadResult(result);
}
void Reset() {
bool had_read_pending = read_pending_;
stream_->Reset();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_FALSE(read_pending_);
if (had_read_pending)
« no previous file with comments | « media/base/demuxer_perftest.cc ('k') | media/base/pipeline_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698