Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: base/test/unit_test.h

Issue 10582012: For unit tests, track additions to AtExitManager and warn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« no previous file with comments | « base/base.gyp ('k') | base/test/unit_test.cc » ('j') | content/public/test/test_renderer_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698