summaryrefslogtreecommitdiffstats
path: root/chrome/test/in_process_browser_test.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 08:58:48 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 08:58:48 +0000
commit7844fc5edc61e4e90509f90bf0ee0cb110889ca9 (patch)
tree820820e9c61e6684fc8c6b63eaf80a50bc8c7ccb /chrome/test/in_process_browser_test.cc
parent4259f9cc708d8f67d7f935d267da9a7ffa852b65 (diff)
downloadchromium_src-7844fc5edc61e4e90509f90bf0ee0cb110889ca9.zip
chromium_src-7844fc5edc61e4e90509f90bf0ee0cb110889ca9.tar.gz
chromium_src-7844fc5edc61e4e90509f90bf0ee0cb110889ca9.tar.bz2
Adjustments in chrome_test_suite external dns lookups detection code:
- allow resolving local hostname - simulate a failing lookup of "wpad" in in_process_browser_test Review URL: http://codereview.chromium.org/63019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/in_process_browser_test.cc')
-rw-r--r--chrome/test/in_process_browser_test.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc
index e3c064d..a9fa5c4 100644
--- a/chrome/test/in_process_browser_test.cc
+++ b/chrome/test/in_process_browser_test.cc
@@ -112,13 +112,15 @@ void InProcessBrowserTest::SetUp() {
params.ui_task =
NewRunnableMethod(this, &InProcessBrowserTest::RunTestOnMainThreadLoop);
- // TODO(sky): Don't make a real dns lookup here or simulate a failing
- // lookup. But if it's really needed then remove the TODO.
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");
- net::ScopedHostMapper scoped_host_mapper;
- scoped_host_mapper.Init(host_mapper.get());
+ // See http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol
+ // We don't want the test code to use it.
+ host_mapper->AddSimulatedFailure("wpad");
+ net::ScopedHostMapper scoped_host_mapper(host_mapper.get());
BrowserMain(params);
}