From fb48b6ef0bda9be8103fe6080837f488e219b89a Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Tue, 28 Jul 2009 20:37:55 +0000 Subject: Reset static data in Watchdog to better isolate the tests. TEST=none http://crbug.com/17839 Review URL: http://codereview.chromium.org/160217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21883 0039d316-1c4b-4281-b951-d872f2087c98 --- base/watchdog.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base/watchdog.h') diff --git a/base/watchdog.h b/base/watchdog.h index 59ee80c..fa60316 100644 --- a/base/watchdog.h +++ b/base/watchdog.h @@ -48,6 +48,10 @@ class Watchdog { DLOG(INFO) << "Watchdog alarmed for " << thread_watched_name_; } + // Reset static data to initial state. Useful for tests, to ensure + // they are independent. + static void ResetStaticData(); + private: class ThreadDelegate : public PlatformThread::Delegate { public: -- cgit v1.1