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

Unified Diff: test/cctest/test-utils.cc

Issue 2677183002: [test] Make CHECK_EQ calls in cctest consistent. (Closed)
Patch Set: Cleanup order for test.x checks. Created 3 years, 10 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 | « test/cctest/test-unboxed-doubles.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-utils.cc
diff --git a/test/cctest/test-utils.cc b/test/cctest/test-utils.cc
index 463672ccc87ee137e2c895a1cc3a7417788c7d43..b38bae5ba6ee3c58e7b5500033fd1970aab8272a 100644
--- a/test/cctest/test-utils.cc
+++ b/test/cctest/test-utils.cc
@@ -88,11 +88,11 @@ TEST(BitSetComputer) {
uint32_t data = 0;
data = BoolComputer::encode(data, 1, true);
data = BoolComputer::encode(data, 4, true);
- CHECK_EQ(true, BoolComputer::decode(data, 1));
- CHECK_EQ(true, BoolComputer::decode(data, 4));
- CHECK_EQ(false, BoolComputer::decode(data, 0));
- CHECK_EQ(false, BoolComputer::decode(data, 2));
- CHECK_EQ(false, BoolComputer::decode(data, 3));
+ CHECK(BoolComputer::decode(data, 1));
+ CHECK(BoolComputer::decode(data, 4));
+ CHECK(!BoolComputer::decode(data, 0));
+ CHECK(!BoolComputer::decode(data, 2));
+ CHECK(!BoolComputer::decode(data, 3));
// Lets store 2 bits per item with 3000 items and verify the values are
// correct.
« no previous file with comments | « test/cctest/test-unboxed-doubles.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698