aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/TextureCompressionTest.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-27 07:41:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-27 07:41:16 -0700
commit96fcdcc219d2a0d3579719b84b28bede76efba64 (patch)
tree0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /tests/TextureCompressionTest.cpp
parent435af2f736c85c3274a0c6760a3523810750d237 (diff)
Style Change: NULL->nullptr
Diffstat (limited to 'tests/TextureCompressionTest.cpp')
-rw-r--r--tests/TextureCompressionTest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/TextureCompressionTest.cpp b/tests/TextureCompressionTest.cpp
index ca8da28858..d2e6db209b 100644
--- a/tests/TextureCompressionTest.cpp
+++ b/tests/TextureCompressionTest.cpp
@@ -63,7 +63,7 @@ DEF_TEST(CompressAlphaFailDimensions, reporter) {
continue;
}
SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt));
- REPORTER_ASSERT(reporter, NULL == data);
+ REPORTER_ASSERT(reporter, nullptr == data);
}
}
@@ -92,7 +92,7 @@ DEF_TEST(CompressAlphaFailColorType, reporter) {
continue;
}
SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt));
- REPORTER_ASSERT(reporter, NULL == data);
+ REPORTER_ASSERT(reporter, nullptr == data);
}
}
@@ -120,7 +120,7 @@ DEF_TEST(CompressCheckerboard, reporter) {
{
uint8_t* pixels = reinterpret_cast<uint8_t*>(pixmap.writable_addr());
REPORTER_ASSERT(reporter, pixels);
- if (NULL == pixels) {
+ if (nullptr == pixels) {
return;
}
@@ -139,7 +139,7 @@ DEF_TEST(CompressCheckerboard, reporter) {
SkAutoMalloc decompMemory(kWidth*kHeight);
uint8_t* decompBuffer = reinterpret_cast<uint8_t*>(decompMemory.get());
REPORTER_ASSERT(reporter, decompBuffer);
- if (NULL == decompBuffer) {
+ if (nullptr == decompBuffer) {
return;
}
@@ -154,7 +154,7 @@ DEF_TEST(CompressCheckerboard, reporter) {
SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt));
REPORTER_ASSERT(reporter, data);
- if (NULL == data) {
+ if (nullptr == data) {
continue;
}
@@ -167,7 +167,7 @@ DEF_TEST(CompressCheckerboard, reporter) {
const uint8_t* pixels = reinterpret_cast<const uint8_t*>(pixmap.addr());
REPORTER_ASSERT(reporter, pixels);
- if (NULL == pixels) {
+ if (nullptr == pixels) {
continue;
}
@@ -213,7 +213,7 @@ DEF_TEST(CompressLATC, reporter) {
SkAutoDataUnref latcData(
SkTextureCompressor::CompressBitmapToFormat(pixmap, kLATCFormat));
REPORTER_ASSERT(reporter, latcData);
- if (NULL == latcData) {
+ if (nullptr == latcData) {
continue;
}