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

Unified Diff: chrome/test/base/view_event_test_base.cc

Issue 1167163002: chrome: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some missing message_loop.h includes. Created 5 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 | « chrome/test/base/tracing_browsertest.cc ('k') | chrome/test/chromedriver/chrome/adb_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/view_event_test_base.cc
diff --git a/chrome/test/base/view_event_test_base.cc b/chrome/test/base/view_event_test_base.cc
index 34c6eda3775b03d7d52e0dac3934fa2770d436ed..1262582f693ef0b0d96d3ac9ebfd9a8ef8ec9562 100644
--- a/chrome/test/base/view_event_test_base.cc
+++ b/chrome/test/base/view_event_test_base.cc
@@ -5,7 +5,9 @@
#include "chrome/test/base/view_event_test_base.h"
#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/test/base/chrome_unit_test_suite.h"
#include "chrome/test/base/interactive_test_utils.h"
#include "chrome/test/base/testing_browser_process.h"
@@ -135,7 +137,7 @@ void ViewEventTestBase::StartMessageLoopAndRunTest() {
// Schedule a task that starts the test. Need to do this as we're going to
// run the message loop.
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&ViewEventTestBase::DoTestOnMessageLoop, this));
content::RunThisRunLoop(&run_loop_);
@@ -150,7 +152,7 @@ void ViewEventTestBase::ScheduleMouseMoveInBackground(int x, int y) {
dnd_thread_.reset(new base::Thread("mouse-move-thread"));
dnd_thread_->Start();
}
- dnd_thread_->message_loop()->PostDelayedTask(
+ dnd_thread_->task_runner()->PostDelayedTask(
FROM_HERE,
base::Bind(base::IgnoreResult(&ui_controls::SendMouseMove), x, y),
base::TimeDelta::FromMilliseconds(kMouseMoveDelayMS));
« no previous file with comments | « chrome/test/base/tracing_browsertest.cc ('k') | chrome/test/chromedriver/chrome/adb_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698