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 #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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "content/public/test/content_test_suite_base.h" | 13 #include "content/public/test/content_test_suite_base.h" |
13 | 14 |
14 // Test suite for unit and browser tests. Creates services needed by both. | 15 // Test suite for unit and browser tests. Creates services needed by both. |
15 // See also ChromeUnitTestSuite for additional services created for unit tests. | 16 // See also ChromeUnitTestSuite for additional services created for unit tests. |
16 class ChromeTestSuite : public content::ContentTestSuiteBase { | 17 class ChromeTestSuite : public content::ContentTestSuiteBase { |
17 public: | 18 public: |
18 ChromeTestSuite(int argc, char** argv); | 19 ChromeTestSuite(int argc, char** argv); |
19 ~ChromeTestSuite() override; | 20 ~ChromeTestSuite() override; |
20 | 21 |
21 protected: | 22 protected: |
22 // base::TestSuite overrides: | 23 // base::TestSuite overrides: |
23 void Initialize() override; | 24 void Initialize() override; |
24 void Shutdown() override; | 25 void Shutdown() override; |
25 | 26 |
26 void SetBrowserDirectory(const base::FilePath& browser_dir) { | 27 void SetBrowserDirectory(const base::FilePath& browser_dir) { |
27 browser_dir_ = browser_dir; | 28 browser_dir_ = browser_dir; |
28 } | 29 } |
29 | 30 |
30 // Alternative path to browser binaries. | 31 // Alternative path to browser binaries. |
31 base::FilePath browser_dir_; | 32 base::FilePath browser_dir_; |
32 | 33 |
33 | 34 |
34 DISALLOW_COPY_AND_ASSIGN(ChromeTestSuite); | 35 DISALLOW_COPY_AND_ASSIGN(ChromeTestSuite); |
35 }; | 36 }; |
36 | 37 |
37 #endif // CHROME_TEST_BASE_CHROME_TEST_SUITE_H_ | 38 #endif // CHROME_TEST_BASE_CHROME_TEST_SUITE_H_ |
OLD | NEW |