OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_TEST_UI_UI_TEST_SUITE_H_ | 5 #ifndef CHROME_TEST_UI_UI_TEST_SUITE_H_ |
6 #define CHROME_TEST_UI_UI_TEST_SUITE_H_ | 6 #define CHROME_TEST_UI_UI_TEST_SUITE_H_ |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process/process.h" |
9 #include "chrome/test/base/chrome_test_suite.h" | 9 #include "chrome/test/base/chrome_test_suite.h" |
10 | 10 |
11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
12 #include "base/win/scoped_handle.h" | 12 #include "base/win/scoped_handle.h" |
13 #endif | 13 #endif |
14 | 14 |
15 class UITestSuite : public ChromeTestSuite { | 15 class UITestSuite : public ChromeTestSuite { |
16 public: | 16 public: |
17 UITestSuite(int argc, char** argv); | 17 UITestSuite(int argc, char** argv); |
18 | 18 |
19 protected: | 19 protected: |
20 virtual void Initialize() OVERRIDE; | 20 virtual void Initialize() OVERRIDE; |
21 virtual void Shutdown() OVERRIDE; | 21 virtual void Shutdown() OVERRIDE; |
22 | 22 |
23 private: | 23 private: |
24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
25 void LoadCrashService(); | 25 void LoadCrashService(); |
26 | 26 |
27 base::ProcessHandle crash_service_; | 27 base::ProcessHandle crash_service_; |
28 | 28 |
29 // JobObject used to clean up orphaned child processes. | 29 // JobObject used to clean up orphaned child processes. |
30 base::win::ScopedHandle job_handle_; | 30 base::win::ScopedHandle job_handle_; |
31 #endif | 31 #endif |
32 }; | 32 }; |
33 | 33 |
34 #endif // CHROME_TEST_UI_UI_TEST_SUITE_H_ | 34 #endif // CHROME_TEST_UI_UI_TEST_SUITE_H_ |
OLD | NEW |