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

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

Issue 9617039: Change Origin bound certs -> Domain bound certs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/ssl_client_socket_win.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/string_util.h" 9 #include "base/string_util.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { 91 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) {
92 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest")); 92 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest"));
93 pool_.reset(new SSLClientSocketPool( 93 pool_.reset(new SSLClientSocketPool(
94 kMaxSockets, 94 kMaxSockets,
95 kMaxSocketsPerGroup, 95 kMaxSocketsPerGroup,
96 ssl_histograms_.get(), 96 ssl_histograms_.get(),
97 NULL /* host_resolver */, 97 NULL /* host_resolver */,
98 NULL /* cert_verifier */, 98 NULL /* cert_verifier */,
99 NULL /* origin_bound_cert_service */, 99 NULL /* server_bound_cert_service */,
100 NULL /* transport_security_state */, 100 NULL /* transport_security_state */,
101 NULL /* ssl_host_info_factory */, 101 NULL /* ssl_host_info_factory */,
102 "" /* ssl_session_cache_shard */, 102 "" /* ssl_session_cache_shard */,
103 &socket_factory_, 103 &socket_factory_,
104 transport_pool ? &transport_socket_pool_ : NULL, 104 transport_pool ? &transport_socket_pool_ : NULL,
105 socks_pool ? &socks_socket_pool_ : NULL, 105 socks_pool ? &socks_socket_pool_ : NULL,
106 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, 106 http_proxy_pool ? &http_proxy_socket_pool_ : NULL,
107 NULL, 107 NULL,
108 NULL)); 108 NULL));
109 } 109 }
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 EXPECT_FALSE(session_->spdy_session_pool()->HasSession(test_hosts[1].pair)); 821 EXPECT_FALSE(session_->spdy_session_pool()->HasSession(test_hosts[1].pair));
822 822
823 session_->spdy_session_pool()->CloseAllSessions(); 823 session_->spdy_session_pool()->CloseAllSessions();
824 } 824 }
825 825
826 // It would be nice to also test the timeouts in SSLClientSocketPool. 826 // It would be nice to also test the timeouts in SSLClientSocketPool.
827 827
828 } // namespace 828 } // namespace
829 829
830 } // namespace net 830 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/ssl_client_socket_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698