Elim cr-checkbox
[chromium-blink-merge.git] / extensions / shell / test / shell_test_launcher_delegate.cc
blob8828c0330da603ffeda0f5673e6d9092ef25fa0f
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "extensions/shell/test/shell_test_launcher_delegate.h"
7 #include "base/command_line.h"
8 #include "base/test/test_suite.h"
9 #include "content/shell/common/shell_switches.h"
10 #include "extensions/shell/app/shell_main_delegate.h"
12 namespace extensions {
14 int AppShellTestLauncherDelegate::RunTestSuite(int argc, char** argv) {
15 return base::TestSuite(argc, argv).Run();
18 bool AppShellTestLauncherDelegate::AdjustChildProcessCommandLine(
19 base::CommandLine* command_line,
20 const base::FilePath& temp_data_dir) {
21 command_line->AppendSwitchPath(switches::kContentShellDataPath,
22 temp_data_dir);
23 return true;
26 content::ContentMainDelegate*
27 AppShellTestLauncherDelegate::CreateContentMainDelegate() {
28 return new ShellMainDelegate();
31 } // namespace extensions