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