Index: chrome/browser/extensions/content_script_apitest.cc |
diff --git a/chrome/browser/extensions/content_script_apitest.cc b/chrome/browser/extensions/content_script_apitest.cc |
index 1bd0dcefa1a9b58ab594f2903900354e704d516d..45be6f56d801e1b3b9a39a0f3b66eab5c039cc1b 100644 |
--- a/chrome/browser/extensions/content_script_apitest.cc |
+++ b/chrome/browser/extensions/content_script_apitest.cc |
@@ -16,6 +16,7 @@ |
#include "content/public/test/browser_test_utils.h" |
#include "googleurl/src/gurl.h" |
#include "net/dns/mock_host_resolver.h" |
+#include "net/test/embedded_test_server/embedded_test_server.h" |
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptAllFrames) { |
ASSERT_TRUE(StartTestServer()); |
@@ -133,13 +134,17 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptExtensionAPIs) { |
ResultCatcher catcher; |
ui_test_utils::NavigateToURL( |
- browser(), test_server()->GetURL("functions.html")); |
+ browser(), |
+ embedded_test_server()->GetURL( |
+ "/extensions/api_test/content_scripts/extension_api/functions.html")); |
EXPECT_TRUE(catcher.GetNextResult()); |
// Navigate to a page that will cause a content script to run that starts |
// listening for an extension event. |
ui_test_utils::NavigateToURL( |
- browser(), test_server()->GetURL("events.html")); |
+ browser(), |
+ embedded_test_server()->GetURL( |
+ "/extensions/api_test/content_scripts/extension_api/events.html")); |
// Navigate to an extension page that will fire the event events.js is |
// listening for. |