diff options
Diffstat (limited to 'base/at_exit.h')
-rw-r--r-- | base/at_exit.h | 7 |
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_ |