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

Unified Diff: chrome/browser/io_thread_unittest.cc

Issue 811073004: QUIC - don't load data from disk cache if alternate protocol map doesn't (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 e11676a6f81367be8dc6ddf5a0e37417a5c5c2af..fa3c08627cc3199b721a8da191c484f509d593c7 100644
--- a/chrome/browser/io_thread_unittest.cc
+++ b/chrome/browser/io_thread_unittest.cc
@@ -133,6 +133,7 @@ TEST_F(IOThreadTest, EnableQuicFromFieldTrialGroup) {
EXPECT_FALSE(params.quic_always_require_handshake_confirmation);
EXPECT_FALSE(params.quic_disable_connection_pooling);
EXPECT_EQ(0, params.quic_load_server_info_timeout_ms);
+ EXPECT_FALSE(params.quic_load_server_info_if_already_spoke_quic);
}
TEST_F(IOThreadTest, EnableQuicFromCommandLine) {
@@ -295,6 +296,15 @@ TEST_F(IOThreadTest, QuicLoadServerInfoTimeoutFromFieldTrialParams) {
EXPECT_EQ(50, params.quic_load_server_info_timeout_ms);
}
+TEST_F(IOThreadTest, QuicLoadServerInfoIfAlreadySpokeQuic) {
+ field_trial_group_ = "Enabled";
+ field_trial_params_["load_server_info_if_already_spoke_quic"] = "true";
+ ConfigureQuicGlobals();
+ net::HttpNetworkSession::Params params;
+ InitializeNetworkSessionParams(&params);
+ EXPECT_TRUE(params.quic_load_server_info_if_already_spoke_quic);
+}
+
TEST_F(IOThreadTest,
AlternateProtocolProbabilityThresholdFromFlag) {
command_line_.AppendSwitchASCII("alternate-protocol-probability-threshold",

Powered by Google App Engine
This is Rietveld 408576698