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/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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 NULL /* transport_security_state */, | 171 NULL /* transport_security_state */, |
172 NULL /* cert_transparency_verifier */, | 172 NULL /* cert_transparency_verifier */, |
173 NULL /* cert_policy_enforcer */, | 173 NULL /* cert_policy_enforcer */, |
174 std::string() /* ssl_session_cache_shard */, | 174 std::string() /* ssl_session_cache_shard */, |
175 session_deps_.deterministic_socket_factory.get(), | 175 session_deps_.deterministic_socket_factory.get(), |
176 &transport_socket_pool_, | 176 &transport_socket_pool_, |
177 NULL, | 177 NULL, |
178 NULL, | 178 NULL, |
179 session_deps_.ssl_config_service.get(), | 179 session_deps_.ssl_config_service.get(), |
180 false, | 180 false, |
181 BoundNetLog().net_log()), | 181 BoundNetLog().net_log(), |
| 182 NULL /* ssl_socket_config_service */), |
182 session_(CreateNetworkSession()), | 183 session_(CreateNetworkSession()), |
183 http_proxy_histograms_("HttpProxyUnitTest"), | 184 http_proxy_histograms_("HttpProxyUnitTest"), |
184 spdy_util_(GetParam().protocol), | 185 spdy_util_(GetParam().protocol), |
185 pool_(kMaxSockets, | 186 pool_(kMaxSockets, |
186 kMaxSocketsPerGroup, | 187 kMaxSocketsPerGroup, |
187 &http_proxy_histograms_, | 188 &http_proxy_histograms_, |
188 &transport_socket_pool_, | 189 &transport_socket_pool_, |
189 &ssl_socket_pool_, | 190 &ssl_socket_pool_, |
190 NULL) {} | 191 NULL) {} |
191 | 192 |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 EXPECT_TRUE(headers->IsRedirect(&location)); | 844 EXPECT_TRUE(headers->IsRedirect(&location)); |
844 EXPECT_EQ(location, redirectTarget); | 845 EXPECT_EQ(location, redirectTarget); |
845 } | 846 } |
846 } | 847 } |
847 | 848 |
848 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. | 849 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. |
849 | 850 |
850 } // namespace | 851 } // namespace |
851 | 852 |
852 } // namespace net | 853 } // namespace net |
OLD | NEW |