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

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

Issue 1579233002: Rename CertPolicyEnforcer to CTPolicyEnforcer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/ssl_client_socket_unittest.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/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 NULL) { 123 NULL) {
124 scoped_refptr<SSLConfigService> ssl_config_service( 124 scoped_refptr<SSLConfigService> ssl_config_service(
125 new SSLConfigServiceDefaults); 125 new SSLConfigServiceDefaults);
126 ssl_config_service->GetSSLConfig(&ssl_config_); 126 ssl_config_service->GetSSLConfig(&ssl_config_);
127 } 127 }
128 128
129 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { 129 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) {
130 pool_.reset(new SSLClientSocketPool( 130 pool_.reset(new SSLClientSocketPool(
131 kMaxSockets, kMaxSocketsPerGroup, NULL /* cert_verifier */, 131 kMaxSockets, kMaxSocketsPerGroup, NULL /* cert_verifier */,
132 NULL /* channel_id_service */, NULL /* transport_security_state */, 132 NULL /* channel_id_service */, NULL /* transport_security_state */,
133 NULL /* cert_transparency_verifier */, NULL /* cert_policy_enforcer */, 133 NULL /* cert_transparency_verifier */, NULL /* ct_policy_enforcer */,
134 std::string() /* ssl_session_cache_shard */, &socket_factory_, 134 std::string() /* ssl_session_cache_shard */, &socket_factory_,
135 transport_pool ? &transport_socket_pool_ : NULL, 135 transport_pool ? &transport_socket_pool_ : NULL,
136 socks_pool ? &socks_socket_pool_ : NULL, 136 socks_pool ? &socks_socket_pool_ : NULL,
137 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, NULL, NULL)); 137 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, NULL, NULL));
138 } 138 }
139 139
140 scoped_refptr<SSLSocketParams> SSLParams(ProxyServer::Scheme proxy, 140 scoped_refptr<SSLSocketParams> SSLParams(ProxyServer::Scheme proxy,
141 bool expect_spdy) { 141 bool expect_spdy) {
142 return make_scoped_refptr(new SSLSocketParams( 142 return make_scoped_refptr(new SSLSocketParams(
143 proxy == ProxyServer::SCHEME_DIRECT ? direct_transport_socket_params_ 143 proxy == ProxyServer::SCHEME_DIRECT ? direct_transport_socket_params_
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 ssl.channel_id_sent = true; 912 ssl.channel_id_sent = true;
913 ssl.SetNextProto(GetParam()); 913 ssl.SetNextProto(GetParam());
914 TestIPPoolingDisabled(&ssl); 914 TestIPPoolingDisabled(&ssl);
915 } 915 }
916 916
917 // It would be nice to also test the timeouts in SSLClientSocketPool. 917 // It would be nice to also test the timeouts in SSLClientSocketPool.
918 918
919 } // namespace 919 } // namespace
920 920
921 } // namespace net 921 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/ssl_client_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698