aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFPrimitivesTest.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-07-27 11:12:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-27 11:12:23 -0700
commitac0e00dceca10dc7ce30c5be66001bd6960ebf5c (patch)
tree7c868c049d33e2d32f43e6793603fe7c96728bc3 /tests/PDFPrimitivesTest.cpp
parentcb571e11480e929a1fa18c47ffa2c0ee22f87afb (diff)
SkPDF: SkPDFStream takes a unique_ptr
Diffstat (limited to 'tests/PDFPrimitivesTest.cpp')
-rw-r--r--tests/PDFPrimitivesTest.cpp4
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");