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

Unified Diff: components/network_session_configurator/network_session_configurator_unittest.cc

Issue 1986633002: Enable AltSvc pooling by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update trial logic and tests. Created 4 years, 7 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: components/network_session_configurator/network_session_configurator_unittest.cc
diff --git a/components/network_session_configurator/network_session_configurator_unittest.cc b/components/network_session_configurator/network_session_configurator_unittest.cc
index bcc14ee319f99d81199f5b3d7da025fd0904ade4..4156c50dd9369d22a497f198cf93ff0827822b3f 100644
--- a/components/network_session_configurator/network_session_configurator_unittest.cc
+++ b/components/network_session_configurator/network_session_configurator_unittest.cc
@@ -58,7 +58,7 @@ TEST_F(NetworkSessionConfiguratorTest, Defaults) {
EXPECT_TRUE(params_.enable_http2);
EXPECT_FALSE(params_.enable_tcp_fast_open_for_ssl);
EXPECT_TRUE(params_.parse_alternative_services);
- EXPECT_FALSE(params_.enable_alternative_service_with_different_host);
+ EXPECT_TRUE(params_.enable_alternative_service_with_different_host);
EXPECT_FALSE(params_.enable_npn);
EXPECT_TRUE(params_.enable_priority_dependencies);
EXPECT_FALSE(params_.enable_quic);
@@ -91,7 +91,7 @@ TEST_F(NetworkSessionConfiguratorTest, AltSvcFieldTrialEnabled) {
ParseFieldTrials();
EXPECT_TRUE(params_.parse_alternative_services);
- EXPECT_FALSE(params_.enable_alternative_service_with_different_host);
+ EXPECT_TRUE(params_.enable_alternative_service_with_different_host);
}
TEST_F(NetworkSessionConfiguratorTest, AltSvcFieldTrialDisabled) {
@@ -100,7 +100,7 @@ TEST_F(NetworkSessionConfiguratorTest, AltSvcFieldTrialDisabled) {
ParseFieldTrials();
EXPECT_FALSE(params_.parse_alternative_services);
- EXPECT_FALSE(params_.enable_alternative_service_with_different_host);
+ EXPECT_TRUE(params_.enable_alternative_service_with_different_host);
}
TEST_F(NetworkSessionConfiguratorTest, SpdyFieldTrialHoldbackEnabled) {
@@ -215,7 +215,7 @@ TEST_F(NetworkSessionConfiguratorTest, EnableQuicFromFieldTrialGroup) {
EXPECT_FALSE(params_.quic_disable_disk_cache);
EXPECT_FALSE(params_.quic_prefer_aes);
EXPECT_TRUE(params_.parse_alternative_services);
- EXPECT_FALSE(params_.enable_alternative_service_with_different_host);
+ EXPECT_TRUE(params_.enable_alternative_service_with_different_host);
EXPECT_EQ(0, params_.quic_max_number_of_lossy_connections);
EXPECT_EQ(1.0f, params_.quic_packet_loss_threshold);
EXPECT_TRUE(params_.quic_delay_tcp_race);

Powered by Google App Engine
This is Rietveld 408576698