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

Unified Diff: chrome/test/chromedriver/net/net_util_unittest.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/chromedriver/commands_unittest.cc ('k') | chrome/test/chromedriver/net/port_server_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/net/net_util_unittest.cc
diff --git a/chrome/test/chromedriver/net/net_util_unittest.cc b/chrome/test/chromedriver/net/net_util_unittest.cc
index f0c3534de79ea913e328049d073d1cf976424a24..b976373233952510bae80563ede45b3c036634a1 100644
--- a/chrome/test/chromedriver/net/net_util_unittest.cc
+++ b/chrome/test/chromedriver/net/net_util_unittest.cc
@@ -9,7 +9,6 @@
#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/stringprintf.h"
#include "base/synchronization/waitable_event.h"
@@ -34,22 +33,19 @@ class FetchUrlTest : public testing::Test,
response_(kSendHello) {
base::Thread::Options options(base::MessageLoop::TYPE_IO, 0);
CHECK(io_thread_.StartWithOptions(options));
- context_getter_ = new URLRequestContextGetter(
- io_thread_.message_loop_proxy());
+ context_getter_ = new URLRequestContextGetter(io_thread_.task_runner());
base::WaitableEvent event(false, false);
- io_thread_.message_loop_proxy()->PostTask(
+ io_thread_.task_runner()->PostTask(
FROM_HERE,
- base::Bind(&FetchUrlTest::InitOnIO,
- base::Unretained(this), &event));
+ base::Bind(&FetchUrlTest::InitOnIO, base::Unretained(this), &event));
event.Wait();
}
~FetchUrlTest() override {
base::WaitableEvent event(false, false);
- io_thread_.message_loop_proxy()->PostTask(
- FROM_HERE,
- base::Bind(&FetchUrlTest::DestroyServerOnIO,
- base::Unretained(this), &event));
+ io_thread_.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&FetchUrlTest::DestroyServerOnIO,
+ base::Unretained(this), &event));
event.Wait();
}
« no previous file with comments | « chrome/test/chromedriver/commands_unittest.cc ('k') | chrome/test/chromedriver/net/port_server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698