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

Unified Diff: base/stats_table_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/stack_container_unittest.cc ('k') | base/string_piece.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/stats_table_unittest.cc
diff --git a/base/stats_table_unittest.cc b/base/stats_table_unittest.cc
index e321f208a9e9a1a5d0b95b0cd61129eedc1fd29b..a91d70ed7e4035431b8ec86bbab82204bf80a98a 100644
--- a/base/stats_table_unittest.cc
+++ b/base/stats_table_unittest.cc
@@ -242,7 +242,7 @@ TEST_F(StatsTableTest, MultipleProcesses) {
class MockStatsCounter : public StatsCounter {
public:
- MockStatsCounter(const std::string& name)
+ explicit MockStatsCounter(const std::string& name)
: StatsCounter(name) {}
int* Pointer() { return GetPtr(); }
};
@@ -266,7 +266,7 @@ TEST_F(StatsTableTest, StatsCounter) {
EXPECT_EQ(0, table.GetCounterValue("c:foo"));
// Test Increment.
- while(*(foo.Pointer()) < 123) foo.Increment();
+ while (*(foo.Pointer()) < 123) foo.Increment();
EXPECT_EQ(123, table.GetCounterValue("c:foo"));
foo.Add(0);
EXPECT_EQ(123, table.GetCounterValue("c:foo"));
@@ -296,7 +296,7 @@ TEST_F(StatsTableTest, StatsCounter) {
class MockStatsCounterTimer : public StatsCounterTimer {
public:
- MockStatsCounterTimer(const std::string& name)
+ explicit MockStatsCounterTimer(const std::string& name)
: StatsCounterTimer(name) {}
TimeTicks start_time() { return start_time_; }
« no previous file with comments | « base/stack_container_unittest.cc ('k') | base/string_piece.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698