summaryrefslogtreecommitdiffstats
path: root/extensions/shell/test
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/shell/test')
-rw-r--r--extensions/shell/test/DEPS1
-rw-r--r--extensions/shell/test/shell_test_launcher_delegate.cc4
2 files changed, 5 insertions, 0 deletions
diff --git a/extensions/shell/test/DEPS b/extensions/shell/test/DEPS
index 4759ee0..91f7528 100644
--- a/extensions/shell/test/DEPS
+++ b/extensions/shell/test/DEPS
@@ -1,5 +1,6 @@
include_rules = [
"+content/public/browser",
+ "+content/shell/common",
# Testing utilities can access anything in extensions/shell.
"+extensions/shell",
diff --git a/extensions/shell/test/shell_test_launcher_delegate.cc b/extensions/shell/test/shell_test_launcher_delegate.cc
index ce7bc59..8828c03 100644
--- a/extensions/shell/test/shell_test_launcher_delegate.cc
+++ b/extensions/shell/test/shell_test_launcher_delegate.cc
@@ -4,7 +4,9 @@
#include "extensions/shell/test/shell_test_launcher_delegate.h"
+#include "base/command_line.h"
#include "base/test/test_suite.h"
+#include "content/shell/common/shell_switches.h"
#include "extensions/shell/app/shell_main_delegate.h"
namespace extensions {
@@ -16,6 +18,8 @@ int AppShellTestLauncherDelegate::RunTestSuite(int argc, char** argv) {
bool AppShellTestLauncherDelegate::AdjustChildProcessCommandLine(
base::CommandLine* command_line,
const base::FilePath& temp_data_dir) {
+ command_line->AppendSwitchPath(switches::kContentShellDataPath,
+ temp_data_dir);
return true;
}