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

Unified Diff: chrome/browser/io_thread_unittest.cc

Issue 804813010: QUIC - enabled FLAGS_allow_truncated_connection_ids_for_quic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable truncate_ids by default Created 5 years, 11 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
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread_unittest.cc
diff --git a/chrome/browser/io_thread_unittest.cc b/chrome/browser/io_thread_unittest.cc
index 80a589d7fec4914a372114463365c06240088286..d8291cfa2ba0e8845d690e1dfb580b94f2cf7058 100644
--- a/chrome/browser/io_thread_unittest.cc
+++ b/chrome/browser/io_thread_unittest.cc
@@ -135,6 +135,7 @@ TEST_F(IOThreadTest, EnableQuicFromFieldTrialGroup) {
EXPECT_EQ(0, params.quic_load_server_info_timeout_ms);
EXPECT_FALSE(params.quic_disable_loading_server_info_for_new_servers);
EXPECT_EQ(0.0f, params.quic_load_server_info_timeout_srtt_multiplier);
+ EXPECT_FALSE(params.quic_enable_truncated_connection_ids);
}
TEST_F(IOThreadTest, EnableQuicFromCommandLine) {
@@ -326,6 +327,15 @@ TEST_F(IOThreadTest, QuicLoadServerInfoTimeToSmoothedRttFromFieldTrialParams) {
EXPECT_EQ(0.5f, params.quic_load_server_info_timeout_srtt_multiplier);
}
+TEST_F(IOThreadTest, QuicDisableTruncatedConnectionIds) {
+ field_trial_group_ = "Enabled";
+ field_trial_params_["enable_truncated_connection_ids"] = "true";
+ ConfigureQuicGlobals();
+ net::HttpNetworkSession::Params params;
+ InitializeNetworkSessionParams(&params);
+ EXPECT_TRUE(params.quic_enable_truncated_connection_ids);
+}
+
TEST_F(IOThreadTest,
AlternateProtocolProbabilityThresholdFromFlag) {
command_line_.AppendSwitchASCII("alternate-protocol-probability-threshold",
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698