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

Unified Diff: components/scheduler/renderer/renderer_scheduler_impl_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/renderer/renderer_scheduler_impl_unittest.cc
diff --git a/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc b/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc
index 2e96d2f94ed8e99ce4dcd076f79a743657e010ed..ec6fed54e30277908344064af1d2783620cd4325 100644
--- a/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc
+++ b/components/scheduler/renderer/renderer_scheduler_impl_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/output/begin_frame_args.h"
#include "cc/test/ordered_simple_task_runner.h"
@@ -273,7 +274,7 @@ class RendererSchedulerImplTest : public testing::Test {
while (mock_task_runner_->RunUntilIdle()) {
}
} else {
- message_loop_->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
scheduler_.reset();
}
@@ -284,7 +285,7 @@ class RendererSchedulerImplTest : public testing::Test {
if (mock_task_runner_.get())
mock_task_runner_->RunUntilIdle();
else
- message_loop_->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void DoMainFrame() {
@@ -1843,7 +1844,7 @@ class RendererSchedulerImplWithMessageLoopTest
}
}
EnableIdleTasks();
- message_loop_->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
private:
« no previous file with comments | « components/scheduler/child/idle_helper_unittest.cc ('k') | components/search_provider_logos/logo_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698