summaryrefslogtreecommitdiffstats
path: root/base/watchdog.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-28 20:37:55 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-28 20:37:55 +0000
commitfb48b6ef0bda9be8103fe6080837f488e219b89a (patch)
tree9d91abb9424cd1da202cc227a89e0d6b3424c062 /base/watchdog.h
parent46564213965397d01fb87975f3bddd597985fcbf (diff)
downloadchromium_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.h4
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: