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

Unified 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 side-by-side diff with in-line comments
Download patch
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_
« 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