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_BASE_CHROME_TEST_SUITE_H_ | 5 #ifndef CHROME_TEST_BASE_CHROME_TEST_SUITE_H_ |
6 #define CHROME_TEST_BASE_CHROME_TEST_SUITE_H_ | 6 #define CHROME_TEST_BASE_CHROME_TEST_SUITE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/metrics/histogram.h" |
13 #include "base/test/test_suite.h" | 14 #include "base/test/test_suite.h" |
14 #include "chrome/app/scoped_ole_initializer.h" | 15 #include "chrome/app/scoped_ole_initializer.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class StatsTable; | 18 class StatsTable; |
18 } | 19 } |
19 | 20 |
20 class ChromeTestSuite : public base::TestSuite { | 21 class ChromeTestSuite : public base::TestSuite { |
21 public: | 22 public: |
22 ChromeTestSuite(int argc, char** argv); | 23 ChromeTestSuite(int argc, char** argv); |
23 virtual ~ChromeTestSuite(); | 24 virtual ~ChromeTestSuite(); |
24 | 25 |
25 protected: | 26 protected: |
26 virtual void Initialize() OVERRIDE; | 27 virtual void Initialize() OVERRIDE; |
27 virtual void Shutdown() OVERRIDE; | 28 virtual void Shutdown() OVERRIDE; |
28 | 29 |
29 void SetBrowserDirectory(const FilePath& browser_dir) { | 30 void SetBrowserDirectory(const FilePath& browser_dir) { |
30 browser_dir_ = browser_dir; | 31 browser_dir_ = browser_dir; |
31 } | 32 } |
32 | 33 |
33 // Alternative path to browser binaries. | 34 // Alternative path to browser binaries. |
34 FilePath browser_dir_; | 35 FilePath browser_dir_; |
35 | 36 |
36 std::string stats_filename_; | 37 std::string stats_filename_; |
37 scoped_ptr<base::StatsTable> stats_table_; | 38 scoped_ptr<base::StatsTable> stats_table_; |
38 | 39 |
39 ScopedOleInitializer ole_initializer_; | 40 ScopedOleInitializer ole_initializer_; |
| 41 base::StatisticsRecorder stats_recorder_; |
40 }; | 42 }; |
41 | 43 |
42 #endif // CHROME_TEST_BASE_CHROME_TEST_SUITE_H_ | 44 #endif // CHROME_TEST_BASE_CHROME_TEST_SUITE_H_ |
OLD | NEW |