| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/cronet/url_request_context_config.h" | 5 #include "components/cronet/url_request_context_config.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "net/cert/cert_verifier.h" | 9 #include "net/cert/cert_verifier.h" |
| 10 #include "net/http/http_network_session.h" | 10 #include "net/http/http_network_session.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 new net::ProxyConfigServiceFixed(net::ProxyConfig::CreateDirect()))); | 156 new net::ProxyConfigServiceFixed(net::ProxyConfig::CreateDirect()))); |
| 157 std::unique_ptr<net::URLRequestContext> context(builder.Build()); | 157 std::unique_ptr<net::URLRequestContext> context(builder.Build()); |
| 158 const net::HttpNetworkSession::Params* params = | 158 const net::HttpNetworkSession::Params* params = |
| 159 context->GetNetworkSessionParams(); | 159 context->GetNetworkSessionParams(); |
| 160 | 160 |
| 161 EXPECT_FALSE(params->quic_close_sessions_on_ip_change); | 161 EXPECT_FALSE(params->quic_close_sessions_on_ip_change); |
| 162 EXPECT_TRUE(params->quic_migrate_sessions_on_network_change); | 162 EXPECT_TRUE(params->quic_migrate_sessions_on_network_change); |
| 163 EXPECT_TRUE(params->quic_migrate_sessions_early); | 163 EXPECT_TRUE(params->quic_migrate_sessions_early); |
| 164 } | 164 } |
| 165 | 165 |
| 166 // See stale_host_resolver_unittest.cc for test of StaleDNS options. |
| 167 |
| 166 } // namespace cronet | 168 } // namespace cronet |
| OLD | NEW |