OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_FRAME_TEST_RELIABILITY_RELIABILITY_TEST_SUITE_H_ | 5 #ifndef CHROME_FRAME_TEST_RELIABILITY_RELIABILITY_TEST_SUITE_H_ |
6 #define CHROME_FRAME_TEST_RELIABILITY_RELIABILITY_TEST_SUITE_H_ | 6 #define CHROME_FRAME_TEST_RELIABILITY_RELIABILITY_TEST_SUITE_H_ |
7 | 7 |
| 8 #include <objbase.h> |
| 9 |
8 #include "chrome_frame/test/reliability/page_load_test.h" | 10 #include "chrome_frame/test/reliability/page_load_test.h" |
9 #include "chrome/test/ui/ui_test_suite.h" | 11 #include "chrome/test/ui/ui_test_suite.h" |
10 | 12 |
11 class ReliabilityTestSuite : public UITestSuite { | 13 class ReliabilityTestSuite : public UITestSuite { |
12 public: | 14 public: |
13 ReliabilityTestSuite(int argc, char** argv) : UITestSuite(argc, argv) { | 15 ReliabilityTestSuite(int argc, char** argv) : UITestSuite(argc, argv) { |
14 } | 16 } |
15 | 17 |
16 protected: | 18 protected: |
17 virtual void Initialize() { | 19 virtual void Initialize() { |
18 CoInitializeEx(NULL, COINIT_MULTITHREADED); | 20 CoInitializeEx(NULL, COINIT_MULTITHREADED); |
19 SetPageRange(*CommandLine::ForCurrentProcess()); | 21 SetPageRange(*CommandLine::ForCurrentProcess()); |
20 UITestSuite::Initialize(); | 22 UITestSuite::Initialize(); |
21 } | 23 } |
22 | 24 |
23 virtual void Shutdown() { | 25 virtual void Shutdown() { |
24 CoUninitialize(); | 26 CoUninitialize(); |
25 UITestSuite::Shutdown(); | 27 UITestSuite::Shutdown(); |
26 } | 28 } |
27 }; | 29 }; |
28 | 30 |
29 #endif // CHROME_FRAME_TEST_RELIABILITY_RELIABILITY_TEST_SUITE_H_ | 31 #endif // CHROME_FRAME_TEST_RELIABILITY_RELIABILITY_TEST_SUITE_H_ |
30 | 32 |
OLD | NEW |