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 BASE_TEST_TEST_SUITE_H_ | 5 #ifndef BASE_TEST_TEST_SUITE_H_ |
6 #define BASE_TEST_TEST_SUITE_H_ | 6 #define BASE_TEST_TEST_SUITE_H_ |
7 | 7 |
8 // Defines a basic test suite framework for running gtest based tests. You can | 8 // Defines a basic test suite framework for running gtest based tests. You can |
9 // instantiate this class in your main function and call its Run method to run | 9 // instantiate this class in your main function and call its Run method to run |
10 // any gtest based tests that are linked into your executable. | 10 // any gtest based tests that are linked into your executable. |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/at_exit.h" | 14 #include "base/at_exit.h" |
| 15 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/test/trace_to_file.h" | 17 #include "base/test/trace_to_file.h" |
| 18 #include "build/build_config.h" |
17 | 19 |
18 namespace testing { | 20 namespace testing { |
19 class TestInfo; | 21 class TestInfo; |
20 } | 22 } |
21 | 23 |
22 namespace base { | 24 namespace base { |
23 | 25 |
24 // Instantiates TestSuite, runs it and returns exit code. | 26 // Instantiates TestSuite, runs it and returns exit code. |
25 int RunUnitTestsUsingBaseTestSuite(int argc, char **argv); | 27 int RunUnitTestsUsingBaseTestSuite(int argc, char **argv); |
26 | 28 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 test::TraceToFile trace_to_file_; | 81 test::TraceToFile trace_to_file_; |
80 | 82 |
81 bool initialized_command_line_; | 83 bool initialized_command_line_; |
82 | 84 |
83 DISALLOW_COPY_AND_ASSIGN(TestSuite); | 85 DISALLOW_COPY_AND_ASSIGN(TestSuite); |
84 }; | 86 }; |
85 | 87 |
86 } // namespace base | 88 } // namespace base |
87 | 89 |
88 #endif // BASE_TEST_TEST_SUITE_H_ | 90 #endif // BASE_TEST_TEST_SUITE_H_ |
OLD | NEW |