| Index: chrome/test/in_process_browser_test.cc
|
| ===================================================================
|
| --- chrome/test/in_process_browser_test.cc (revision 13436)
|
| +++ chrome/test/in_process_browser_test.cc (working copy)
|
| @@ -125,12 +125,7 @@
|
|
|
| scoped_refptr<net::RuleBasedHostMapper> host_mapper(
|
| new net::RuleBasedHostMapper());
|
| - // TODO(sky): Don't make a real dns lookup here or simulate a failing
|
| - // lookup.
|
| - host_mapper->AllowDirectLookup("*.google.com");
|
| - // See http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol
|
| - // We don't want the test code to use it.
|
| - host_mapper->AddSimulatedFailure("wpad");
|
| + ConfigureHostMapper(host_mapper.get());
|
| net::ScopedHostMapper scoped_host_mapper(host_mapper.get());
|
| BrowserMain(params);
|
| }
|
| @@ -221,3 +216,11 @@
|
|
|
| MessageLoopForUI::current()->Quit();
|
| }
|
| +
|
| +void InProcessBrowserTest::ConfigureHostMapper(
|
| + net::RuleBasedHostMapper* host_mapper) {
|
| + host_mapper->AllowDirectLookup("*.google.com");
|
| + // See http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol
|
| + // We don't want the test code to use it.
|
| + host_mapper->AddSimulatedFailure("wpad");
|
| +}
|
|
|