Exposes QUIC's close_sessions_on_ip_change and migrate_sessions_on_network_change flags to cronet users.
[email protected], [email protected]
BUG=
Review URL: https://codereview.chromium.org/1661443002
Cr-Commit-Position: refs/heads/master@{#373614}
diff --git a/components/cronet/url_request_context_config_unittest.cc b/components/cronet/url_request_context_config_unittest.cc
index d14c32eb3..cd84767 100644
--- a/components/cronet/url_request_context_config_unittest.cc
+++ b/components/cronet/url_request_context_config_unittest.cc
@@ -40,6 +40,8 @@
"\"max_number_of_lossy_connections\":10,"
"\"packet_loss_threshold\":0.5,"
"\"idle_connection_timeout_seconds\":300,"
+ "\"close_sessions_on_ip_change\":true,"
+ "\"migrate_sessions_on_nework_change\":true,"
"\"connection_options\":\"TIME,TBBR,REJ\"},"
"\"AsyncDNS\":{\"enable\":true}}",
// Data reduction proxy key.
@@ -82,6 +84,9 @@
// Check idle_connection_timeout_seconds.
EXPECT_EQ(300, params->quic_idle_connection_timeout_seconds);
+ EXPECT_TRUE(params->quic_close_sessions_on_ip_change);
+ EXPECT_TRUE(params->quic_migrate_sessions_on_network_change);
+
// Check AsyncDNS resolver is enabled.
EXPECT_TRUE(context->host_resolver()->GetDnsConfigAsValue());
}