Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Unified Diff: chrome/browser/chrome_switches_browsertest.cc

Issue 1409163006: Migrating tests to use EmbeddedTestServer (/chrome/browser misc) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_site_per_process_browsertest.cc ('k') | chrome/browser/chromeos/app_mode/fake_cws.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_switches_browsertest.cc
diff --git a/chrome/browser/chrome_switches_browsertest.cc b/chrome/browser/chrome_switches_browsertest.cc
index c936004b26b441d345e62fba52396e5c86690308..872e2d818eae134863b9981cc6beaca4cea26727 100644
--- a/chrome/browser/chrome_switches_browsertest.cc
+++ b/chrome/browser/chrome_switches_browsertest.cc
@@ -10,18 +10,18 @@
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test_utils.h"
-#include "net/test/spawned_test_server/spawned_test_server.h"
+#include "net/test/embedded_test_server/embedded_test_server.h"
class HostRulesTest : public InProcessBrowserTest {
protected:
HostRulesTest() {}
void SetUpCommandLine(base::CommandLine* command_line) override {
- ASSERT_TRUE(test_server()->Start());
+ ASSERT_TRUE(embedded_test_server()->Start());
// Map all hosts to our local server.
- std::string host_rule(
- "MAP * " + test_server()->host_port_pair().ToString());
+ std::string host_rule("MAP * " +
+ embedded_test_server()->host_port_pair().ToString());
command_line->AppendSwitchASCII(switches::kHostRules, host_rule);
// Use no proxy or otherwise this test will fail on a machine that has a
// proxy configured.
@@ -34,7 +34,7 @@ class HostRulesTest : public InProcessBrowserTest {
IN_PROC_BROWSER_TEST_F(HostRulesTest, TestMap) {
// Go to the empty page using www.google.com as the host.
- GURL local_url = test_server()->GetURL("files/empty.html");
+ GURL local_url = embedded_test_server()->GetURL("/empty.html");
GURL test_url(std::string("http://www.google.com") + local_url.path());
ui_test_utils::NavigateToURL(browser(), test_url);
« no previous file with comments | « chrome/browser/chrome_site_per_process_browsertest.cc ('k') | chrome/browser/chromeos/app_mode/fake_cws.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698