OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
10 #include "SkBitmapHeap.h" | 10 #include "SkBitmapHeap.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 heap.endAddingOwnersDeferral(false); | 86 heap.endAddingOwnersDeferral(false); |
87 | 87 |
88 // The dictionary should report the same index since the new entry is identi
cal. | 88 // The dictionary should report the same index since the new entry is identi
cal. |
89 // The bitmap heap should contain the bitmap, but with no references. | 89 // The bitmap heap should contain the bitmap, but with no references. |
90 REPORTER_ASSERT(reporter, 1 == index); | 90 REPORTER_ASSERT(reporter, 1 == index); |
91 REPORTER_ASSERT(reporter, heap.count() == 1); | 91 REPORTER_ASSERT(reporter, heap.count() == 1); |
92 REPORTER_ASSERT(reporter, SkBitmapHeapTester::GetRefCount(heap.getEntry(0))
== 0); | 92 REPORTER_ASSERT(reporter, SkBitmapHeapTester::GetRefCount(heap.getEntry(0))
== 0); |
93 } | 93 } |
94 | 94 |
95 #include "TestClassDef.h" | 95 #include "TestClassDef.h" |
96 DEFINE_TESTCLASS("BitmapHeap", TestBitmapHeapClass, TestBitmapHeap) | 96 DEFINE_TESTCLASS_SHORT(TestBitmapHeap) |
OLD | NEW |