OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { | 89 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { |
90 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest")); | 90 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest")); |
91 pool_.reset(new SSLClientSocketPool( | 91 pool_.reset(new SSLClientSocketPool( |
92 kMaxSockets, | 92 kMaxSockets, |
93 kMaxSocketsPerGroup, | 93 kMaxSocketsPerGroup, |
94 ssl_histograms_.get(), | 94 ssl_histograms_.get(), |
95 NULL /* host_resolver */, | 95 NULL /* host_resolver */, |
96 NULL /* cert_verifier */, | 96 NULL /* cert_verifier */, |
97 NULL /* origin_bound_cert_service */, | 97 NULL /* origin_bound_cert_service */, |
98 NULL /* dnsrr_resolver */, | 98 NULL /* transport_security_state */, |
99 NULL /* dns_cert_checker */, | |
100 NULL /* ssl_host_info_factory */, | 99 NULL /* ssl_host_info_factory */, |
101 "" /* ssl_session_cache_shard */, | 100 "" /* ssl_session_cache_shard */, |
102 &socket_factory_, | 101 &socket_factory_, |
103 transport_pool ? &transport_socket_pool_ : NULL, | 102 transport_pool ? &transport_socket_pool_ : NULL, |
104 socks_pool ? &socks_socket_pool_ : NULL, | 103 socks_pool ? &socks_socket_pool_ : NULL, |
105 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, | 104 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, |
106 NULL, | 105 NULL, |
107 NULL)); | 106 NULL)); |
108 } | 107 } |
109 | 108 |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 EXPECT_FALSE(session_->spdy_session_pool()->HasSession(test_hosts[1].pair)); | 825 EXPECT_FALSE(session_->spdy_session_pool()->HasSession(test_hosts[1].pair)); |
827 | 826 |
828 session_->spdy_session_pool()->CloseAllSessions(); | 827 session_->spdy_session_pool()->CloseAllSessions(); |
829 } | 828 } |
830 | 829 |
831 // It would be nice to also test the timeouts in SSLClientSocketPool. | 830 // It would be nice to also test the timeouts in SSLClientSocketPool. |
832 | 831 |
833 } // namespace | 832 } // namespace |
834 | 833 |
835 } // namespace net | 834 } // namespace net |
OLD | NEW |