Index: tests/Writer32Test.cpp |
diff --git a/tests/Writer32Test.cpp b/tests/Writer32Test.cpp |
index e03a9163aa446050fabb979a456f54a56a89c78f..67896f0dec4ac4a6ba89d23a2b4270cca25b707d 100644 |
--- a/tests/Writer32Test.cpp |
+++ b/tests/Writer32Test.cpp |
@@ -304,12 +304,12 @@ DEF_TEST(Writer32_data, reporter) { |
sizeWritten += sizes[2]; |
REPORTER_ASSERT(reporter, sizeWritten == writer.bytesWritten()); |
- SkAutoTUnref<SkData> result(writer.snapshotAsData()); |
+ auto result(writer.snapshotAsData()); |
SkReader32 reader(result->data(), result->size()); |
- SkAutoTUnref<SkData> d0(reader.readData()), |
- d1(reader.readData()), |
- d2(reader.readData()); |
+ auto d0(reader.readData()), |
+ d1(reader.readData()), |
+ d2(reader.readData()); |
REPORTER_ASSERT(reporter, 0 == d0->size()); |
REPORTER_ASSERT(reporter, strlen(str)+1 == d1->size()); |