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

Unified Diff: base/singleton_unittest.cc

Issue 372057: Isolate tests by running AtExit callbacks between them. (Closed)
Patch Set: fix Linux hang Created 11 years, 1 month 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
« no previous file with comments | « base/lazy_instance_unittest.cc ('k') | base/test/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/singleton_unittest.cc
diff --git a/base/singleton_unittest.cc b/base/singleton_unittest.cc
index c19fa14a32e5da836e13bc785ec36dec50d3f149..bb46bee83bbb16338399ee16b76cc1985ed3abf9 100644
--- a/base/singleton_unittest.cc
+++ b/base/singleton_unittest.cc
@@ -10,11 +10,6 @@
namespace {
-class ShadowingAtExitManager : public base::AtExitManager {
- public:
- ShadowingAtExitManager() : AtExitManager(true) { }
-};
-
COMPILE_ASSERT(DefaultSingletonTraits<int>::kRegisterAtExit == true, a);
template<typename Type>
@@ -134,7 +129,7 @@ TEST_F(SingletonTest, Basic) {
CallbackFunc* leaky_singleton;
{
- ShadowingAtExitManager sem;
+ base::ShadowingAtExitManager sem;
{
singleton_int_1 = SingletonInt1();
}
@@ -193,7 +188,7 @@ TEST_F(SingletonTest, Basic) {
DefaultSingletonTraits<CallbackFunc>::Delete(leaky_singleton);
{
- ShadowingAtExitManager sem;
+ base::ShadowingAtExitManager sem;
// Verifiy that the variables were reset.
{
singleton_int_1 = SingletonInt1();
« no previous file with comments | « base/lazy_instance_unittest.cc ('k') | base/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698