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

Unified Diff: net/proxy/network_delegate_error_observer_unittest.cc

Issue 1141573002: [net/proxy] Usage of ThreadTaskRunnerHandle & SingleThreadTaskRunner instead of MLP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « net/proxy/network_delegate_error_observer.cc ('k') | net/proxy/polling_proxy_config_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/network_delegate_error_observer_unittest.cc
diff --git a/net/proxy/network_delegate_error_observer_unittest.cc b/net/proxy/network_delegate_error_observer_unittest.cc
index 7d9bc6c066f0217e2c01a74905e68fd287eaaea9..6b9d6b0f1ce1c028c6893ad5fa6d1e5368085d3e 100644
--- a/net/proxy/network_delegate_error_observer_unittest.cc
+++ b/net/proxy/network_delegate_error_observer_unittest.cc
@@ -6,7 +6,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/thread_task_runner_handle.h"
#include "base/threading/thread.h"
#include "net/base/net_errors.h"
#include "net/base/network_delegate_impl.h"
@@ -88,7 +88,7 @@ TEST(NetworkDelegateErrorObserverTest, CallOnThread) {
thread.Start();
TestNetworkDelegate network_delegate;
NetworkDelegateErrorObserver observer(
- &network_delegate, base::MessageLoopProxy::current().get());
+ &network_delegate, base::ThreadTaskRunnerHandle::Get().get());
thread.message_loop()
->PostTask(FROM_HERE,
base::Bind(&NetworkDelegateErrorObserver::OnPACScriptError,
@@ -105,7 +105,7 @@ TEST(NetworkDelegateErrorObserverTest, NoDelegate) {
base::Thread thread("test_thread");
thread.Start();
NetworkDelegateErrorObserver observer(
- NULL, base::MessageLoopProxy::current().get());
+ NULL, base::ThreadTaskRunnerHandle::Get().get());
thread.message_loop()
->PostTask(FROM_HERE,
base::Bind(&NetworkDelegateErrorObserver::OnPACScriptError,
« no previous file with comments | « net/proxy/network_delegate_error_observer.cc ('k') | net/proxy/polling_proxy_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698