Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: net/quic/chromium/quic_stream_factory_test.cc

Issue 2789093003: Mark QUIC broken when the network blackholes after the handshake (Closed)
Patch Set: Address comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 /*SocketPerformanceWatcherFactory*/ nullptr, 279 /*SocketPerformanceWatcherFactory*/ nullptr,
280 &crypto_client_stream_factory_, &random_generator_, clock_, 280 &crypto_client_stream_factory_, &random_generator_, clock_,
281 kDefaultMaxPacketSize, string(), SupportedVersions(version_), 281 kDefaultMaxPacketSize, string(), SupportedVersions(version_),
282 always_require_handshake_confirmation_, disable_connection_pooling_, 282 always_require_handshake_confirmation_, disable_connection_pooling_,
283 load_server_info_timeout_srtt_multiplier_, enable_connection_racing_, 283 load_server_info_timeout_srtt_multiplier_, enable_connection_racing_,
284 enable_non_blocking_io_, disable_disk_cache_, prefer_aes_, 284 enable_non_blocking_io_, disable_disk_cache_, prefer_aes_,
285 receive_buffer_size_, delay_tcp_race_, 285 receive_buffer_size_, delay_tcp_race_,
286 /*max_server_configs_stored_in_properties*/ 0, 286 /*max_server_configs_stored_in_properties*/ 0,
287 close_sessions_on_ip_change_, 287 close_sessions_on_ip_change_,
288 disable_quic_on_timeout_with_open_streams_, 288 disable_quic_on_timeout_with_open_streams_,
289 /*mark_quic_broken_when_network_suspected*/ false,
289 idle_connection_timeout_seconds_, reduced_ping_timeout_seconds_, 290 idle_connection_timeout_seconds_, reduced_ping_timeout_seconds_,
290 packet_reader_yield_after_duration_milliseconds_, 291 packet_reader_yield_after_duration_milliseconds_,
291 migrate_sessions_on_network_change_, migrate_sessions_early_, 292 migrate_sessions_on_network_change_, migrate_sessions_early_,
292 allow_server_migration_, force_hol_blocking_, race_cert_verification_, 293 allow_server_migration_, force_hol_blocking_, race_cert_verification_,
293 /*do_not_fragment*/ true, estimate_initial_rtt_, QuicTagVector(), 294 /*do_not_fragment*/ true, estimate_initial_rtt_, QuicTagVector(),
294 /*enable_token_binding*/ false)); 295 /*enable_token_binding*/ false));
295 factory_->set_require_confirmation(false); 296 factory_->set_require_confirmation(false);
296 EXPECT_FALSE(factory_->has_quic_server_info_factory()); 297 EXPECT_FALSE(factory_->has_quic_server_info_factory());
297 factory_->set_quic_server_info_factory(new MockQuicServerInfoFactory()); 298 factory_->set_quic_server_info_factory(new MockQuicServerInfoFactory());
298 EXPECT_TRUE(factory_->has_quic_server_info_factory()); 299 EXPECT_TRUE(factory_->has_quic_server_info_factory());
(...skipping 5516 matching lines...) Expand 10 before | Expand all | Expand 10 after
5815 // Clear all cached states. 5816 // Clear all cached states.
5816 factory_->ClearCachedStatesInCryptoConfig( 5817 factory_->ClearCachedStatesInCryptoConfig(
5817 base::Callback<bool(const GURL&)>()); 5818 base::Callback<bool(const GURL&)>());
5818 EXPECT_TRUE(test_cases[0].state->certs().empty()); 5819 EXPECT_TRUE(test_cases[0].state->certs().empty());
5819 EXPECT_TRUE(test_cases[1].state->certs().empty()); 5820 EXPECT_TRUE(test_cases[1].state->certs().empty());
5820 EXPECT_TRUE(test_cases[2].state->certs().empty()); 5821 EXPECT_TRUE(test_cases[2].state->certs().empty());
5821 } 5822 }
5822 5823
5823 } // namespace test 5824 } // namespace test
5824 } // namespace net 5825 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698