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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual void SuppressErrorDialogs(); | 68 virtual void SuppressErrorDialogs(); |
69 | 69 |
70 // Override these for custom initialization and shutdown handling. Use these | 70 // Override these for custom initialization and shutdown handling. Use these |
71 // instead of putting complex code in your constructor/destructor. | 71 // instead of putting complex code in your constructor/destructor. |
72 | 72 |
73 virtual void Initialize(); | 73 virtual void Initialize(); |
74 virtual void Shutdown(); | 74 virtual void Shutdown(); |
75 | 75 |
76 // Make sure that we setup an AtExitManager so Singleton objects will be | 76 // Make sure that we setup an AtExitManager so Singleton objects will be |
77 // destroyed. | 77 // destroyed. |
78 base::ShadowingAtExitManager at_exit_manager_; | 78 base::AtExitManager at_exit_manager_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(TestSuite); | 80 DISALLOW_COPY_AND_ASSIGN(TestSuite); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace base | 83 } // namespace base |
84 | 84 |
85 // TODO(brettw) remove this. This is a temporary hack to allow WebKit to compile | 85 // TODO(brettw) remove this. This is a temporary hack to allow WebKit to compile |
86 // until we can update it to use "base::" (preventing a two-sided patch). | 86 // until we can update it to use "base::" (preventing a two-sided patch). |
87 using base::TestSuite; | 87 using base::TestSuite; |
88 | 88 |
89 #endif // BASE_TEST_TEST_SUITE_H_ | 89 #endif // BASE_TEST_TEST_SUITE_H_ |
OLD | NEW |