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

Side by Side Diff: components/cronet/url_request_context_config_unittest.cc

Issue 1898873006: Cronet: Use stale DNS cache entries experimentally. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dns_stale2
Patch Set: Make requested changes. Created 4 years, 4 months 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698