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

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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698