OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |