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

Unified Diff: components/scheduler/child/idle_helper_unittest.cc

Issue 2132593002: Remove remaining calls to deprecated MessageLoop methods on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: h264_vt_encoder_unittest.cc Created 4 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: components/scheduler/child/idle_helper_unittest.cc
diff --git a/components/scheduler/child/idle_helper_unittest.cc b/components/scheduler/child/idle_helper_unittest.cc
index 3624ba0fe95801535c2c5e0da74138ba6435bdb4..229000409e258eb5be2710959f7563cc4fee145b 100644
--- a/components/scheduler/child/idle_helper_unittest.cc
+++ b/components/scheduler/child/idle_helper_unittest.cc
@@ -9,6 +9,7 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
+#include "base/run_loop.h"
#include "base/test/simple_test_tick_clock.h"
#include "cc/test/ordered_simple_task_runner.h"
#include "components/scheduler/base/real_time_domain.h"
@@ -215,7 +216,7 @@ class BaseIdleHelperTest : public testing::Test {
while (mock_task_runner_->RunUntilIdle()) {
}
} else {
- message_loop_->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
}
@@ -225,7 +226,7 @@ class BaseIdleHelperTest : public testing::Test {
if (mock_task_runner_.get())
mock_task_runner_->RunUntilIdle();
else
- message_loop_->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
template <typename E>
@@ -545,7 +546,7 @@ class IdleHelperWithMessageLoopTest : public BaseIdleHelperTest {
idle_helper_->StartIdlePeriod(
IdleHelper::IdlePeriodState::IN_SHORT_IDLE_PERIOD, clock_->NowTicks(),
clock_->NowTicks() + base::TimeDelta::FromMilliseconds(10));
- message_loop_->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void SetUp() override {

Powered by Google App Engine
This is Rietveld 408576698