| 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/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 session_->spdy_session_pool(), | 125 session_->spdy_session_pool(), |
| 126 true, | 126 true, |
| 127 NULL)), | 127 NULL)), |
| 128 http_proxy_histograms_("MockHttpProxy"), | 128 http_proxy_histograms_("MockHttpProxy"), |
| 129 http_proxy_socket_pool_(kMaxSockets, | 129 http_proxy_socket_pool_(kMaxSockets, |
| 130 kMaxSocketsPerGroup, | 130 kMaxSocketsPerGroup, |
| 131 &http_proxy_histograms_, | 131 &http_proxy_histograms_, |
| 132 &host_resolver_, | 132 &host_resolver_, |
| 133 &transport_socket_pool_, | 133 &transport_socket_pool_, |
| 134 NULL, | 134 NULL, |
| 135 NULL, | |
| 136 NULL), | 135 NULL), |
| 137 enable_ssl_connect_job_waiting_(false) { | 136 enable_ssl_connect_job_waiting_(false) { |
| 138 scoped_refptr<SSLConfigService> ssl_config_service( | 137 scoped_refptr<SSLConfigService> ssl_config_service( |
| 139 new SSLConfigServiceDefaults); | 138 new SSLConfigServiceDefaults); |
| 140 ssl_config_service->GetSSLConfig(&ssl_config_); | 139 ssl_config_service->GetSSLConfig(&ssl_config_); |
| 141 } | 140 } |
| 142 | 141 |
| 143 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { | 142 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { |
| 144 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest")); | 143 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest")); |
| 145 pool_.reset(new SSLClientSocketPool( | 144 pool_.reset(new SSLClientSocketPool( |
| (...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 ssl.channel_id_sent = true; | 1387 ssl.channel_id_sent = true; |
| 1389 ssl.SetNextProto(GetParam()); | 1388 ssl.SetNextProto(GetParam()); |
| 1390 TestIPPoolingDisabled(&ssl); | 1389 TestIPPoolingDisabled(&ssl); |
| 1391 } | 1390 } |
| 1392 | 1391 |
| 1393 // It would be nice to also test the timeouts in SSLClientSocketPool. | 1392 // It would be nice to also test the timeouts in SSLClientSocketPool. |
| 1394 | 1393 |
| 1395 } // namespace | 1394 } // namespace |
| 1396 | 1395 |
| 1397 } // namespace net | 1396 } // namespace net |
| OLD | NEW |