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

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

Issue 2283393002: Use a field trial to decide if QUIC should attempt to prevent packet fragmentation. (Closed)
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <ostream> 7 #include <ostream>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 prefer_aes_, max_number_of_lossy_connections_, packet_loss_threshold_, 355 prefer_aes_, max_number_of_lossy_connections_, packet_loss_threshold_,
356 max_disabled_reasons_, threshold_timeouts_with_open_streams_, 356 max_disabled_reasons_, threshold_timeouts_with_open_streams_,
357 threshold_public_resets_post_handshake_, receive_buffer_size_, 357 threshold_public_resets_post_handshake_, receive_buffer_size_,
358 delay_tcp_race_, /*max_server_configs_stored_in_properties*/ 0, 358 delay_tcp_race_, /*max_server_configs_stored_in_properties*/ 0,
359 close_sessions_on_ip_change_, 359 close_sessions_on_ip_change_,
360 disable_quic_on_timeout_with_open_streams_, 360 disable_quic_on_timeout_with_open_streams_,
361 idle_connection_timeout_seconds_, 361 idle_connection_timeout_seconds_,
362 packet_reader_yield_after_duration_milliseconds_, 362 packet_reader_yield_after_duration_milliseconds_,
363 migrate_sessions_on_network_change_, migrate_sessions_early_, 363 migrate_sessions_on_network_change_, migrate_sessions_early_,
364 allow_server_migration_, force_hol_blocking_, race_cert_verification_, 364 allow_server_migration_, force_hol_blocking_, race_cert_verification_,
365 QuicTagVector(), 365 /*do_not_fragment*/ true, QuicTagVector(),
366 /*enable_token_binding*/ false)); 366 /*enable_token_binding*/ false));
367 factory_->set_require_confirmation(false); 367 factory_->set_require_confirmation(false);
368 EXPECT_FALSE(factory_->has_quic_server_info_factory()); 368 EXPECT_FALSE(factory_->has_quic_server_info_factory());
369 factory_->set_quic_server_info_factory(new MockQuicServerInfoFactory()); 369 factory_->set_quic_server_info_factory(new MockQuicServerInfoFactory());
370 EXPECT_TRUE(factory_->has_quic_server_info_factory()); 370 EXPECT_TRUE(factory_->has_quic_server_info_factory());
371 } 371 }
372 372
373 void InitializeConnectionMigrationTest( 373 void InitializeConnectionMigrationTest(
374 NetworkChangeNotifier::NetworkList connected_networks) { 374 NetworkChangeNotifier::NetworkList connected_networks) {
375 scoped_mock_network_change_notifier_.reset( 375 scoped_mock_network_change_notifier_.reset(
(...skipping 4709 matching lines...) Expand 10 before | Expand all | Expand 10 after
5085 // Clear all cached states. 5085 // Clear all cached states.
5086 factory_->ClearCachedStatesInCryptoConfig( 5086 factory_->ClearCachedStatesInCryptoConfig(
5087 base::Callback<bool(const GURL&)>()); 5087 base::Callback<bool(const GURL&)>());
5088 EXPECT_TRUE(test_cases[0].state->certs().empty()); 5088 EXPECT_TRUE(test_cases[0].state->certs().empty());
5089 EXPECT_TRUE(test_cases[1].state->certs().empty()); 5089 EXPECT_TRUE(test_cases[1].state->certs().empty());
5090 EXPECT_TRUE(test_cases[2].state->certs().empty()); 5090 EXPECT_TRUE(test_cases[2].state->certs().empty());
5091 } 5091 }
5092 5092
5093 } // namespace test 5093 } // namespace test
5094 } // namespace net 5094 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698