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 b406128a31099e7e8ab6cced22cbe51ae8914d52..6070db09d700ee6192282a96205305744a166880 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 |
@@ -350,5 +350,10 @@ bool NetInternalsTest::StartTestServer() { |
if (test_server_started_) |
return true; |
test_server_started_ = 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_; |
} |