diff options
author | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-04 17:59:42 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-04 17:59:42 +0000 |
commit | e8a76ae8edc4f90456f9d8f90e56bf97f2657f3a (patch) | |
tree | 4e7d18468236dd4af78d207d719a9c265e86facd /tests/UtilsTest.cpp | |
parent | 2fb96cc5d713451216bd63d5dc8d19abc8550730 (diff) |
Remove SkRefPtr
Review URL: https://codereview.appspot.com/7030059
git-svn-id: http://skia.googlecode.com/svn/trunk@7021 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/UtilsTest.cpp')
-rw-r--r-- | tests/UtilsTest.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/UtilsTest.cpp b/tests/UtilsTest.cpp index 1c2f870d1f..7f27f7e78e 100644 --- a/tests/UtilsTest.cpp +++ b/tests/UtilsTest.cpp @@ -27,35 +27,6 @@ private: SK_DEFINE_INST_COUNT(RefClass) -static void test_refptr(skiatest::Reporter* reporter) { - RefClass* r0 = new RefClass(0); - - SkRefPtr<RefClass> rc0; - REPORTER_ASSERT(reporter, rc0.get() == NULL); - REPORTER_ASSERT(reporter, !rc0); - - SkRefPtr<RefClass> rc1; - REPORTER_ASSERT(reporter, rc0 == rc1); - REPORTER_ASSERT(reporter, rc0.get() != r0); - - rc0 = r0; - REPORTER_ASSERT(reporter, rc0); - REPORTER_ASSERT(reporter, rc0 != rc1); - REPORTER_ASSERT(reporter, rc0.get() == r0); - - rc1 = rc0; - REPORTER_ASSERT(reporter, rc1); - REPORTER_ASSERT(reporter, rc0 == rc1); - REPORTER_ASSERT(reporter, rc0.get() == r0); - - rc0 = NULL; - REPORTER_ASSERT(reporter, rc0.get() == NULL); - REPORTER_ASSERT(reporter, !rc0); - REPORTER_ASSERT(reporter, rc0 != rc1); - - r0->unref(); -} - static void test_autounref(skiatest::Reporter* reporter) { RefClass obj(0); REPORTER_ASSERT(reporter, 1 == obj.getRefCnt()); @@ -178,7 +149,6 @@ static void TestUTF(skiatest::Reporter* reporter) { test_utf16(reporter); test_search(reporter); - test_refptr(reporter); test_autounref(reporter); } |