Index: tests/StreamTest.cpp |
diff --git a/tests/StreamTest.cpp b/tests/StreamTest.cpp |
index fe4da0f5fbcbdbb2560a94c549e34a6f18eb815e..50523ff3178ff3e471453c4cb066cd241ff752a1 100644 |
--- a/tests/StreamTest.cpp |
+++ b/tests/StreamTest.cpp |
@@ -174,7 +174,7 @@ static void TestPackedUInt(skiatest::Reporter* reporter) { |
static void TestDereferencingData(SkMemoryStream* memStream) { |
memStream->read(nullptr, 0); |
memStream->getMemoryBase(); |
- SkAutoDataUnref data(memStream->copyToData()); |
+ sk_sp<SkData> data(memStream->copyToData()); |
} |
static void TestNullData() { |
@@ -361,7 +361,7 @@ DEF_TEST(StreamPeek_BlockMemoryStream, rep) { |
dynamicMemoryWStream.write(buffer, size); |
} |
SkAutoTDelete<SkStreamAsset> asset(dynamicMemoryWStream.detachAsStream()); |
- SkAutoTUnref<SkData> expected(SkData::NewUninitialized(asset->getLength())); |
+ sk_sp<SkData> expected(SkData::MakeUninitialized(asset->getLength())); |
uint8_t* expectedPtr = static_cast<uint8_t*>(expected->writable_data()); |
valueSource.setSeed(kSeed); // reseed. |
// We want the exact same same "random" string of numbers to put |
@@ -370,7 +370,7 @@ DEF_TEST(StreamPeek_BlockMemoryStream, rep) { |
for (size_t i = 0; i < asset->getLength(); ++i) { |
expectedPtr[i] = valueSource.nextU() & 0xFF; |
} |
- stream_peek_test(rep, asset, expected); |
+ stream_peek_test(rep, asset, expected.get()); |
} |
namespace { |