diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 20:37:55 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 20:37:55 +0000 |
commit | fb48b6ef0bda9be8103fe6080837f488e219b89a (patch) | |
tree | 9d91abb9424cd1da202cc227a89e0d6b3424c062 /base/watchdog.h | |
parent | 46564213965397d01fb87975f3bddd597985fcbf (diff) | |
download | chromium_src-fb48b6ef0bda9be8103fe6080837f488e219b89a.zip chromium_src-fb48b6ef0bda9be8103fe6080837f488e219b89a.tar.gz chromium_src-fb48b6ef0bda9be8103fe6080837f488e219b89a.tar.bz2 |
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
Diffstat (limited to 'base/watchdog.h')
-rw-r--r-- | base/watchdog.h | 4 |
1 files changed, 4 insertions, 0 deletions
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: |