| Index: components/cronet/url_request_context_config_unittest.cc
|
| diff --git a/components/cronet/url_request_context_config_unittest.cc b/components/cronet/url_request_context_config_unittest.cc
|
| index d14c32eb3f5757330bebfce994d0f2c404d7de3f..3b084608c7e49fa01057b075bdb62f539a56c3ee 100644
|
| --- a/components/cronet/url_request_context_config_unittest.cc
|
| +++ b/components/cronet/url_request_context_config_unittest.cc
|
| @@ -19,6 +19,8 @@ TEST(URLRequestContextConfigTest, SetQuicExperimentalOptions) {
|
| URLRequestContextConfig config(
|
| // Enable QUIC.
|
| true,
|
| + // QUIC User Agent ID.
|
| + "QUIC User Agent ID",
|
| // Enable SPDY.
|
| true,
|
| // Enable SDCH.
|
| @@ -38,6 +40,7 @@ TEST(URLRequestContextConfigTest, SetQuicExperimentalOptions) {
|
| "{\"QUIC\":{\"max_server_configs_stored_in_properties\":2,"
|
| "\"delay_tcp_race\":true,"
|
| "\"max_number_of_lossy_connections\":10,"
|
| + "\"prefer_aes\":true,"
|
| "\"packet_loss_threshold\":0.5,"
|
| "\"idle_connection_timeout_seconds\":300,"
|
| "\"connection_options\":\"TIME,TBBR,REJ\"},"
|
| @@ -69,12 +72,18 @@ TEST(URLRequestContextConfigTest, SetQuicExperimentalOptions) {
|
| quic_connection_options.push_back(net::kREJ);
|
| EXPECT_EQ(quic_connection_options, params->quic_connection_options);
|
|
|
| + // Check QUIC User Agent Id.
|
| + EXPECT_EQ("QUIC User Agent ID", params->quic_user_agent_id);
|
| +
|
| // Check max_server_configs_stored_in_properties.
|
| EXPECT_EQ(2u, params->quic_max_server_configs_stored_in_properties);
|
|
|
| // Check delay_tcp_race.
|
| EXPECT_TRUE(params->quic_delay_tcp_race);
|
|
|
| + // Check prefer_aes.
|
| + EXPECT_TRUE(params->quic_prefer_aes);
|
| +
|
| // Check max_number_of_lossy_connections and packet_loss_threshold.
|
| EXPECT_EQ(10, params->quic_max_number_of_lossy_connections);
|
| EXPECT_FLOAT_EQ(0.5f, params->quic_packet_loss_threshold);
|
|
|