| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 : session_deps_(GetParam().protocol), | 161 : session_deps_(GetParam().protocol), |
| 162 transport_socket_pool_(kMaxSockets, | 162 transport_socket_pool_(kMaxSockets, |
| 163 kMaxSocketsPerGroup, | 163 kMaxSocketsPerGroup, |
| 164 session_deps_.socket_factory.get()), | 164 session_deps_.socket_factory.get()), |
| 165 ssl_socket_pool_(kMaxSockets, | 165 ssl_socket_pool_(kMaxSockets, |
| 166 kMaxSocketsPerGroup, | 166 kMaxSocketsPerGroup, |
| 167 session_deps_.cert_verifier.get(), | 167 session_deps_.cert_verifier.get(), |
| 168 NULL /* channel_id_store */, | 168 NULL /* channel_id_store */, |
| 169 NULL /* transport_security_state */, | 169 NULL /* transport_security_state */, |
| 170 NULL /* cert_transparency_verifier */, | 170 NULL /* cert_transparency_verifier */, |
| 171 NULL /* cert_policy_enforcer */, | 171 NULL /* ct_policy_enforcer */, |
| 172 std::string() /* ssl_session_cache_shard */, | 172 std::string() /* ssl_session_cache_shard */, |
| 173 session_deps_.socket_factory.get(), | 173 session_deps_.socket_factory.get(), |
| 174 &transport_socket_pool_, | 174 &transport_socket_pool_, |
| 175 NULL, | 175 NULL, |
| 176 NULL, | 176 NULL, |
| 177 session_deps_.ssl_config_service.get(), | 177 session_deps_.ssl_config_service.get(), |
| 178 BoundNetLog().net_log()), | 178 BoundNetLog().net_log()), |
| 179 session_(CreateNetworkSession()), | 179 session_(CreateNetworkSession()), |
| 180 spdy_util_(GetParam().protocol, GetParam().priority_to_dependency), | 180 spdy_util_(GetParam().protocol, GetParam().priority_to_dependency), |
| 181 pool_(kMaxSockets, | 181 pool_(kMaxSockets, |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 // Make sure Location header was included and correct. | 821 // Make sure Location header was included and correct. |
| 822 std::string location; | 822 std::string location; |
| 823 EXPECT_TRUE(headers->IsRedirect(&location)); | 823 EXPECT_TRUE(headers->IsRedirect(&location)); |
| 824 EXPECT_EQ(location, redirectTarget); | 824 EXPECT_EQ(location, redirectTarget); |
| 825 } | 825 } |
| 826 } | 826 } |
| 827 | 827 |
| 828 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. | 828 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. |
| 829 | 829 |
| 830 } // namespace net | 830 } // namespace net |
| OLD | NEW |