Index: tests/ResourceCacheTest.cpp |
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp |
index c08e75f62c0ec389c02bab67a7b25d4daecbcc6c..a66b0360ebab49c83b050ac089de697d375daab2 100644 |
--- a/tests/ResourceCacheTest.cpp |
+++ b/tests/ResourceCacheTest.cpp |
@@ -74,7 +74,7 @@ public: |
~TestResource() { |
--fAlive; |
- if (NULL != fToDelete) { |
+ if (fToDelete) { |
// Breaks our little 2-element cycle below. |
fToDelete->setDeleteWhenDestroyed(NULL, NULL); |
fCache->deleteResource(fToDelete->getCacheEntry()); |
@@ -274,7 +274,7 @@ static void test_resource_size_changed(skiatest::Reporter* reporter, |
REPORTER_ASSERT(reporter, 300 == cache.getCachedResourceBytes()); |
REPORTER_ASSERT(reporter, 2 == cache.getCachedResourceCount()); |
- REPORTER_ASSERT(reporter, NULL != cache.find(key1)); |
+ REPORTER_ASSERT(reporter, cache.find(key1)); |
// Internal resource cache validation will test the detached size (debug mode only). |
} |
} |