| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/public/test/test_launcher.h" | 5 #include "content/public/test/test_launcher.h" |
| 6 | 6 |
| 7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/scoped_temp_dir.h" | 11 #include "base/scoped_temp_dir.h" |
| 12 #include "base/test/test_suite.h" | 12 #include "base/test/test_suite.h" |
| 13 #include "content/public/app/content_main.h" | 13 #include "content/public/app/content_main.h" |
| 14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
| 15 #include "content/shell/shell_main_delegate.h" | 15 #include "content/shell/shell_main_delegate.h" |
| 16 | 16 |
| 17 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 18 #include "content/public/app/startup_helper_win.h" | 18 #include "content/public/app/startup_helper_win.h" |
| 19 #include "sandbox/src/sandbox_types.h" | 19 #include "sandbox/win/src/sandbox_types.h" |
| 20 #endif // defined(OS_WIN) | 20 #endif // defined(OS_WIN) |
| 21 | 21 |
| 22 class ContentTestLauncherDelegate : public test_launcher::TestLauncherDelegate { | 22 class ContentTestLauncherDelegate : public test_launcher::TestLauncherDelegate { |
| 23 public: | 23 public: |
| 24 ContentTestLauncherDelegate() { | 24 ContentTestLauncherDelegate() { |
| 25 } | 25 } |
| 26 | 26 |
| 27 virtual ~ContentTestLauncherDelegate() { | 27 virtual ~ContentTestLauncherDelegate() { |
| 28 } | 28 } |
| 29 | 29 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 DISALLOW_COPY_AND_ASSIGN(ContentTestLauncherDelegate); | 63 DISALLOW_COPY_AND_ASSIGN(ContentTestLauncherDelegate); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 int main(int argc, char** argv) { | 66 int main(int argc, char** argv) { |
| 67 ContentTestLauncherDelegate launcher_delegate; | 67 ContentTestLauncherDelegate launcher_delegate; |
| 68 return test_launcher::LaunchTests(&launcher_delegate, argc, argv); | 68 return test_launcher::LaunchTests(&launcher_delegate, argc, argv); |
| 69 } | 69 } |
| OLD | NEW |