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

Unified Diff: base/at_exit.h

Issue 10582012: For unit tests, track additions to AtExitManager and warn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cause an error; for trybot run. Ignore. Created 8 years, 6 months 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/test/test_suite.h » ('j') | base/test/test_suite.cc » ('J')
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 613c9fe7d1729f8a9590e50abc3f8547c0676bb8..a63acc8b5f321c93dd7c9b4e3cbc2a95c7ee6f48 100644
--- a/base/at_exit.h
+++ b/base/at_exit.h
@@ -15,6 +15,8 @@
namespace base {
+class TestWatchAtExitManager;
+
// This class provides a facility similar to the CRT atexit(), except that
// we control when the callbacks are executed. Under Windows for a DLL they
// happen at a really bad time and under the loader lock. This facility is
@@ -58,6 +60,8 @@ class BASE_EXPORT AtExitManager {
explicit AtExitManager(bool shadow);
private:
+ friend class TestWatchAtExitManager;
+
base::Lock lock_;
std::stack<base::Closure> stack_;
AtExitManager* next_manager_; // Stack of managers to allow shadowing.
« no previous file with comments | « no previous file | base/test/test_suite.h » ('j') | base/test/test_suite.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698