Chromium Code Reviews| 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_ |