Index: tests/PDFPrimitivesTest.cpp |
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp |
index 1faecb516ac88a00480da8d500448bd3ec6c8fb5..1001b99c470ae65fa4511835ee4275dd93f473ff 100644 |
--- a/tests/PDFPrimitivesTest.cpp |
+++ b/tests/PDFPrimitivesTest.cpp |
@@ -12,6 +12,7 @@ |
#include "SkDocument.h" |
#include "SkDeflate.h" |
#include "SkImageEncoder.h" |
+#include "SkMakeUnique.h" |
#include "SkMatrix.h" |
#include "SkPDFCanon.h" |
#include "SkPDFDevice.h" |
@@ -75,8 +76,8 @@ static void assert_emit_eq(skiatest::Reporter* reporter, |
static void TestPDFStream(skiatest::Reporter* reporter) { |
char streamBytes[] = "Test\nFoo\tBar"; |
- std::unique_ptr<SkStreamAsset> streamData(new SkMemoryStream( |
- streamBytes, strlen(streamBytes), true)); |
+ auto streamData = skstd::make_unique<SkMemoryStream>( |
+ streamBytes, strlen(streamBytes), true); |
auto stream = sk_make_sp<SkPDFStream>(std::move(streamData)); |
assert_emit_eq(reporter, |
*stream, |