summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 17:21:34 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 17:21:34 +0000
commit11fa95a8b366108c97612c5069ec3e4ff5a4b487 (patch)
tree060c84fc412688da97ced5aec50a8b3b96967dfd /chrome
parentae2cef7db1eeed76938f507b0a753f34f5d6747b (diff)
downloadchromium_src-11fa95a8b366108c97612c5069ec3e4ff5a4b487.zip
chromium_src-11fa95a8b366108c97612c5069ec3e4ff5a4b487.tar.gz
chromium_src-11fa95a8b366108c97612c5069ec3e4ff5a4b487.tar.bz2
Makes example.com resolve to localhost for test.
BUG=32845 TEST=none TBR=erikkay Review URL: http://codereview.chromium.org/573029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38215 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/browser_browsertest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/browser_browsertest.cc b/chrome/browser/browser_browsertest.cc
index 988ab96..efae3ad 100644
--- a/chrome/browser/browser_browsertest.cc
+++ b/chrome/browser/browser_browsertest.cc
@@ -25,6 +25,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
+#include "net/base/mock_host_resolver.h"
const std::string BEFORE_UNLOAD_HTML =
"<html><head><title>beforeunload</title></head><body>"
@@ -70,6 +71,7 @@ class BrowserTest : public ExtensionBrowserTest {
void PhantomTabTest() {
HTTPTestServer* server = StartHTTPServer();
ASSERT_TRUE(server);
+ host_resolver()->AddRule("www.example.com", "127.0.0.1");
GURL url(server->TestServerPage("empty.html"));
TabStripModel* model = browser()->tabstrip_model();