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

Unified Diff: tests/StreamTest.cpp

Issue 2212493002: Convert SkAutoTUnref<SkData> to sk_sp<SkData>. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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/PDFMetadataAttributeTest.cpp ('k') | third_party/ktx/ktx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/StreamTest.cpp
diff --git a/tests/StreamTest.cpp b/tests/StreamTest.cpp
index 50523ff3178ff3e471453c4cb066cd241ff752a1..56977822b9db5cb9621c672aab20766c7fd67cd5 100644
--- a/tests/StreamTest.cpp
+++ b/tests/StreamTest.cpp
@@ -117,7 +117,7 @@ static void TestWStream(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, ds.getOffset() == 100 * 26);
{
- SkAutoTUnref<SkData> data(ds.copyToData());
+ sk_sp<SkData> data(ds.copyToData());
REPORTER_ASSERT(reporter, 100 * 26 == data->size());
REPORTER_ASSERT(reporter, memcmp(dst, data->data(), data->size()) == 0);
}
@@ -404,7 +404,7 @@ static void stream_copy_test(skiatest::Reporter* reporter,
ERRORF(reporter, "SkStreamCopy failed");
return;
}
- SkAutoTUnref<SkData> data(tgt.copyToData());
+ sk_sp<SkData> data(tgt.copyToData());
tgt.reset();
if (data->size() != N) {
ERRORF(reporter, "SkStreamCopy incorrect size");
« no previous file with comments | « tests/PDFMetadataAttributeTest.cpp ('k') | third_party/ktx/ktx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698