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

Unified Diff: tests/LListTest.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 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 | « tests/KtxTest.cpp ('k') | tests/LayerRasterizerTest.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 3d1921514c9bae221eb794471d18bf470de7386a..5a0e1d89ba54859bba7ca16ac55703605dd2afbc 100644
--- a/tests/LListTest.cpp
+++ b/tests/LListTest.cpp
@@ -91,12 +91,12 @@ static void TestTInternalLList(skiatest::Reporter* reporter) {
check_list(list, reporter, true, 0, false, false, false, false, elements);
// test out methods that add to the middle of the list.
- list.addAfter(&elements[1], NULL);
+ list.addAfter(&elements[1], nullptr);
check_list(list, reporter, false, 1, false, true, false, false, elements);
list.remove(&elements[1]);
- list.addBefore(&elements[1], NULL);
+ list.addBefore(&elements[1], nullptr);
check_list(list, reporter, false, 1, false, true, false, false, elements);
list.addBefore(&elements[0], &elements[1]);
@@ -129,8 +129,8 @@ static void TestTLList(skiatest::Reporter* reporter) {
Iter iter4;
REPORTER_ASSERT(reporter, list1.isEmpty());
- REPORTER_ASSERT(reporter, NULL == iter1.init(list1, Iter::kHead_IterStart));
- REPORTER_ASSERT(reporter, NULL == iter1.init(list1, Iter::kTail_IterStart));
+ REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kHead_IterStart));
+ REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kTail_IterStart));
// Try popping an empty list
list1.popHead();
list1.popTail();
@@ -271,9 +271,9 @@ static void TestTLList(skiatest::Reporter* reporter) {
Iter np = next; np.prev();
// pn should match next unless the target node was the head, in which case prev
// walked off the list.
- REPORTER_ASSERT(reporter, pn.get() == next.get() || NULL == prev.get());
+ REPORTER_ASSERT(reporter, pn.get() == next.get() || nullptr == prev.get());
// Similarly, np should match prev unless next originally walked off the tail.
- REPORTER_ASSERT(reporter, np.get() == prev.get() || NULL == next.get());
+ REPORTER_ASSERT(reporter, np.get() == prev.get() || nullptr == next.get());
--count;
}
REPORTER_ASSERT(reporter, count == list1.count());
« no previous file with comments | « tests/KtxTest.cpp ('k') | tests/LayerRasterizerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698