Index: chrome/browser/io_thread_unittest.cc |
diff --git a/chrome/browser/io_thread_unittest.cc b/chrome/browser/io_thread_unittest.cc |
index ebc273e58dfc21c2f96964b6f93bde755a112695..dca30be5f2ae7a5fd0095a847674183a65abfbe8 100644 |
--- a/chrome/browser/io_thread_unittest.cc |
+++ b/chrome/browser/io_thread_unittest.cc |
@@ -251,6 +251,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_FALSE(params_.quic_delay_tcp_race); |
EXPECT_FALSE(params_.quic_close_sessions_on_ip_change); |
EXPECT_EQ(net::kIdleConnectionTimeoutSeconds, |
params_.quic_idle_connection_timeout_seconds); |
@@ -576,6 +577,17 @@ TEST_F(NetworkSessionConfiguratorTest, QuicReceiveBufferSize) { |
EXPECT_EQ(2097152, params_.quic_socket_receive_buffer_size); |
} |
+TEST_F(NetworkSessionConfiguratorTest, QuicDelayTcpConnection) { |
+ std::map<std::string, std::string> field_trial_params; |
+ field_trial_params["delay_tcp_race"] = "true"; |
+ variations::AssociateVariationParams("QUIC", "Enabled", field_trial_params); |
+ base::FieldTrialList::CreateFieldTrial("QUIC", "Enabled"); |
+ |
+ ParseFieldTrials(); |
+ |
+ EXPECT_TRUE(params_.quic_delay_tcp_race); |
+} |
+ |
TEST_F(NetworkSessionConfiguratorTest, QuicOriginsToForceQuicOn) { |
base::CommandLine::ForCurrentProcess()->AppendSwitch("enable-quic"); |
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |