Index: tests/AnnotationTest.cpp |
diff --git a/tests/AnnotationTest.cpp b/tests/AnnotationTest.cpp |
index a4109c5e54927cbce0af8dfa738d541d05d370f8..0a9dfeac18c9fa8fec98d91332e319aff17ea9a8 100644 |
--- a/tests/AnnotationTest.cpp |
+++ b/tests/AnnotationTest.cpp |
@@ -51,7 +51,7 @@ DEF_TEST(Annotation_PdfLink, reporter) { |
SkAnnotateRectWithURL(canvas, r, data.get()); |
REPORTER_ASSERT(reporter, doc->close()); |
- sk_sp<SkData> out(outStream.copyToData()); |
+ sk_sp<SkData> out = outStream.detachAsData(); |
const char* rawOutput = (const char*)out->data(); |
REPORTER_ASSERT(reporter, ContainsString(rawOutput, out->size(), "/Annots ")); |
@@ -69,7 +69,7 @@ DEF_TEST(Annotation_NamedDestination, reporter) { |
SkAnnotateNamedDestination(canvas, p, data.get()); |
REPORTER_ASSERT(reporter, doc->close()); |
- sk_sp<SkData> out(outStream.copyToData()); |
+ sk_sp<SkData> out = outStream.detachAsData(); |
const char* rawOutput = (const char*)out->data(); |
REPORTER_ASSERT(reporter, |