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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/scoped_temp_dir.h" | 9 #include "base/scoped_temp_dir.h" |
10 #include "base/test/test_file_util.h" | 10 #include "base/test/test_file_util.h" |
11 #include "chrome/app/chrome_main_delegate.h" | 11 #include "chrome/app/chrome_main_delegate.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 #include "chrome/common/chrome_constants.h" | 13 #include "chrome/common/chrome_constants.h" |
14 #include "chrome/test/base/chrome_test_suite.h" | 14 #include "chrome/test/base/chrome_test_suite.h" |
15 #include "content/public/app/content_main.h" | 15 #include "content/public/app/content_main.h" |
16 | 16 |
17 #if defined(OS_MACOSX) | 17 #if defined(OS_MACOSX) |
18 #include "chrome/browser/chrome_browser_application_mac.h" | 18 #include "chrome/browser/chrome_browser_application_mac.h" |
19 #endif // defined(OS_MACOSX) | 19 #endif // defined(OS_MACOSX) |
20 | 20 |
21 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
22 #include "content/public/app/startup_helper_win.h" | 22 #include "content/public/app/startup_helper_win.h" |
23 #include "sandbox/src/sandbox_types.h" | 23 #include "sandbox/win/src/sandbox_types.h" |
24 #endif // defined(OS_WIN) | 24 #endif // defined(OS_WIN) |
25 | 25 |
26 class ChromeTestLauncherDelegate : public test_launcher::TestLauncherDelegate { | 26 class ChromeTestLauncherDelegate : public test_launcher::TestLauncherDelegate { |
27 public: | 27 public: |
28 ChromeTestLauncherDelegate() { | 28 ChromeTestLauncherDelegate() { |
29 } | 29 } |
30 | 30 |
31 virtual ~ChromeTestLauncherDelegate() { | 31 virtual ~ChromeTestLauncherDelegate() { |
32 } | 32 } |
33 | 33 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 private: | 109 private: |
110 ScopedTempDir temp_dir_; | 110 ScopedTempDir temp_dir_; |
111 | 111 |
112 DISALLOW_COPY_AND_ASSIGN(ChromeTestLauncherDelegate); | 112 DISALLOW_COPY_AND_ASSIGN(ChromeTestLauncherDelegate); |
113 }; | 113 }; |
114 | 114 |
115 int main(int argc, char** argv) { | 115 int main(int argc, char** argv) { |
116 ChromeTestLauncherDelegate launcher_delegate; | 116 ChromeTestLauncherDelegate launcher_delegate; |
117 return test_launcher::LaunchTests(&launcher_delegate, argc, argv); | 117 return test_launcher::LaunchTests(&launcher_delegate, argc, argv); |
118 } | 118 } |
OLD | NEW |