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

Unified Diff: base/at_exit.h

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 | « no previous file | base/at_exit_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/at_exit.h
diff --git a/base/at_exit.h b/base/at_exit.h
index 0bc34669c8567e8bcea14bf328d829907d57581f..48ba3d9c71de300c7d509f1f132614c808139b98 100644
--- a/base/at_exit.h
+++ b/base/at_exit.h
@@ -66,6 +66,13 @@ class AtExitManager {
DISALLOW_COPY_AND_ASSIGN(AtExitManager);
};
+#if defined(UNIT_TEST)
+class ShadowingAtExitManager : public AtExitManager {
+ public:
+ ShadowingAtExitManager() : AtExitManager(true) {}
+};
+#endif // defined(UNIT_TEST)
+
} // namespace base
#endif // BASE_AT_EXIT_H_
« no previous file with comments | « no previous file | base/at_exit_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698