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

Unified Diff: components/cronet/stale_host_resolver_unittest.cc

Issue 2785563002: Expire but don't clear HostCache on DNS config change (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/network_change_notifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/stale_host_resolver_unittest.cc
diff --git a/components/cronet/stale_host_resolver_unittest.cc b/components/cronet/stale_host_resolver_unittest.cc
index 56538099deb95a64e7d2a988cba4746a15f6e7f3..648aae6dc8eaf7a23dafc199ff987de6b83ce99f 100644
--- a/components/cronet/stale_host_resolver_unittest.cc
+++ b/components/cronet/stale_host_resolver_unittest.cc
@@ -162,7 +162,9 @@ class StaleHostResolverTest : public testing::Test {
}
void OnNetworkChange() {
+ // Real network changes on Android will send both notifications.
net::NetworkChangeNotifier::NotifyObserversOfIPAddressChangeForTests();
+ net::NetworkChangeNotifier::NotifyObserversOfDNSChangeForTests();
base::RunLoop().RunUntilIdle(); // Wait for notification.
}
« no previous file with comments | « no previous file | net/base/network_change_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698