diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 15:01:12 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 15:01:12 +0000 |
commit | 52a261f59b20e89f8c5936bce642362f8e367b57 (patch) | |
tree | fcc7b3c100caaf43848cd9a241beafc883f93b7d /base/idletimer_unittest.cc | |
parent | 7d926f9072ac496db6df715cc6a6bd5d3f9bd011 (diff) | |
download | chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.zip chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.gz chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.bz2 |
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
Diffstat (limited to 'base/idletimer_unittest.cc')
-rw-r--r-- | base/idletimer_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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<int32>(delta.InMilliseconds()); return true; } @@ -112,7 +112,7 @@ TEST_F(IdleTimerTest, NoRepeatFlipIdleOnce) { base::OneShotTimer<TestFinishedTask> t1; t1.Start(TimeDelta::FromMilliseconds(10 * kSafeTestIntervalMs), &finish_task, &TestFinishedTask::Run); - + base::OneShotTimer<ResetIdleTask> t2; t2.Start(TimeDelta::FromMilliseconds(4 * kSafeTestIntervalMs), &reset_task, &ResetIdleTask::Run); @@ -138,7 +138,7 @@ TEST_F(IdleTimerTest, NoRepeatNotIdle) { base::OneShotTimer<TestFinishedTask> t; t.Start(TimeDelta::FromMilliseconds(10 * kSafeTestIntervalMs), &finish_task, &TestFinishedTask::Run); - + base::RepeatingTimer<ResetIdleTask> reset_timer; reset_timer.Start(TimeDelta::FromMilliseconds(50), &reset_task, &ResetIdleTask::Run); @@ -194,7 +194,7 @@ TEST_F(IdleTimerTest, RepeatIdleReset) { base::OneShotTimer<TestFinishedTask> t1; t1.Start(TimeDelta::FromMilliseconds(10 * kSafeTestIntervalMs), &finish_task, &TestFinishedTask::Run); - + base::OneShotTimer<ResetIdleTask> t2; t2.Start(TimeDelta::FromMilliseconds(5 * kSafeTestIntervalMs), &reset_task, &ResetIdleTask::Run); @@ -224,7 +224,7 @@ TEST_F(IdleTimerTest, RepeatNotIdle) { base::OneShotTimer<TestFinishedTask> t; t.Start(TimeDelta::FromMilliseconds(8 * kSafeTestIntervalMs), &finish_task, &TestFinishedTask::Run); - + base::RepeatingTimer<ResetIdleTask> reset_timer; reset_timer.Start(TimeDelta::FromMilliseconds(50), &reset_task, &ResetIdleTask::Run); |