| 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 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // Defines a basic test suite framework for running gtest based tests. You can | 9 // Defines a basic test suite framework for running gtest based tests. You can |
| 10 // instantiate this class in your main function and call its Run method to run | 10 // instantiate this class in your main function and call its Run method to run |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual void Shutdown(); | 80 virtual void Shutdown(); |
| 81 | 81 |
| 82 // Make sure that we setup an AtExitManager so Singleton objects will be | 82 // Make sure that we setup an AtExitManager so Singleton objects will be |
| 83 // destroyed. | 83 // destroyed. |
| 84 scoped_ptr<base::AtExitManager> at_exit_manager_; | 84 scoped_ptr<base::AtExitManager> at_exit_manager_; |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 // Basic initialization for the test suite happens here. | 87 // Basic initialization for the test suite happens here. |
| 88 void PreInitialize(int argc, char** argv, bool create_at_exit_manager); | 88 void PreInitialize(int argc, char** argv, bool create_at_exit_manager); |
| 89 | 89 |
| 90 bool initialized_command_line_; |
| 91 |
| 90 DISALLOW_COPY_AND_ASSIGN(TestSuite); | 92 DISALLOW_COPY_AND_ASSIGN(TestSuite); |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace base | 95 } // namespace base |
| 94 | 96 |
| 95 // TODO(brettw) remove this. This is a temporary hack to allow WebKit to compile | 97 // TODO(brettw) remove this. This is a temporary hack to allow WebKit to compile |
| 96 // until we can update it to use "base::" (preventing a two-sided patch). | 98 // until we can update it to use "base::" (preventing a two-sided patch). |
| 97 using base::TestSuite; | 99 using base::TestSuite; |
| 98 | 100 |
| 99 #endif // BASE_TEST_TEST_SUITE_H_ | 101 #endif // BASE_TEST_TEST_SUITE_H_ |
| OLD | NEW |