Chromium Code Reviews| Index: apps/test/apps_test_launcher_delegate.cc |
| diff --git a/apps/test/apps_test_launcher_delegate.cc b/apps/test/apps_test_launcher_delegate.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d8b4dd58f3adb6ecbdfe8587b8087eb8f04434ef |
| --- /dev/null |
| +++ b/apps/test/apps_test_launcher_delegate.cc |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "apps/test/apps_test_launcher_delegate.h" |
| + |
| +#include "apps/shell/app/shell_main_delegate.h" |
| +#include "apps/test/apps_test_suite_base.h" |
| +#include "base/command_line.h" |
| +#include "content/public/app/content_main_delegate.h" |
|
jam
2014/03/20 16:58:13
nit: not needd. also the previous include i think
Yoyo Zhou
2014/03/20 21:17:30
Done.
|
| + |
| +namespace apps { |
| + |
| +int AppsTestLauncherDelegate::RunTestSuite(int argc, char** argv) { |
| + return AppsTestSuiteBase(argc, argv).Run(); |
|
jam
2014/03/20 16:58:13
just call content::ContentTestSuiteBase(argc, argv
Yoyo Zhou
2014/03/20 21:17:30
Why is ContentTestSuiteBase's constructor protecte
jam
2014/03/20 23:43:22
I think because before, you always needed to deriv
|
| +} |
| + |
| +bool AppsTestLauncherDelegate::AdjustChildProcessCommandLine( |
| + base::CommandLine* command_line, |
| + const base::FilePath& temp_data_dir) { |
| + return true; |
| +} |
| + |
| +content::ContentMainDelegate* |
| +AppsTestLauncherDelegate::CreateContentMainDelegate() { |
| + return new ShellMainDelegate(); |
| +} |
| + |
| +} // namespace apps |