OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.h" | 5 #include "chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 replacement_text, | 343 replacement_text, |
344 &replacement_path)); | 344 &replacement_path)); |
345 GURL url_loader = test_server()->GetURL(replacement_path); | 345 GURL url_loader = test_server()->GetURL(replacement_path); |
346 return url_loader; | 346 return url_loader; |
347 } | 347 } |
348 | 348 |
349 bool NetInternalsTest::StartTestServer() { | 349 bool NetInternalsTest::StartTestServer() { |
350 if (test_server_started_) | 350 if (test_server_started_) |
351 return true; | 351 return true; |
352 test_server_started_ = test_server()->Start(); | 352 test_server_started_ = test_server()->Start(); |
| 353 |
| 354 // Sample domain for SDCH-view test. Dictionaries for localhost/127.0.0.1 |
| 355 // are forbidden. |
| 356 host_resolver()->AddRule("testdomain.com", "127.0.0.1"); |
| 357 host_resolver()->AddRule("sub.testdomain.com", "127.0.0.1"); |
353 return test_server_started_; | 358 return test_server_started_; |
354 } | 359 } |
OLD | NEW |