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

Unified Diff: base/stats_table_unittest.cc

Issue 57078: Remove deprecated methods from StatsCounter. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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/stats_counters.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/stats_table_unittest.cc
===================================================================
--- base/stats_table_unittest.cc (revision 12911)
+++ base/stats_table_unittest.cc (working copy)
@@ -280,11 +280,11 @@
EXPECT_EQ(0, table.GetCounterValue("c:foo"));
// Test Decrement.
- foo.Decrement(1);
+ foo.Subtract(1);
EXPECT_EQ(-1, table.GetCounterValue("c:foo"));
- foo.Decrement(0);
+ foo.Subtract(0);
EXPECT_EQ(-1, table.GetCounterValue("c:foo"));
- foo.Decrement(-1);
+ foo.Subtract(-1);
EXPECT_EQ(0, table.GetCounterValue("c:foo"));
DeleteShmem(kTableName);
« no previous file with comments | « base/stats_counters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698