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/quic/chromium/quic_stream_factory.h" | 5 #include "net/quic/chromium/quic_stream_factory.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <ostream> | 8 #include <ostream> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 &transport_security_state_, cert_transparency_verifier_.get(), | 277 &transport_security_state_, cert_transparency_verifier_.get(), |
278 /*SocketPerformanceWatcherFactory*/ nullptr, | 278 /*SocketPerformanceWatcherFactory*/ nullptr, |
279 &crypto_client_stream_factory_, &random_generator_, clock_, | 279 &crypto_client_stream_factory_, &random_generator_, clock_, |
280 kDefaultMaxPacketSize, string(), SupportedVersions(version_), | 280 kDefaultMaxPacketSize, string(), SupportedVersions(version_), |
281 always_require_handshake_confirmation_, disable_connection_pooling_, | 281 always_require_handshake_confirmation_, disable_connection_pooling_, |
282 load_server_info_timeout_srtt_multiplier_, enable_connection_racing_, | 282 load_server_info_timeout_srtt_multiplier_, enable_connection_racing_, |
283 enable_non_blocking_io_, disable_disk_cache_, prefer_aes_, | 283 enable_non_blocking_io_, disable_disk_cache_, prefer_aes_, |
284 receive_buffer_size_, delay_tcp_race_, | 284 receive_buffer_size_, delay_tcp_race_, |
285 /*max_server_configs_stored_in_properties*/ 0, | 285 /*max_server_configs_stored_in_properties*/ 0, |
286 close_sessions_on_ip_change_, | 286 close_sessions_on_ip_change_, |
| 287 /*mark_quic_broken_when_network_blackholes*/ false, |
287 idle_connection_timeout_seconds_, reduced_ping_timeout_seconds_, | 288 idle_connection_timeout_seconds_, reduced_ping_timeout_seconds_, |
288 packet_reader_yield_after_duration_milliseconds_, | 289 packet_reader_yield_after_duration_milliseconds_, |
289 migrate_sessions_on_network_change_, migrate_sessions_early_, | 290 migrate_sessions_on_network_change_, migrate_sessions_early_, |
290 allow_server_migration_, force_hol_blocking_, race_cert_verification_, | 291 allow_server_migration_, force_hol_blocking_, race_cert_verification_, |
291 /*do_not_fragment*/ true, estimate_initial_rtt_, QuicTagVector(), | 292 /*do_not_fragment*/ true, estimate_initial_rtt_, QuicTagVector(), |
292 /*enable_token_binding*/ false)); | 293 /*enable_token_binding*/ false)); |
293 factory_->set_require_confirmation(false); | 294 factory_->set_require_confirmation(false); |
294 EXPECT_FALSE(factory_->has_quic_server_info_factory()); | 295 EXPECT_FALSE(factory_->has_quic_server_info_factory()); |
295 factory_->set_quic_server_info_factory(new MockQuicServerInfoFactory()); | 296 factory_->set_quic_server_info_factory(new MockQuicServerInfoFactory()); |
296 EXPECT_TRUE(factory_->has_quic_server_info_factory()); | 297 EXPECT_TRUE(factory_->has_quic_server_info_factory()); |
(...skipping 5248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5545 // Clear all cached states. | 5546 // Clear all cached states. |
5546 factory_->ClearCachedStatesInCryptoConfig( | 5547 factory_->ClearCachedStatesInCryptoConfig( |
5547 base::Callback<bool(const GURL&)>()); | 5548 base::Callback<bool(const GURL&)>()); |
5548 EXPECT_TRUE(test_cases[0].state->certs().empty()); | 5549 EXPECT_TRUE(test_cases[0].state->certs().empty()); |
5549 EXPECT_TRUE(test_cases[1].state->certs().empty()); | 5550 EXPECT_TRUE(test_cases[1].state->certs().empty()); |
5550 EXPECT_TRUE(test_cases[2].state->certs().empty()); | 5551 EXPECT_TRUE(test_cases[2].state->certs().empty()); |
5551 } | 5552 } |
5552 | 5553 |
5553 } // namespace test | 5554 } // namespace test |
5554 } // namespace net | 5555 } // namespace net |
OLD | NEW |