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 a2dc72fa9129ba07bcd11041d34b29a8d6b7792b..bcc14ee319f99d81199f5b3d7da025fd0904ade4 100644 |
--- a/components/network_session_configurator/network_session_configurator_unittest.cc |
+++ b/components/network_session_configurator/network_session_configurator_unittest.cc |
@@ -218,6 +218,7 @@ TEST_F(NetworkSessionConfiguratorTest, EnableQuicFromFieldTrialGroup) { |
EXPECT_FALSE(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); |
EXPECT_FALSE(params_.quic_close_sessions_on_ip_change); |
EXPECT_EQ(net::kIdleConnectionTimeoutSeconds, |
params_.quic_idle_connection_timeout_seconds); |
@@ -562,6 +563,17 @@ TEST_F(NetworkSessionConfiguratorTest, QuicReceiveBufferSize) { |
EXPECT_EQ(2097152, params_.quic_socket_receive_buffer_size); |
} |
+TEST_F(NetworkSessionConfiguratorTest, QuicDisableDelayTcpRace) { |
+ std::map<std::string, std::string> field_trial_params; |
+ field_trial_params["disable_delay_tcp_race"] = "true"; |
+ variations::AssociateVariationParams("QUIC", "Enabled", field_trial_params); |
+ base::FieldTrialList::CreateFieldTrial("QUIC", "Enabled"); |
+ |
+ ParseFieldTrials(); |
+ |
+ EXPECT_FALSE(params_.quic_delay_tcp_race); |
+} |
+ |
TEST_F(NetworkSessionConfiguratorTest, QuicOriginsToForceQuicOn) { |
base::CommandLine::ForCurrentProcess()->AppendSwitch("enable-quic"); |
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |