diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-26 23:08:02 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-26 23:08:02 +0000 |
commit | 2fdc86af6441d62cf6f3af049ac4cab1984d5323 (patch) | |
tree | 4a548a889f1c261676bdd4b6ccbca4255cea1c5e /base/timer_unittest.cc | |
parent | 7e7a62b46abc05baaa5e969fd64cff485857c1b6 (diff) | |
download | chromium_src-2fdc86af6441d62cf6f3af049ac4cab1984d5323.zip chromium_src-2fdc86af6441d62cf6f3af049ac4cab1984d5323.tar.gz chromium_src-2fdc86af6441d62cf6f3af049ac4cab1984d5323.tar.bz2 |
Style cleanup in preparation for auto-linting base/.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/552004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/timer_unittest.cc')
-rw-r--r-- | base/timer_unittest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/timer_unittest.cc b/base/timer_unittest.cc index 8c18947..9a77b02 100644 --- a/base/timer_unittest.cc +++ b/base/timer_unittest.cc @@ -34,7 +34,7 @@ class OneShotTimerTester { class OneShotSelfDeletingTimerTester { public: - OneShotSelfDeletingTimerTester(bool* did_run) : + explicit OneShotSelfDeletingTimerTester(bool* did_run) : did_run_(did_run), timer_(new base::OneShotTimer<OneShotSelfDeletingTimerTester>()) { } @@ -54,8 +54,10 @@ class OneShotSelfDeletingTimerTester { class RepeatingTimerTester { public: - RepeatingTimerTester(bool* did_run) : did_run_(did_run), counter_(10) { + explicit RepeatingTimerTester(bool* did_run) + : did_run_(did_run), counter_(10) { } + void Start() { timer_.Start(TimeDelta::FromMilliseconds(10), this, &RepeatingTimerTester::Run); |