| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 new net::ProxyConfigServiceFixed(net::ProxyConfig::CreateDirect()))); | 160 new net::ProxyConfigServiceFixed(net::ProxyConfig::CreateDirect()))); |
| 161 std::unique_ptr<net::URLRequestContext> context(builder.Build()); | 161 std::unique_ptr<net::URLRequestContext> context(builder.Build()); |
| 162 const net::HttpNetworkSession::Params* params = | 162 const net::HttpNetworkSession::Params* params = |
| 163 context->GetNetworkSessionParams(); | 163 context->GetNetworkSessionParams(); |
| 164 | 164 |
| 165 EXPECT_FALSE(params->quic_close_sessions_on_ip_change); | 165 EXPECT_FALSE(params->quic_close_sessions_on_ip_change); |
| 166 EXPECT_TRUE(params->quic_migrate_sessions_on_network_change); | 166 EXPECT_TRUE(params->quic_migrate_sessions_on_network_change); |
| 167 EXPECT_TRUE(params->quic_migrate_sessions_early); | 167 EXPECT_TRUE(params->quic_migrate_sessions_early); |
| 168 } | 168 } |
| 169 | 169 |
| 170 // See stale_host_resolver_unittest.cc for test of StaleDNS options. |
| 171 |
| 170 } // namespace cronet | 172 } // namespace cronet |
| OLD | NEW |