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

Unified Diff: media/base/text_renderer_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/serial_runner_unittest.cc ('k') | media/blink/buffered_data_source_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/text_renderer_unittest.cc
diff --git a/media/base/text_renderer_unittest.cc b/media/base/text_renderer_unittest.cc
index da0ef6228f9f4d02d840c37d477e0372a41cac30..f188049fae46b99e1df0f7136c027159e4d668f7 100644
--- a/media/base/text_renderer_unittest.cc
+++ b/media/base/text_renderer_unittest.cc
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/decoder_buffer.h"
#include "media/base/demuxer_stream.h"
@@ -68,7 +69,7 @@ class TextRendererTest : public testing::Test {
void Destroy() {
text_renderer_.reset();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void AddTextTrack(TextKind kind,
@@ -83,7 +84,7 @@ class TextRendererTest : public testing::Test {
const TextTrackConfig config(kind, name, language, std::string());
text_renderer_->AddTextStream(text_track_streams_.back(), config);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(text_tracks_.size(), text_track_streams_.size());
FakeTextTrack* const text_track = text_tracks_.back();
@@ -125,7 +126,7 @@ class TextRendererTest : public testing::Test {
void AbortPendingRead(unsigned idx) {
FakeTextTrackStream* const stream = text_track_streams_[idx];
stream->AbortPendingRead();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void AbortPendingReads() {
@@ -137,7 +138,7 @@ class TextRendererTest : public testing::Test {
void SendEosNotification(unsigned idx) {
FakeTextTrackStream* const stream = text_track_streams_[idx];
stream->SendEosNotification();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void SendEosNotifications() {
@@ -165,7 +166,7 @@ class TextRendererTest : public testing::Test {
}
text_stream->SatisfyPendingRead(start, duration, id, content, settings);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void SendCues(bool expect_cue) {
@@ -185,7 +186,7 @@ class TextRendererTest : public testing::Test {
void Pause() {
text_renderer_->Pause(base::Bind(&TextRendererTest::OnPause,
base::Unretained(this)));
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void Flush() {
« no previous file with comments | « media/base/serial_runner_unittest.cc ('k') | media/blink/buffered_data_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698