Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1239)

Unified Diff: base/timer_unittest.cc

Issue 552004: Style cleanup in preparation for auto-linting base/. (Closed)
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/timer.h ('k') | base/trace_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/timer_unittest.cc
diff --git a/base/timer_unittest.cc b/base/timer_unittest.cc
index 8c18947b9b130910cf5d461e85d99214ebdd9e7c..9a77b026a4ba31a83249019f318c310ee0288972 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);
« no previous file with comments | « base/timer.h ('k') | base/trace_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698