Index: tests/DiscardableMemoryTest.cpp |
diff --git a/tests/DiscardableMemoryTest.cpp b/tests/DiscardableMemoryTest.cpp |
index da36ffd8b00342accac6eb7d2baee83d76beac19..28dd6e98a5d1bf35eacc3414986efc0885a3833c 100644 |
--- a/tests/DiscardableMemoryTest.cpp |
+++ b/tests/DiscardableMemoryTest.cpp |
@@ -13,12 +13,12 @@ DEF_TEST(DiscardableMemory, reporter) { |
const char testString[] = "HELLO, WORLD!"; |
const size_t len = sizeof(testString); |
SkAutoTDelete<SkDiscardableMemory> dm(SkDiscardableMemory::Create(len)); |
- REPORTER_ASSERT(reporter, dm.get() != NULL); |
- if (NULL == dm.get()) { |
+ REPORTER_ASSERT(reporter, dm.get() != nullptr); |
+ if (nullptr == dm.get()) { |
return; |
} |
void* ptr = dm->data(); |
- REPORTER_ASSERT(reporter, ptr != NULL); |
+ REPORTER_ASSERT(reporter, ptr != nullptr); |
memcpy(ptr, testString, sizeof(testString)); |
dm->unlock(); |
bool success = dm->lock(); |