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/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 scoped_refptr<SSLSocketParams> ignored_ssl_socket_params_; | 183 scoped_refptr<SSLSocketParams> ignored_ssl_socket_params_; |
184 ClientSocketPoolHistograms tcp_histograms_; | 184 ClientSocketPoolHistograms tcp_histograms_; |
185 MockTransportClientSocketPool transport_socket_pool_; | 185 MockTransportClientSocketPool transport_socket_pool_; |
186 ClientSocketPoolHistograms ssl_histograms_; | 186 ClientSocketPoolHistograms ssl_histograms_; |
187 MockHostResolver host_resolver_; | 187 MockHostResolver host_resolver_; |
188 scoped_ptr<CertVerifier> cert_verifier_; | 188 scoped_ptr<CertVerifier> cert_verifier_; |
189 SSLClientSocketPool ssl_socket_pool_; | 189 SSLClientSocketPool ssl_socket_pool_; |
190 | 190 |
191 const scoped_refptr<HttpNetworkSession> session_; | 191 const scoped_refptr<HttpNetworkSession> session_; |
192 ClientSocketPoolHistograms http_proxy_histograms_; | 192 ClientSocketPoolHistograms http_proxy_histograms_; |
193 SpdyTestStateHelper spdy_state_; | |
194 | 193 |
195 protected: | 194 protected: |
196 scoped_ptr<SSLSocketDataProvider> ssl_data_; | 195 scoped_ptr<SSLSocketDataProvider> ssl_data_; |
197 scoped_ptr<DeterministicSocketData> data_; | 196 scoped_ptr<DeterministicSocketData> data_; |
198 HttpProxyClientSocketPool pool_; | 197 HttpProxyClientSocketPool pool_; |
199 ClientSocketHandle handle_; | 198 ClientSocketHandle handle_; |
200 TestCompletionCallback callback_; | 199 TestCompletionCallback callback_; |
201 }; | 200 }; |
202 | 201 |
203 //----------------------------------------------------------------------------- | 202 //----------------------------------------------------------------------------- |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 // Make sure Location header was included and correct. | 589 // Make sure Location header was included and correct. |
591 std::string location; | 590 std::string location; |
592 EXPECT_TRUE(headers->IsRedirect(&location)); | 591 EXPECT_TRUE(headers->IsRedirect(&location)); |
593 EXPECT_EQ(location, redirectTarget); | 592 EXPECT_EQ(location, redirectTarget); |
594 } | 593 } |
595 } | 594 } |
596 | 595 |
597 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. | 596 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. |
598 | 597 |
599 } // namespace net | 598 } // namespace net |
OLD | NEW |