OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 &tcp_histograms_, | 61 &tcp_histograms_, |
62 &socket_factory_), | 62 &socket_factory_), |
63 ssl_histograms_("MockSSL"), | 63 ssl_histograms_("MockSSL"), |
64 proxy_service_(ProxyService::CreateDirect()), | 64 proxy_service_(ProxyService::CreateDirect()), |
65 ssl_config_service_(new SSLConfigServiceDefaults), | 65 ssl_config_service_(new SSLConfigServiceDefaults), |
66 ssl_socket_pool_(kMaxSockets, kMaxSocketsPerGroup, | 66 ssl_socket_pool_(kMaxSockets, kMaxSocketsPerGroup, |
67 &ssl_histograms_, | 67 &ssl_histograms_, |
68 &host_resolver_, | 68 &host_resolver_, |
69 &cert_verifier_, | 69 &cert_verifier_, |
70 NULL /* origin_bound_cert_store */, | 70 NULL /* origin_bound_cert_store */, |
71 NULL /* dnsrr_resolver */, | 71 NULL /* transport_security_state */, |
72 NULL /* dns_cert_checker */, | |
73 NULL /* ssl_host_info_factory */, | 72 NULL /* ssl_host_info_factory */, |
74 "" /* ssl_session_cache_shard */, | 73 "" /* ssl_session_cache_shard */, |
75 &socket_factory_, | 74 &socket_factory_, |
76 &transport_socket_pool_, | 75 &transport_socket_pool_, |
77 NULL, | 76 NULL, |
78 NULL, | 77 NULL, |
79 ssl_config_service_.get(), | 78 ssl_config_service_.get(), |
80 BoundNetLog().net_log()), | 79 BoundNetLog().net_log()), |
81 http_auth_handler_factory_( | 80 http_auth_handler_factory_( |
82 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), | 81 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 // HTTPS or SPDY Proxy CONNECT responses are trustworthy | 528 // HTTPS or SPDY Proxy CONNECT responses are trustworthy |
530 EXPECT_EQ(ERR_HTTPS_PROXY_TUNNEL_RESPONSE, rv); | 529 EXPECT_EQ(ERR_HTTPS_PROXY_TUNNEL_RESPONSE, rv); |
531 EXPECT_TRUE(handle_.is_initialized()); | 530 EXPECT_TRUE(handle_.is_initialized()); |
532 EXPECT_TRUE(handle_.socket()); | 531 EXPECT_TRUE(handle_.socket()); |
533 } | 532 } |
534 } | 533 } |
535 | 534 |
536 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. | 535 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. |
537 | 536 |
538 } // namespace net | 537 } // namespace net |
OLD | NEW |