Chromium Code Reviews| Index: chrome/test/unit/chrome_test_suite.h |
| diff --git a/chrome/test/unit/chrome_test_suite.h b/chrome/test/unit/chrome_test_suite.h |
| index 1d7947f64f967a7f15f71a6a2fbd248ce8950f46..e2148acb1a5ef8960ab79f979dc842a963002e4e 100644 |
| --- a/chrome/test/unit/chrome_test_suite.h |
| +++ b/chrome/test/unit/chrome_test_suite.h |
| @@ -23,6 +23,7 @@ |
| #include "chrome/common/resource_bundle.h" |
| #include "chrome/test/testing_browser_process.h" |
| #include "net/base/host_resolver_unittest.h" |
| +#include "net/base/net_util.h" |
| // In many cases it may be not obvious that a test makes a real DNS lookup. |
| // We generally don't want to rely on external DNS servers for our tests, |
| @@ -38,6 +39,9 @@ class WarningHostMapper : public net::HostMapper { |
| break; |
| } |
| + if (host == net::GetHostName()) |
| + local = true; |
|
Finnur
2009/04/06 19:32:42
nit: This you can do before the for loop and put t
|
| + |
| // Make the test fail so it's harder to ignore. |
| // If you really need to make real DNS query, use net::RuleBasedHostMapper |
| // and its AllowDirectLookup method. |