Index: chrome/browser/extensions/lazy_background_page_apitest.cc |
diff --git a/chrome/browser/extensions/lazy_background_page_apitest.cc b/chrome/browser/extensions/lazy_background_page_apitest.cc |
index 8bb4b11123430428f986036cec8d0def669be248..22964d28bc4e1ad402f8ed6cec15b5a5527a807d 100644 |
--- a/chrome/browser/extensions/lazy_background_page_apitest.cc |
+++ b/chrome/browser/extensions/lazy_background_page_apitest.cc |
@@ -30,6 +30,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" |
using extensions::Extension; |
@@ -159,7 +160,7 @@ IN_PROC_BROWSER_TEST_F(LazyBackgroundPageApiTest, BroadcastEvent) { |
chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED, |
content::NotificationService::AllSources()); |
ui_test_utils::NavigateToURL( |
- browser(), test_server()->GetURL("files/extensions/test_file.html")); |
+ browser(), embedded_test_server()->GetURL("/extensions/test_file.html")); |
page_complete.Wait(); |
EXPECT_FALSE(pm->GetBackgroundHostForExtension(last_loaded_extension_id_)); |
@@ -183,7 +184,7 @@ IN_PROC_BROWSER_TEST_F(LazyBackgroundPageApiTest, Filters) { |
// Open a tab to a URL that will fire a webNavigation event. |
LazyBackgroundObserver page_complete; |
ui_test_utils::NavigateToURL( |
- browser(), test_server()->GetURL("files/extensions/test_file.html")); |
+ browser(), embedded_test_server()->GetURL("/extensions/test_file.html")); |
page_complete.Wait(); |
} |
@@ -389,7 +390,7 @@ IN_PROC_BROWSER_TEST_F(LazyBackgroundPageApiTest, Messaging) { |
ResultCatcher catcher; |
LazyBackgroundObserver lazybg; |
ui_test_utils::NavigateToURL( |
- browser(), test_server()->GetURL("files/extensions/test_file.html")); |
+ browser(), embedded_test_server()->GetURL("/extensions/test_file.html")); |
lazybg.WaitUntilLoaded(); |
// Background page got the content script's message and is still loaded |