Index: tests/UtilsTest.cpp |
diff --git a/tests/UtilsTest.cpp b/tests/UtilsTest.cpp |
index 4dad52b50cd03847382f66a71e47d81ad3cbdd7d..c431abc5c31af288a1617489b33e621927c6d232 100644 |
--- a/tests/UtilsTest.cpp |
+++ b/tests/UtilsTest.cpp |
@@ -33,9 +33,9 @@ static void test_autounref(skiatest::Reporter* reporter) { |
REPORTER_ASSERT(reporter, &obj == tmp.get()); |
REPORTER_ASSERT(reporter, obj.unique()); |
- REPORTER_ASSERT(reporter, &obj == tmp.detach()); |
+ REPORTER_ASSERT(reporter, &obj == tmp.release()); |
REPORTER_ASSERT(reporter, obj.unique()); |
- REPORTER_ASSERT(reporter, nullptr == tmp.detach()); |
+ REPORTER_ASSERT(reporter, nullptr == tmp.release()); |
REPORTER_ASSERT(reporter, nullptr == tmp.get()); |
obj.ref(); |