| 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_stream_factory_impl.h" | 5 #include "net/http/http_stream_factory_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 396 |
| 397 template <> | 397 template <> |
| 398 CapturePreconnectsSSLSocketPool::CapturePreconnectsSocketPool( | 398 CapturePreconnectsSSLSocketPool::CapturePreconnectsSocketPool( |
| 399 HostResolver* host_resolver, | 399 HostResolver* host_resolver, |
| 400 CertVerifier* cert_verifier) | 400 CertVerifier* cert_verifier) |
| 401 : SSLClientSocketPool(0, | 401 : SSLClientSocketPool(0, |
| 402 0, | 402 0, |
| 403 nullptr, // ssl_histograms | 403 nullptr, // ssl_histograms |
| 404 host_resolver, | 404 host_resolver, |
| 405 cert_verifier, | 405 cert_verifier, |
| 406 nullptr, // channel_id_store | 406 nullptr, // channel_id_store |
| 407 nullptr, // transport_security_state | 407 nullptr, // transport_security_state |
| 408 nullptr, // cert_transparency_verifier | 408 nullptr, // cert_transparency_verifier |
| 409 nullptr, // cert_policy_enforcer |
| 409 std::string(), // ssl_session_cache_shard | 410 std::string(), // ssl_session_cache_shard |
| 410 nullptr, // deterministic_socket_factory | 411 nullptr, // deterministic_socket_factory |
| 411 nullptr, // transport_socket_pool | 412 nullptr, // transport_socket_pool |
| 412 nullptr, | 413 nullptr, |
| 413 nullptr, | 414 nullptr, |
| 414 nullptr, // ssl_config_service | 415 nullptr, // ssl_config_service |
| 415 false, // enable_ssl_connect_job_waiting | 416 false, // enable_ssl_connect_job_waiting |
| 416 nullptr), // net_log | 417 nullptr), // net_log |
| 417 last_num_streams_(-1) { | 418 last_num_streams_(-1) { |
| 418 } | 419 } |
| 419 | 420 |
| 420 class HttpStreamFactoryTest : public ::testing::Test, | 421 class HttpStreamFactoryTest : public ::testing::Test, |
| 421 public ::testing::WithParamInterface<NextProto> { | 422 public ::testing::WithParamInterface<NextProto> { |
| 422 }; | 423 }; |
| 423 | 424 |
| 424 INSTANTIATE_TEST_CASE_P( | 425 INSTANTIATE_TEST_CASE_P( |
| 425 NextProto, | 426 NextProto, |
| (...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); | 1299 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); |
| 1299 | 1300 |
| 1300 // Make sure there is no orphaned job. it is already canceled. | 1301 // Make sure there is no orphaned job. it is already canceled. |
| 1301 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( | 1302 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( |
| 1302 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); | 1303 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); |
| 1303 } | 1304 } |
| 1304 | 1305 |
| 1305 } // namespace | 1306 } // namespace |
| 1306 | 1307 |
| 1307 } // namespace net | 1308 } // namespace net |
| OLD | NEW |