Chromium Code Reviews| Index: base/test/unit_test.h |
| diff --git a/base/test/unit_test.h b/base/test/unit_test.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c0109dde07ffd7501cfb25815da2f1923a2776bb |
| --- /dev/null |
| +++ b/base/test/unit_test.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef BASE_TEST_UNIT_TEST_H_ |
| +#define BASE_TEST_UNIT_TEST_H_ |
| +#pragma once |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "testing/gtest/include/gtest/gtest.h" |
| + |
| +namespace base { |
| + |
| +class AtExitManager; |
| + |
| +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
|
| + public: |
| + UnitTest(); |
| + virtual ~UnitTest(); |
| + |
| + protected: |
| + // testing::Test |
| + virtual void SetUp() OVERRIDE; |
| + virtual void TearDown() OVERRIDE; |
| + |
| + private: |
| + base::AtExitManager* initial_top_manager_; |
| + size_t at_exit_stack_size_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(UnitTest); |
| +}; |
| + |
| +} // namespace base |
| + |
| +#endif // BASE_TEST_UNIT_TEST_H_ |