Index: chrome/browser/extensions/cross_origin_xhr_apitest.cc |
diff --git a/chrome/browser/extensions/cross_origin_xhr_apitest.cc b/chrome/browser/extensions/cross_origin_xhr_apitest.cc |
index eae682f02bf30c51b50f0c76ed8a83d54df2fb0c..2514c7bed9de8339b3dfa7cf0c30bce59c5193be 100644 |
--- a/chrome/browser/extensions/cross_origin_xhr_apitest.cc |
+++ b/chrome/browser/extensions/cross_origin_xhr_apitest.cc |
@@ -5,9 +5,13 @@ |
#include "chrome/browser/extensions/extension_apitest.h" |
#include "net/dns/mock_host_resolver.h" |
+const base::FilePath::CharType kFtpDocRoot[] = |
+ FILE_PATH_LITERAL("chrome/test/data"); |
+ |
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CrossOriginXHRBackgroundPage) { |
host_resolver()->AddRule("*.com", "127.0.0.1"); |
ASSERT_TRUE(StartEmbeddedTestServer()); |
+ ASSERT_TRUE(StartFTPServer(base::FilePath(kFtpDocRoot))); |
ASSERT_TRUE(RunExtensionTest("cross_origin_xhr/background_page")) << message_; |
} |
@@ -20,6 +24,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CrossOriginXHRAllURLs) { |
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CrossOriginXHRContentScript) { |
host_resolver()->AddRule("*.com", "127.0.0.1"); |
ASSERT_TRUE(StartEmbeddedTestServer()); |
+ ASSERT_TRUE(StartFTPServer(base::FilePath(kFtpDocRoot))); |
ASSERT_TRUE(RunExtensionTest("cross_origin_xhr/content_script")) << message_; |
} |