Index: tests/CachedDataTest.cpp |
diff --git a/tests/CachedDataTest.cpp b/tests/CachedDataTest.cpp |
index f65a46b770d0ecabda70654036e70e8ec86c90f8..e3ceeaf1524a0ba3628d2b2b1035f4ed468d209e 100644 |
--- a/tests/CachedDataTest.cpp |
+++ b/tests/CachedDataTest.cpp |
@@ -31,9 +31,9 @@ static SkCachedData* make_data(size_t size, SkDiscardableMemoryPool* pool) { |
SkDiscardableMemory* dm = pool->create(size); |
// the pool "can" return null, but it shouldn't in these controlled conditions |
SK_ALWAYSBREAK(dm); |
- return SkNEW_ARGS(SkCachedData, (size, dm)); |
+ return new SkCachedData(size, dm); |
} else { |
- return SkNEW_ARGS(SkCachedData, (sk_malloc_throw(size), size)); |
+ return new SkCachedData(sk_malloc_throw(size), size); |
} |
} |