Index: tests/PDFPrimitivesTest.cpp |
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp |
index cef11503b3e2f15764a04cf1d27506e8584a581d..0664ef406524ca0eb9eea5f6cece4b48094a5c99 100644 |
--- a/tests/PDFPrimitivesTest.cpp |
+++ b/tests/PDFPrimitivesTest.cpp |
@@ -83,9 +83,9 @@ static void assert_emit_eq(skiatest::Reporter* reporter, |
static void TestPDFStream(skiatest::Reporter* reporter) { |
char streamBytes[] = "Test\nFoo\tBar"; |
- SkAutoTDelete<SkMemoryStream> streamData(new SkMemoryStream( |
+ std::unique_ptr<SkStreamAsset> streamData(new SkMemoryStream( |
streamBytes, strlen(streamBytes), true)); |
- sk_sp<SkPDFStream> stream(new SkPDFStream(streamData.get())); |
+ auto stream = sk_make_sp<SkPDFStream>(std::move(streamData)); |
assert_emit_eq(reporter, |
*stream, |
"<</Length 12>> stream\nTest\nFoo\tBar\nendstream"); |