Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BASE_TEST_UNIT_TEST_H_ | |
| 6 #define BASE_TEST_UNIT_TEST_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "testing/gtest/include/gtest/gtest.h" | |
| 12 | |
| 13 namespace base { | |
| 14 | |
| 15 class AtExitManager; | |
| 16 | |
| 17 class UnitTest : public testing::Test { | |
|
Scott Byer
2012/06/18 23:45:57
I'm not wedded to the class name here, but this se
| |
| 18 public: | |
| 19 UnitTest(); | |
| 20 virtual ~UnitTest(); | |
| 21 | |
| 22 protected: | |
| 23 // testing::Test | |
| 24 virtual void SetUp() OVERRIDE; | |
| 25 virtual void TearDown() OVERRIDE; | |
| 26 | |
| 27 private: | |
| 28 base::AtExitManager* initial_top_manager_; | |
| 29 size_t at_exit_stack_size_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(UnitTest); | |
| 32 }; | |
| 33 | |
| 34 } // namespace base | |
| 35 | |
| 36 #endif // BASE_TEST_UNIT_TEST_H_ | |
| OLD | NEW |