summaryrefslogtreecommitdiffstats
path: root/base/at_exit.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/at_exit.h')
-rw-r--r--base/at_exit.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/at_exit.h b/base/at_exit.h
index 0bc3466..48ba3d9 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_