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

Side by Side Diff: net/socket/ssl_client_socket_pool_unittest.cc

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/unix_domain_client_socket_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_proxy_client_socket_pool.h" 5 #include "net/http/http_proxy_client_socket_pool.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 session_->spdy_session_pool(), 125 session_->spdy_session_pool(),
126 true, 126 true,
127 NULL)), 127 NULL)),
128 http_proxy_histograms_("MockHttpProxy"), 128 http_proxy_histograms_("MockHttpProxy"),
129 http_proxy_socket_pool_(kMaxSockets, 129 http_proxy_socket_pool_(kMaxSockets,
130 kMaxSocketsPerGroup, 130 kMaxSocketsPerGroup,
131 &http_proxy_histograms_, 131 &http_proxy_histograms_,
132 &host_resolver_, 132 &host_resolver_,
133 &transport_socket_pool_, 133 &transport_socket_pool_,
134 NULL, 134 NULL,
135 NULL,
136 NULL), 135 NULL),
137 enable_ssl_connect_job_waiting_(false) { 136 enable_ssl_connect_job_waiting_(false) {
138 scoped_refptr<SSLConfigService> ssl_config_service( 137 scoped_refptr<SSLConfigService> ssl_config_service(
139 new SSLConfigServiceDefaults); 138 new SSLConfigServiceDefaults);
140 ssl_config_service->GetSSLConfig(&ssl_config_); 139 ssl_config_service->GetSSLConfig(&ssl_config_);
141 } 140 }
142 141
143 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { 142 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) {
144 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest")); 143 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest"));
145 pool_.reset(new SSLClientSocketPool( 144 pool_.reset(new SSLClientSocketPool(
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 ssl.channel_id_sent = true; 1387 ssl.channel_id_sent = true;
1389 ssl.SetNextProto(GetParam()); 1388 ssl.SetNextProto(GetParam());
1390 TestIPPoolingDisabled(&ssl); 1389 TestIPPoolingDisabled(&ssl);
1391 } 1390 }
1392 1391
1393 // It would be nice to also test the timeouts in SSLClientSocketPool. 1392 // It would be nice to also test the timeouts in SSLClientSocketPool.
1394 1393
1395 } // namespace 1394 } // namespace
1396 1395
1397 } // namespace net 1396 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/unix_domain_client_socket_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698