Index: tests/PathTest.cpp |
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp |
index cb330c58fe3d0a64ea0cc36fe601489c5ef1b2d7..c76276080c959b2c49583f26d7526fa3f961d246 100644 |
--- a/tests/PathTest.cpp |
+++ b/tests/PathTest.cpp |
@@ -4036,7 +4036,7 @@ static void compare_dump(skiatest::Reporter* reporter, const SkPath& path, bool |
bool dumpAsHex, const char* str) { |
SkDynamicMemoryWStream wStream; |
path.dump(&wStream, force, dumpAsHex); |
- SkAutoDataUnref data(wStream.copyToData()); |
+ sk_sp<SkData> data(wStream.copyToData()); |
REPORTER_ASSERT(reporter, data->size() == strlen(str)); |
if (strlen(str) > 0) { |
REPORTER_ASSERT(reporter, !memcmp(data->data(), str, strlen(str))); |