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

Unified Diff: chrome/browser/io_thread_unittest.cc

Issue 1327923002: Migrates QUIC sessions to a new network when old network is (about to be) disconnected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Addressed comments Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/io_thread_unittest.cc
diff --git a/chrome/browser/io_thread_unittest.cc b/chrome/browser/io_thread_unittest.cc
index 899ee24a064cefbe8efb197f8b751e45d6ada98d..93955e5596a7b680475f08d7e39e8d0241c0a0f2 100644
--- a/chrome/browser/io_thread_unittest.cc
+++ b/chrome/browser/io_thread_unittest.cc
@@ -173,6 +173,7 @@ TEST_F(IOThreadTest, EnableQuicFromFieldTrialGroup) {
EXPECT_EQ(0.5f, params.quic_packet_loss_threshold);
EXPECT_FALSE(params.quic_delay_tcp_race);
EXPECT_FALSE(params.quic_close_sessions_on_ip_change);
+ EXPECT_FALSE(params.quic_migrate_sessions_on_net_change);
EXPECT_FALSE(IOThread::ShouldEnableQuicForDataReductionProxy());
}
@@ -290,6 +291,16 @@ TEST_F(IOThreadTest,
EXPECT_TRUE(params.quic_close_sessions_on_ip_change);
}
+TEST_F(IOThreadTest,
+ QuicMigrateSessionsOnNetChangeFromFieldTrialParams) {
+ field_trial_group_ = "Enabled";
+ field_trial_params_["migrate_sessions_on_net_change"] = "true";
+ ConfigureQuicGlobals();
+ net::HttpNetworkSession::Params params;
+ InitializeNetworkSessionParams(&params);
+ EXPECT_TRUE(params.quic_migrate_sessions_on_net_change);
+}
+
TEST_F(IOThreadTest, PacketLengthFromFieldTrialParams) {
field_trial_group_ = "Enabled";
field_trial_params_["max_packet_length"] = "1450";

Powered by Google App Engine
This is Rietveld 408576698