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

Unified Diff: components/cronet/url_request_context_config_unittest.cc

Issue 1505983003: QUIC - cronet - added idle_connection_timeout_seconds and disable experiments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enable_preconnect_exp
Patch Set: Deleted PreConnect option Created 5 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
« no previous file with comments | « components/cronet/url_request_context_config.cc ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24bbfaa61ba200f4b30c6d79fe7179dbf4cdad5b..2fa6ae10c8bb92dd1d6d2bfdf6971d73a3ecc500 100644
--- a/components/cronet/url_request_context_config_unittest.cc
+++ b/components/cronet/url_request_context_config_unittest.cc
@@ -38,6 +38,7 @@ TEST(URLRequestContextConfigTest, SetQuicExperimentalOptions) {
"\"delay_tcp_race\":true,"
"\"max_number_of_lossy_connections\":10,"
"\"packet_loss_threshold\":0.5,"
+ "\"idle_connection_timeout_seconds\":300,"
"\"connection_options\":\"TIME,TBBR,REJ\"},"
"\"AsyncDNS\":{\"enable\":true}}",
// Data reduction proxy key.
@@ -77,6 +78,9 @@ TEST(URLRequestContextConfigTest, SetQuicExperimentalOptions) {
EXPECT_EQ(10, params->quic_max_number_of_lossy_connections);
EXPECT_FLOAT_EQ(0.5f, params->quic_packet_loss_threshold);
+ // Check idle_connection_timeout_seconds.
+ EXPECT_EQ(300, params->quic_idle_connection_timeout_seconds);
+
// Check AsyncDNS resolver is enabled.
EXPECT_NE(nullptr, context->host_resolver()->GetDnsConfigAsValue());
}
« no previous file with comments | « components/cronet/url_request_context_config.cc ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698