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

Unified Diff: net/socket/ssl_client_socket_unittest.cc

Issue 1126553002: Replace MessageLoopProxy usage with ThreadTaskRunnerHandle in net/socket/ module. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_unittest.cc
diff --git a/net/socket/ssl_client_socket_unittest.cc b/net/socket/ssl_client_socket_unittest.cc
index 9b90ae8915ffcc98b65a2fad87c8bbf3b1861756..7676513864a97afc094580cb365d22bbc28b077f 100644
--- a/net/socket/ssl_client_socket_unittest.cc
+++ b/net/socket/ssl_client_socket_unittest.cc
@@ -7,6 +7,7 @@
#include "base/callback_helpers.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
+#include "base/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "net/base/address_list.h"
#include "net/base/io_buffer.h"
@@ -939,22 +940,20 @@ class SSLClientSocketFalseStartTest : public SSLClientSocketTest {
class SSLClientSocketChannelIDTest : public SSLClientSocketTest {
protected:
void EnableChannelID() {
- channel_id_service_.reset(
- new ChannelIDService(new DefaultChannelIDStore(NULL),
- base::MessageLoopProxy::current()));
+ channel_id_service_.reset(new ChannelIDService(
+ new DefaultChannelIDStore(NULL), base::ThreadTaskRunnerHandle::Get()));
context_.channel_id_service = channel_id_service_.get();
}
void EnableFailingChannelID() {
channel_id_service_.reset(new ChannelIDService(
- new FailingChannelIDStore(), base::MessageLoopProxy::current()));
+ new FailingChannelIDStore(), base::ThreadTaskRunnerHandle::Get()));
context_.channel_id_service = channel_id_service_.get();
}
void EnableAsyncFailingChannelID() {
channel_id_service_.reset(new ChannelIDService(
- new AsyncFailingChannelIDStore(),
- base::MessageLoopProxy::current()));
+ new AsyncFailingChannelIDStore(), base::ThreadTaskRunnerHandle::Get()));
context_.channel_id_service = channel_id_service_.get();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698