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

Unified Diff: chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc

Issue 2851103002: Update some host_resolver()->AddRules in chrome/browser. (Closed)
Patch Set: fix Created 3 years, 8 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 | « chrome/browser/ui/views/accessibility/navigation_accessibility_uitest_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
index f0ce3fa556ad30e5072985a5bc60f68858cb3168..7ab14c99ba12036f79ea18b182958131e06e854d 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
@@ -356,6 +356,11 @@ void NetInternalsTest::SetUpOnMainThread() {
prerender::PrerenderManager* prerender_manager =
prerender::PrerenderManagerFactory::GetForBrowserContext(profile);
prerender_manager->mutable_config().max_bytes = 1000 * 1024 * 1024;
+
+ // Sample domain for SDCH-view test. Dictionaries for localhost/127.0.0.1
+ // are forbidden.
+ host_resolver()->AddRule("testdomain.com", "127.0.0.1");
+ host_resolver()->AddRule("sub.testdomain.com", "127.0.0.1");
}
content::WebUIMessageHandler* NetInternalsTest::GetMockMessageHandler() {
@@ -380,9 +385,5 @@ bool NetInternalsTest::StartTestServer() {
return true;
test_server_started_ = embedded_test_server()->Start();
- // Sample domain for SDCH-view test. Dictionaries for localhost/127.0.0.1
- // are forbidden.
- host_resolver()->AddRule("testdomain.com", "127.0.0.1");
- host_resolver()->AddRule("sub.testdomain.com", "127.0.0.1");
return test_server_started_;
}
« no previous file with comments | « chrome/browser/ui/views/accessibility/navigation_accessibility_uitest_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698