aboutsummaryrefslogtreecommitdiff
path: root/tests/DiscardableMemoryTest.cpp
diff options
context:
space:
mode:
authorhalcanary <halcanary@google.com>2015-08-27 07:41:13 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-27 07:41:16 -0700
commit96fcdcc219d2a0d3579719b84b28bede76efba64 (patch)
tree0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /tests/DiscardableMemoryTest.cpp
parent435af2f736c85c3274a0c6760a3523810750d237 (diff)
downloadskia-96fcdcc219d2a0d3579719b84b28bede76efba64.tar.gz
Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002 Review URL: https://codereview.chromium.org/1316233002
Diffstat (limited to 'tests/DiscardableMemoryTest.cpp')
-rw-r--r--tests/DiscardableMemoryTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/DiscardableMemoryTest.cpp b/tests/DiscardableMemoryTest.cpp
index da36ffd8b0..28dd6e98a5 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();