From 2098a11caf01a65cd23f0356a8e7a072fc547232 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Thu, 12 Nov 2009 07:34:56 +0000 Subject: [GTTF] Make WatchdogTest.DisarmTest faster by about 2s by really making the alarm instantly go off. TEST=none BUG=none Review URL: http://codereview.chromium.org/377029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31774 0039d316-1c4b-4281-b951-d872f2087c98 --- base/watchdog_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base/watchdog_unittest.cc') diff --git a/base/watchdog_unittest.cc b/base/watchdog_unittest.cc index 3ecfa7d..f16c564 100644 --- a/base/watchdog_unittest.cc +++ b/base/watchdog_unittest.cc @@ -114,7 +114,7 @@ TEST_F(WatchdogTest, DisarmTest) { // ...but even after disarming, we can still use the alarm... // Set a time greater than the timeout into the past. - watchdog.ArmSomeTimeDeltaAgo(TimeDelta::FromSeconds(2)); + watchdog.ArmSomeTimeDeltaAgo(TimeDelta::FromSeconds(10)); // It should almost instantly go off, but certainly in less than 5 minutes. SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(TimeDelta::FromMinutes(5), watchdog.alarm_counter() > 0); -- cgit v1.1