Index: chrome/browser/extensions/platform_app_browsertest.cc |
diff --git a/chrome/browser/extensions/platform_app_browsertest.cc b/chrome/browser/extensions/platform_app_browsertest.cc |
index 9d3748e03fb95b3965163ae4ae211d944e068005..03b046cdc7814b4fc4a2659d3895179c050e2d04 100644 |
--- a/chrome/browser/extensions/platform_app_browsertest.cc |
+++ b/chrome/browser/extensions/platform_app_browsertest.cc |
@@ -42,6 +42,7 @@ |
#include "content/public/browser/render_widget_host_view.h" |
#include "content/public/browser/web_contents_view.h" |
#include "content/public/test/test_utils.h" |
+#include "net/test/embedded_test_server/embedded_test_server.h" |
#include "googleurl/src/gurl.h" |
using content::WebContents; |
@@ -303,7 +304,7 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, AppWithContextMenuClicked) { |
IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DisallowNavigation) { |
TabsAddedNotificationObserver observer(2); |
- ASSERT_TRUE(StartTestServer()); |
+ ASSERT_TRUE(StartEmbeddedTestServer()); |
ASSERT_TRUE(RunPlatformAppTest("platform_apps/navigation")) << message_; |
observer.Wait(); |
@@ -315,7 +316,7 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DisallowNavigation) { |
} |
IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, Iframes) { |
- ASSERT_TRUE(StartTestServer()); |
+ ASSERT_TRUE(StartEmbeddedTestServer()); |
ASSERT_TRUE(RunPlatformAppTest("platform_apps/iframes")) << message_; |
} |
@@ -342,11 +343,11 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, PlatformAppsOnly) { |
// Tests that platform apps have isolated storage by default. |
IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, Isolation) { |
- ASSERT_TRUE(StartTestServer()); |
+ ASSERT_TRUE(StartEmbeddedTestServer()); |
// Load a (non-app) page under the "localhost" origin that sets a cookie. |
- GURL set_cookie_url = test_server()->GetURL( |
- "files/extensions/platform_apps/isolation/set_cookie.html"); |
+ GURL set_cookie_url = embedded_test_server()->GetURL( |
+ "/extensions/platform_apps/isolation/set_cookie.html"); |
GURL::Replacements replace_host; |
std::string host_str("localhost"); // Must stay in scope with replace_host. |
replace_host.SetHostStr(host_str); |
@@ -607,7 +608,7 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, GetDisplayPath) { |
#endif // defined(OS_CHROMEOS) |
IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, OpenLink) { |
- ASSERT_TRUE(StartTestServer()); |
+ ASSERT_TRUE(StartEmbeddedTestServer()); |
content::WindowedNotificationObserver observer( |
chrome::NOTIFICATION_TAB_ADDED, |
content::Source<content::WebContentsDelegate>(browser())); |