From 52a261f59b20e89f8c5936bce642362f8e367b57 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Tue, 3 Mar 2009 15:01:12 +0000 Subject: NO CODE CHANGE (except one global std::wstring changed to const wchar_t* const per style compliance). Preliminary work to enforce new PRESUBMIT.py rules: - <=80 cols - no trailing whitespaces - svn:eol-style=LF git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10791 0039d316-1c4b-4281-b951-d872f2087c98 --- base/idletimer_unittest.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'base/idletimer_unittest.cc') diff --git a/base/idletimer_unittest.cc b/base/idletimer_unittest.cc index 06166fb..07a8bbd 100644 --- a/base/idletimer_unittest.cc +++ b/base/idletimer_unittest.cc @@ -25,7 +25,7 @@ static Time mock_timer_started; bool MockIdleTimeSource(int32 *milliseconds_interval_since_last_event) { TimeDelta delta = Time::Now() - mock_timer_started; - *milliseconds_interval_since_last_event = + *milliseconds_interval_since_last_event = static_cast(delta.InMilliseconds()); return true; } @@ -112,7 +112,7 @@ TEST_F(IdleTimerTest, NoRepeatFlipIdleOnce) { base::OneShotTimer t1; t1.Start(TimeDelta::FromMilliseconds(10 * kSafeTestIntervalMs), &finish_task, &TestFinishedTask::Run); - + base::OneShotTimer t2; t2.Start(TimeDelta::FromMilliseconds(4 * kSafeTestIntervalMs), &reset_task, &ResetIdleTask::Run); @@ -138,7 +138,7 @@ TEST_F(IdleTimerTest, NoRepeatNotIdle) { base::OneShotTimer t; t.Start(TimeDelta::FromMilliseconds(10 * kSafeTestIntervalMs), &finish_task, &TestFinishedTask::Run); - + base::RepeatingTimer reset_timer; reset_timer.Start(TimeDelta::FromMilliseconds(50), &reset_task, &ResetIdleTask::Run); @@ -194,7 +194,7 @@ TEST_F(IdleTimerTest, RepeatIdleReset) { base::OneShotTimer t1; t1.Start(TimeDelta::FromMilliseconds(10 * kSafeTestIntervalMs), &finish_task, &TestFinishedTask::Run); - + base::OneShotTimer t2; t2.Start(TimeDelta::FromMilliseconds(5 * kSafeTestIntervalMs), &reset_task, &ResetIdleTask::Run); @@ -224,7 +224,7 @@ TEST_F(IdleTimerTest, RepeatNotIdle) { base::OneShotTimer t; t.Start(TimeDelta::FromMilliseconds(8 * kSafeTestIntervalMs), &finish_task, &TestFinishedTask::Run); - + base::RepeatingTimer reset_timer; reset_timer.Start(TimeDelta::FromMilliseconds(50), &reset_task, &ResetIdleTask::Run); -- cgit v1.1