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

Unified Diff: test/base-unittests/bits-unittest.cc

Issue 502803002: Rename CountSetBits32 to CountPopulation32 for consistency. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 6 years, 4 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 | « src/frames.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/base-unittests/bits-unittest.cc
diff --git a/test/base-unittests/bits-unittest.cc b/test/base-unittests/bits-unittest.cc
index 56d3d9261beb9aaab847de70f31e03d7b71b751f..9113675556c73dba72538539a55012557d03afbc 100644
--- a/test/base-unittests/bits-unittest.cc
+++ b/test/base-unittests/bits-unittest.cc
@@ -10,13 +10,13 @@ namespace v8 {
namespace base {
namespace bits {
-TEST(BitsTest, CountSetBits32) {
- EXPECT_EQ(0u, CountSetBits32(0));
- EXPECT_EQ(1u, CountSetBits32(1));
- EXPECT_EQ(8u, CountSetBits32(0x11111111));
- EXPECT_EQ(16u, CountSetBits32(0xf0f0f0f0));
- EXPECT_EQ(24u, CountSetBits32(0xfff0f0ff));
- EXPECT_EQ(32u, CountSetBits32(0xffffffff));
+TEST(BitsTest, CountPopulation32) {
+ EXPECT_EQ(0u, CountPopulation32(0));
+ EXPECT_EQ(1u, CountPopulation32(1));
+ EXPECT_EQ(8u, CountPopulation32(0x11111111));
+ EXPECT_EQ(16u, CountPopulation32(0xf0f0f0f0));
+ EXPECT_EQ(24u, CountPopulation32(0xfff0f0ff));
+ EXPECT_EQ(32u, CountPopulation32(0xffffffff));
}
« no previous file with comments | « src/frames.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698