Index: chrome/browser/extensions/extension_incognito_apitest.cc |
diff --git a/chrome/browser/extensions/extension_incognito_apitest.cc b/chrome/browser/extensions/extension_incognito_apitest.cc |
index dbf70332fabf25375a31b38ecc7e7451c3aaa4c4..2f3abf6b9cda1d5f883d3641933c37c518889937 100644 |
--- a/chrome/browser/extensions/extension_incognito_apitest.cc |
+++ b/chrome/browser/extensions/extension_incognito_apitest.cc |
@@ -16,6 +16,7 @@ |
#include "content/public/browser/web_contents.h" |
#include "content/public/test/browser_test_utils.h" |
#include "net/dns/mock_host_resolver.h" |
+#include "net/test/embedded_test_server/embedded_test_server.h" |
using content::WebContents; |
@@ -30,7 +31,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, IncognitoNoScript) { |
// Open incognito window and navigate to test page. |
Browser* otr_browser = ui_test_utils::OpenURLOffTheRecord( |
browser()->profile(), |
- test_server()->GetURL("files/extensions/test_file.html")); |
+ embedded_test_server()->GetURL("/extensions/test_file.html")); |
WebContents* tab = otr_browser->tab_strip_model()->GetActiveWebContents(); |
@@ -72,7 +73,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_IncognitoYesScript) { |
// Open incognito window and navigate to test page. |
Browser* otr_browser = ui_test_utils::OpenURLOffTheRecord( |
browser()->profile(), |
- test_server()->GetURL("files/extensions/test_file.html")); |
+ embedded_test_server()->GetURL("/extensions/test_file.html")); |
WebContents* tab = otr_browser->tab_strip_model()->GetActiveWebContents(); |
@@ -109,7 +110,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Incognito) { |
// Open incognito window and navigate to test page. |
ui_test_utils::OpenURLOffTheRecord( |
browser()->profile(), |
- test_server()->GetURL("files/extensions/test_file.html")); |
+ embedded_test_server()->GetURL("/extensions/test_file.html")); |
ASSERT_TRUE(LoadExtensionIncognito(test_data_dir_ |
.AppendASCII("incognito").AppendASCII("apis"))); |
@@ -142,7 +143,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, IncognitoSplitMode) { |
// Open incognito window and navigate to test page. |
ui_test_utils::OpenURLOffTheRecord( |
browser()->profile(), |
- test_server()->GetURL("files/extensions/test_file.html")); |
+ embedded_test_server()->GetURL("/extensions/test_file.html")); |
ASSERT_TRUE(LoadExtensionIncognito(test_data_dir_ |
.AppendASCII("incognito").AppendASCII("split"))); |
@@ -173,7 +174,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, IncognitoDisabled) { |
// Open incognito window and navigate to test page. |
ui_test_utils::OpenURLOffTheRecord( |
browser()->profile(), |
- test_server()->GetURL("files/extensions/test_file.html")); |
+ embedded_test_server()->GetURL("/extensions/test_file.html")); |
ASSERT_TRUE(LoadExtension(test_data_dir_ |
.AppendASCII("incognito").AppendASCII("apis_disabled"))); |
@@ -200,7 +201,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_IncognitoPopup) { |
// Open incognito window and navigate to test page. |
Browser* incognito_browser = ui_test_utils::OpenURLOffTheRecord( |
browser()->profile(), |
- test_server()->GetURL("files/extensions/test_file.html")); |
+ embedded_test_server()->GetURL("/extensions/test_file.html")); |
// Simulate the incognito's browser action being clicked. |
BrowserActionTestUtil(incognito_browser).Press(0); |