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

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

Issue 2296763007: [m54 merge] Use a field trial to decide if QUIC should attempt to prevent packet fragmentation. (Closed)
Patch Set: 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 prefer_aes_, max_number_of_lossy_connections_, packet_loss_threshold_, 354 prefer_aes_, max_number_of_lossy_connections_, packet_loss_threshold_,
355 max_disabled_reasons_, threshold_timeouts_with_open_streams_, 355 max_disabled_reasons_, threshold_timeouts_with_open_streams_,
356 threshold_public_resets_post_handshake_, receive_buffer_size_, 356 threshold_public_resets_post_handshake_, receive_buffer_size_,
357 delay_tcp_race_, /*max_server_configs_stored_in_properties*/ 0, 357 delay_tcp_race_, /*max_server_configs_stored_in_properties*/ 0,
358 close_sessions_on_ip_change_, 358 close_sessions_on_ip_change_,
359 disable_quic_on_timeout_with_open_streams_, 359 disable_quic_on_timeout_with_open_streams_,
360 idle_connection_timeout_seconds_, 360 idle_connection_timeout_seconds_,
361 packet_reader_yield_after_duration_milliseconds_, 361 packet_reader_yield_after_duration_milliseconds_,
362 migrate_sessions_on_network_change_, migrate_sessions_early_, 362 migrate_sessions_on_network_change_, migrate_sessions_early_,
363 allow_server_migration_, force_hol_blocking_, race_cert_verification_, 363 allow_server_migration_, force_hol_blocking_, race_cert_verification_,
364 QuicTagVector(), 364 /*do_not_fragment*/ true, QuicTagVector(),
365 /*enable_token_binding*/ false)); 365 /*enable_token_binding*/ false));
366 factory_->set_require_confirmation(false); 366 factory_->set_require_confirmation(false);
367 EXPECT_FALSE(factory_->has_quic_server_info_factory()); 367 EXPECT_FALSE(factory_->has_quic_server_info_factory());
368 factory_->set_quic_server_info_factory(new MockQuicServerInfoFactory()); 368 factory_->set_quic_server_info_factory(new MockQuicServerInfoFactory());
369 EXPECT_TRUE(factory_->has_quic_server_info_factory()); 369 EXPECT_TRUE(factory_->has_quic_server_info_factory());
370 } 370 }
371 371
372 void InitializeConnectionMigrationTest( 372 void InitializeConnectionMigrationTest(
373 NetworkChangeNotifier::NetworkList connected_networks) { 373 NetworkChangeNotifier::NetworkList connected_networks) {
374 scoped_mock_network_change_notifier_.reset( 374 scoped_mock_network_change_notifier_.reset(
(...skipping 4808 matching lines...) Expand 10 before | Expand all | Expand 10 after
5183 // Clear all cached states. 5183 // Clear all cached states.
5184 factory_->ClearCachedStatesInCryptoConfig( 5184 factory_->ClearCachedStatesInCryptoConfig(
5185 base::Callback<bool(const GURL&)>()); 5185 base::Callback<bool(const GURL&)>());
5186 EXPECT_TRUE(test_cases[0].state->certs().empty()); 5186 EXPECT_TRUE(test_cases[0].state->certs().empty());
5187 EXPECT_TRUE(test_cases[1].state->certs().empty()); 5187 EXPECT_TRUE(test_cases[1].state->certs().empty());
5188 EXPECT_TRUE(test_cases[2].state->certs().empty()); 5188 EXPECT_TRUE(test_cases[2].state->certs().empty());
5189 } 5189 }
5190 5190
5191 } // namespace test 5191 } // namespace test
5192 } // namespace net 5192 } // 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