Index: chrome/test/base/in_process_browser_test.cc |
diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc |
index eef8f84575df1c02f74abbd85ea305dce2f96eb4..07987ff2b51cfb35026180799515d448c45b23cc 100644 |
--- a/chrome/test/base/in_process_browser_test.cc |
+++ b/chrome/test/base/in_process_browser_test.cc |
@@ -49,6 +49,7 @@ |
#include "content/public/test/test_launcher.h" |
#include "content/public/test/test_navigation_observer.h" |
#include "net/dns/mock_host_resolver.h" |
+#include "net/test/embedded_test_server/embedded_test_server.h" |
#include "net/test/spawned_test_server/spawned_test_server.h" |
#include "ui/compositor/compositor_switches.h" |
@@ -135,6 +136,10 @@ InProcessBrowserTest::InProcessBrowserTest() |
CHECK(PathService::Override(base::FILE_EXE, chrome_path)); |
#endif // defined(OS_MACOSX) |
CreateTestServer(base::FilePath(FILE_PATH_LITERAL("chrome/test/data"))); |
+ base::FilePath src_dir; |
+ CHECK(PathService::Get(base::DIR_SOURCE_ROOT, &src_dir)); |
+ embedded_test_server()->ServeFilesFromDirectory( |
+ src_dir.AppendASCII("chrome/test/data")); |
} |
InProcessBrowserTest::~InProcessBrowserTest() { |