diff options
author | halcanary <halcanary@google.com> | 2016-07-27 11:12:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-27 11:12:23 -0700 |
commit | ac0e00dceca10dc7ce30c5be66001bd6960ebf5c (patch) | |
tree | 7c868c049d33e2d32f43e6793603fe7c96728bc3 /tests | |
parent | cb571e11480e929a1fa18c47ffa2c0ee22f87afb (diff) |
SkPDF: SkPDFStream takes a unique_ptr
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2188623004
Review-Url: https://codereview.chromium.org/2188623004
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PDFPrimitivesTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp index cef11503b3..0664ef4065 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"); |