aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CodecExactReadTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/CodecExactReadTest.cpp')
-rw-r--r--tests/CodecExactReadTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/CodecExactReadTest.cpp b/tests/CodecExactReadTest.cpp
index 9b6acc8bc9..d00c0bcf97 100644
--- a/tests/CodecExactReadTest.cpp
+++ b/tests/CodecExactReadTest.cpp
@@ -11,6 +11,7 @@
#include "SkBitmap.h"
#include "SkCodec.h"
#include "SkData.h"
+#include "SkMakeUnique.h"
#include "SkStream.h"
namespace {
@@ -67,7 +68,8 @@ DEF_TEST(Codec_end, r) {
SkMemoryStream stream(std::move(multiData));
for (int i = 0; i < kNumImages; ++i) {
- std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(new UnowningStream(&stream)));
+ std::unique_ptr<SkCodec> codec(SkCodec::MakeFromStream(
+ skstd::make_unique<UnowningStream>(&stream)));
if (!codec) {
ERRORF(r, "Failed to create a codec from %s, iteration %i", path, i);
continue;