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

Unified Diff: tests/TextureCompressionTest.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/TextBlobTest.cpp ('k') | tests/TypefaceTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/TextureCompressionTest.cpp
diff --git a/tests/TextureCompressionTest.cpp b/tests/TextureCompressionTest.cpp
index ca8da28858531c3ced26a41aa9c03ec517e8b7e8..d2e6db209b6a6d3af1258dddd06190932ac3c7df 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;
}
« no previous file with comments | « tests/TextBlobTest.cpp ('k') | tests/TypefaceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698