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

Unified Diff: tests/LListTest.cpp

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 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 | « tests/KtxTest.cpp ('k') | tests/MallocPixelRefTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/LListTest.cpp
diff --git a/tests/LListTest.cpp b/tests/LListTest.cpp
index 20151c33ecb257d99dbe5a377e1973ce2ac17590..8fb0117af80059419d67348306d12a31b358506f 100644
--- a/tests/LListTest.cpp
+++ b/tests/LListTest.cpp
@@ -73,12 +73,12 @@ static void TestTInternalLList(skiatest::Reporter* reporter) {
Iter iter;
ListElement* cur = iter.init(list, Iter::kHead_IterStart);
- for (int i = 0; NULL != cur; ++i, cur = iter.next()) {
+ for (int i = 0; cur; ++i, cur = iter.next()) {
REPORTER_ASSERT(reporter, cur->fID == 3-i);
}
cur = iter.init(list, Iter::kTail_IterStart);
- for (int i = 0; NULL != cur; ++i, cur = iter.prev()) {
+ for (int i = 0; cur; ++i, cur = iter.prev()) {
REPORTER_ASSERT(reporter, cur->fID == i);
}
@@ -114,7 +114,7 @@ static void TestTInternalLList(skiatest::Reporter* reporter) {
check_list(list, reporter, false, 4, true, true, true, true, elements);
cur = iter.init(list, Iter::kHead_IterStart);
- for (int i = 0; NULL != cur; ++i, cur = iter.next()) {
+ for (int i = 0; cur; ++i, cur = iter.next()) {
REPORTER_ASSERT(reporter, cur->fID == i);
}
}
@@ -228,7 +228,7 @@ static void TestTLList(skiatest::Reporter* reporter) {
next.next();
prev.prev();
- SkASSERT(NULL != iter.get());
+ SkASSERT(iter.get());
// insert either before or after the iterator, then check that the
// surrounding sequence is correct.
if (2 == insertionMethod) {
@@ -237,10 +237,10 @@ static void TestTLList(skiatest::Reporter* reporter) {
newItem.prev();
REPORTER_ASSERT(reporter, newItem.get()->fID == id);
- if (NULL != next.get()) {
+ if (next.get()) {
REPORTER_ASSERT(reporter, next.prev()->fID == iter.get()->fID);
}
- if (NULL != prev.get()) {
+ if (prev.get()) {
REPORTER_ASSERT(reporter, prev.next()->fID == id);
}
} else {
@@ -249,10 +249,10 @@ static void TestTLList(skiatest::Reporter* reporter) {
newItem.next();
REPORTER_ASSERT(reporter, newItem.get()->fID == id);
- if (NULL != next.get()) {
+ if (next.get()) {
REPORTER_ASSERT(reporter, next.prev()->fID == id);
}
- if (NULL != prev.get()) {
+ if (prev.get()) {
REPORTER_ASSERT(reporter, prev.next()->fID == iter.get()->fID);
}
}
@@ -276,10 +276,10 @@ static void TestTLList(skiatest::Reporter* reporter) {
// find the element
Iter iter(list1, start);
while (n--) {
- REPORTER_ASSERT(reporter, NULL != iter.get());
+ REPORTER_ASSERT(reporter, iter.get());
(iter.*incrFunc)();
}
- REPORTER_ASSERT(reporter, NULL != iter.get());
+ REPORTER_ASSERT(reporter, iter.get());
// remember the prev and next elements from the element to be removed
Iter prev = iter;
« no previous file with comments | « tests/KtxTest.cpp ('k') | tests/MallocPixelRefTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698