aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/LListTest.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-15 20:37:04 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-15 20:37:04 +0000
commit4e23068b374023d43c4c725138d523721d975892 (patch)
tree21ed906fac0e47f766a7a36f55c2a4c9d95ed6b3 /tests/LListTest.cpp
parent9222838fe650a221a9b5e9400f33f46c9ae43eda (diff)
Re-enable inst counting in debug builds.
R=robertphillips@google.com Review URL: https://codereview.appspot.com/7098066 git-svn-id: http://skia.googlecode.com/svn/trunk@7206 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/LListTest.cpp')
-rw-r--r--tests/LListTest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/LListTest.cpp b/tests/LListTest.cpp
index 89c4971b96..ab36ef53ce 100644
--- a/tests/LListTest.cpp
+++ b/tests/LListTest.cpp
@@ -16,7 +16,7 @@ public:
}
bool operator== (const ListElement& other) { return fID == other.fID; }
-#ifdef SK_ENABLE_INST_COUNT
+#if SK_ENABLE_INST_COUNT
// Make the instance count available publicly.
static int InstanceCount() { return GetInstanceCount(); }
#endif
@@ -135,7 +135,7 @@ static void TestTLList(skiatest::Reporter* reporter) {
Iter iter3;
Iter iter4;
-#ifdef SK_ENABLE_INST_COUNT
+#if SK_ENABLE_INST_COUNT
SkASSERT(0 == ListElement::InstanceCount());
#endif
@@ -151,7 +151,7 @@ static void TestTLList(skiatest::Reporter* reporter) {
// Create two identical lists, one by appending to head and the other to the tail.
list1.addToHead(ListElement(1));
list2.addToTail(ListElement(1));
-#ifdef SK_ENABLE_INST_COUNT
+#if SK_ENABLE_INST_COUNT
SkASSERT(2 == ListElement::InstanceCount());
#endif
iter1.init(list1, Iter::kHead_IterStart);
@@ -178,7 +178,7 @@ static void TestTLList(skiatest::Reporter* reporter) {
iter4.init(list2, Iter::kTail_IterStart);
list2.addToHead(ListElement(2));
-#ifdef SK_ENABLE_INST_COUNT
+#if SK_ENABLE_INST_COUNT
SkASSERT(3 == ListElement::InstanceCount());
#endif
@@ -189,14 +189,14 @@ static void TestTLList(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, list1 != list2);
list1.addToHead(ListElement(2));
REPORTER_ASSERT(reporter, list1 == list2);
-#ifdef SK_ENABLE_INST_COUNT
+#if SK_ENABLE_INST_COUNT
SkASSERT(4 == ListElement::InstanceCount());
#endif
REPORTER_ASSERT(reporter, !list1.isEmpty());
list1.reset();
list2.reset();
-#ifdef SK_ENABLE_INST_COUNT
+#if SK_ENABLE_INST_COUNT
SkASSERT(0 == ListElement::InstanceCount());
#endif
REPORTER_ASSERT(reporter, list1.isEmpty() && list2.isEmpty());
@@ -301,12 +301,12 @@ static void TestTLList(skiatest::Reporter* reporter) {
--count;
}
REPORTER_ASSERT(reporter, count == list1.count());
-#ifdef SK_ENABLE_INST_COUNT
+#if SK_ENABLE_INST_COUNT
SkASSERT(count == ListElement::InstanceCount());
#endif
}
list1.reset();
-#ifdef SK_ENABLE_INST_COUNT
+#if SK_ENABLE_INST_COUNT
SkASSERT(0 == ListElement::InstanceCount());
#endif
}