Index: chrome/browser/extensions/api/runtime/runtime_apitest.cc |
diff --git a/chrome/browser/extensions/api/runtime/runtime_apitest.cc b/chrome/browser/extensions/api/runtime/runtime_apitest.cc |
index 55f0d2a10521901b4f099343373465df09b51554..c2c17bec8c8567351e11d76ca3f762be1870629c 100644 |
--- a/chrome/browser/extensions/api/runtime/runtime_apitest.cc |
+++ b/chrome/browser/extensions/api/runtime/runtime_apitest.cc |
@@ -6,6 +6,7 @@ |
#include "chrome/browser/extensions/extension_apitest.h" |
#include "chrome/browser/extensions/extension_function_test_utils.h" |
#include "chrome/test/base/ui_test_utils.h" |
+#include "net/test/embedded_test_server/embedded_test_server.h" |
// Tests the privileged components of chrome.runtime. |
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimePrivileged) { |
@@ -14,14 +15,14 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimePrivileged) { |
// Tests the unprivileged components of chrome.runtime. |
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimeUnprivileged) { |
- ASSERT_TRUE(StartTestServer()); |
+ ASSERT_TRUE(StartEmbeddedTestServer()); |
ASSERT_TRUE( |
LoadExtension(test_data_dir_.AppendASCII("runtime/content_script"))); |
// The content script runs on webpage.html. |
ResultCatcher catcher; |
ui_test_utils::NavigateToURL(browser(), |
- test_server()->GetURL("webpage.html")); |
+ embedded_test_server()->GetURL("/webpage.html")); |
EXPECT_TRUE(catcher.GetNextResult()) << message_; |
} |