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

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

Issue 451383002: Plumbing for TCP FastOpen for SSL sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing linker error for Windows. Created 6 years, 3 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/socks_client_socket_pool_unittest.cc ('k') | net/socket/stream_socket.h » ('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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 public ::testing::WithParamInterface<NextProto> { 80 public ::testing::WithParamInterface<NextProto> {
81 protected: 81 protected:
82 SSLClientSocketPoolTest() 82 SSLClientSocketPoolTest()
83 : transport_security_state_(new TransportSecurityState), 83 : transport_security_state_(new TransportSecurityState),
84 proxy_service_(ProxyService::CreateDirect()), 84 proxy_service_(ProxyService::CreateDirect()),
85 ssl_config_service_(new SSLConfigServiceDefaults), 85 ssl_config_service_(new SSLConfigServiceDefaults),
86 http_auth_handler_factory_( 86 http_auth_handler_factory_(
87 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), 87 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)),
88 session_(CreateNetworkSession()), 88 session_(CreateNetworkSession()),
89 direct_transport_socket_params_( 89 direct_transport_socket_params_(
90 new TransportSocketParams(HostPortPair("host", 443), 90 new TransportSocketParams(
91 false, 91 HostPortPair("host", 443),
92 false, 92 false,
93 OnHostResolutionCallback())), 93 false,
94 OnHostResolutionCallback(),
95 TransportSocketParams::COMBINE_CONNECT_AND_WRITE_DEFAULT)),
94 transport_histograms_("MockTCP"), 96 transport_histograms_("MockTCP"),
95 transport_socket_pool_(kMaxSockets, 97 transport_socket_pool_(kMaxSockets,
96 kMaxSocketsPerGroup, 98 kMaxSocketsPerGroup,
97 &transport_histograms_, 99 &transport_histograms_,
98 &socket_factory_), 100 &socket_factory_),
99 proxy_transport_socket_params_( 101 proxy_transport_socket_params_(
100 new TransportSocketParams(HostPortPair("proxy", 443), 102 new TransportSocketParams(
101 false, 103 HostPortPair("proxy", 443),
102 false, 104 false,
103 OnHostResolutionCallback())), 105 false,
106 OnHostResolutionCallback(),
107 TransportSocketParams::COMBINE_CONNECT_AND_WRITE_DEFAULT)),
104 socks_socket_params_( 108 socks_socket_params_(
105 new SOCKSSocketParams(proxy_transport_socket_params_, 109 new SOCKSSocketParams(proxy_transport_socket_params_,
106 true, 110 true,
107 HostPortPair("sockshost", 443))), 111 HostPortPair("sockshost", 443))),
108 socks_histograms_("MockSOCKS"), 112 socks_histograms_("MockSOCKS"),
109 socks_socket_pool_(kMaxSockets, 113 socks_socket_pool_(kMaxSockets,
110 kMaxSocketsPerGroup, 114 kMaxSocketsPerGroup,
111 &socks_histograms_, 115 &socks_histograms_,
112 &transport_socket_pool_), 116 &transport_socket_pool_),
113 http_proxy_socket_params_( 117 http_proxy_socket_params_(
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1392 ssl.channel_id_sent = true; 1396 ssl.channel_id_sent = true;
1393 ssl.SetNextProto(GetParam()); 1397 ssl.SetNextProto(GetParam());
1394 TestIPPoolingDisabled(&ssl); 1398 TestIPPoolingDisabled(&ssl);
1395 } 1399 }
1396 1400
1397 // It would be nice to also test the timeouts in SSLClientSocketPool. 1401 // It would be nice to also test the timeouts in SSLClientSocketPool.
1398 1402
1399 } // namespace 1403 } // namespace
1400 1404
1401 } // namespace net 1405 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket_pool_unittest.cc ('k') | net/socket/stream_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698