diff options
author | djsollen <djsollen@google.com> | 2016-01-22 06:04:55 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-22 06:04:55 -0800 |
commit | 4c5cd7d527ed29aabfa72aa47b23a4496eeda357 (patch) | |
tree | 49959934e26882dd38d3bb1939f7c9b60d70f10d /tests/CachedDataTest.cpp | |
parent | 6d3cef930ad19b0f55543ca40f7a07030f4fe508 (diff) |
Consolidate SK_CRASH and sk_throw into SK_ABORT
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1610823002
Review URL: https://codereview.chromium.org/1610823002
Diffstat (limited to 'tests/CachedDataTest.cpp')
-rw-r--r-- | tests/CachedDataTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CachedDataTest.cpp b/tests/CachedDataTest.cpp index c3fc9a47bf..6c44161707 100644 --- a/tests/CachedDataTest.cpp +++ b/tests/CachedDataTest.cpp @@ -30,7 +30,7 @@ static SkCachedData* make_data(size_t size, SkDiscardableMemoryPool* pool) { if (pool) { SkDiscardableMemory* dm = pool->create(size); // the pool "can" return null, but it shouldn't in these controlled conditions - SK_ALWAYSBREAK(dm); + SkASSERT_RELEASE(dm); return new SkCachedData(size, dm); } else { return new SkCachedData(sk_malloc_throw(size), size); |