/external/chromium_org/third_party/skia/tests/ |
RuntimeConfigTest.cpp | 15 DEF_TEST(RuntimeConfig, reporter) { 16 REPORTER_ASSERT(reporter, 1 == c_RTConfTestVariable); 20 REPORTER_ASSERT(reporter, 2 == c_RTConfTestVariable); 23 REPORTER_ASSERT(reporter, 1 == c_RTConfTestVariable);
|
TracingTest.cpp | 11 DEF_TEST(Tracing, reporter) {
|
TArrayTest.cpp | 14 static void TestTSet_basic(skiatest::Reporter* reporter) { 18 REPORTER_ASSERT(reporter, a.empty()); 19 REPORTER_ASSERT(reporter, a.count() == 0); 23 REPORTER_ASSERT(reporter, !a.empty()); 24 REPORTER_ASSERT(reporter, a.count() == 1); 28 REPORTER_ASSERT(reporter, a.empty()); 29 REPORTER_ASSERT(reporter, a.count() == 0); 33 REPORTER_ASSERT(reporter, a.push_back() = 1); 35 REPORTER_ASSERT(reporter, !a.empty()) [all...] |
BitSetTest.cpp | 11 DEF_TEST(BitSet, reporter) { 13 REPORTER_ASSERT(reporter, set0.isBitSet(0) == false); 14 REPORTER_ASSERT(reporter, set0.isBitSet(32767) == false); 15 REPORTER_ASSERT(reporter, set0.isBitSet(65535) == false); 18 REPORTER_ASSERT(reporter, set0 == set1); 21 REPORTER_ASSERT(reporter, set0.isBitSet(22) == true); 23 REPORTER_ASSERT(reporter, set0.isBitSet(24) == true); 25 REPORTER_ASSERT(reporter, set0.isBitSet(35) == true); 27 REPORTER_ASSERT(reporter, set0.isBitSet(22) == false); 28 REPORTER_ASSERT(reporter, set0.isBitSet(24) == true) [all...] |
BitmapHasherTest.cpp | 19 SkColor color, skiatest::Reporter* reporter) { 21 REPORTER_ASSERT(reporter, bitmap->allocPixels(info)); 25 DEF_TEST(BitmapHasher, reporter) { 30 CreateTestBitmap(&bitmap, 333, 555, SK_ColorBLUE, reporter); 31 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest)); 32 REPORTER_ASSERT(reporter, digest == 0xfb2903562766ef87ULL); 34 CreateTestBitmap(&bitmap, 555, 333, SK_ColorBLUE, reporter); 35 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest)); 36 REPORTER_ASSERT(reporter, digest == 0xfe04023fb97d0f61ULL) [all...] |
DequeTest.cpp | 11 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) { 13 REPORTER_ASSERT(reporter, deq.empty()); 14 REPORTER_ASSERT(reporter, 0 == deq.count()); 15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); 16 REPORTER_ASSERT(reporter, NULL == deq.front()); 17 REPORTER_ASSERT(reporter, NULL == deq.back()); 19 REPORTER_ASSERT(reporter, !deq.empty()); 20 REPORTER_ASSERT(reporter, count == deq.count()); 21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()) [all...] |
TSetTest.cpp | 14 static void TestTSet_basic(skiatest::Reporter* reporter) { 16 REPORTER_ASSERT(reporter, set0.isEmpty()); 17 REPORTER_ASSERT(reporter, !set0.contains(-1)); 18 REPORTER_ASSERT(reporter, !set0.contains(0)); 19 REPORTER_ASSERT(reporter, !set0.contains(1)); 20 REPORTER_ASSERT(reporter, set0.count() == 0); 22 REPORTER_ASSERT(reporter, set0.add(0)); 23 REPORTER_ASSERT(reporter, !set0.isEmpty()); 24 REPORTER_ASSERT(reporter, !set0.contains(-1)) [all...] |
TDStackNesterTest.cpp | 16 static void test_push(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { 21 REPORTER_ASSERT(reporter, nester->count() == count + 1); 29 static void test_pop(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { 37 REPORTER_ASSERT(reporter, top == value); 39 REPORTER_ASSERT(reporter, newCount == count - 1); 42 REPORTER_ASSERT(reporter, newCount == value); 51 static void test_nest(skiatest::Reporter* reporter, SkTDStackNester<int>* nester, int inc) [all...] |
RefDictTest.cpp | 18 DEF_TEST(RefDict, reporter) { 22 REPORTER_ASSERT(reporter, NULL == dict.find(NULL)); 23 REPORTER_ASSERT(reporter, NULL == dict.find("foo")); 24 REPORTER_ASSERT(reporter, NULL == dict.find("bar")); 27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); 28 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt()); 31 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); 32 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt()); 35 REPORTER_ASSERT(reporter, &data1 == dict.find("foo")); 36 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt()) [all...] |
DiscardableMemoryPoolTest.cpp | 11 DEF_TEST(DiscardableMemoryPool, reporter) { 15 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 18 REPORTER_ASSERT(reporter, dm1->data() != NULL); 19 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); 21 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 22 REPORTER_ASSERT(reporter, !dm1->lock()); 26 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); 29 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); 30 REPORTER_ASSERT(reporter, dm2->lock()); 33 REPORTER_ASSERT(reporter, !dm2->lock()) [all...] |
TestSize.cpp | 11 static void TestISize(skiatest::Reporter* reporter) { 15 REPORTER_ASSERT(reporter, a.isEmpty()); 17 REPORTER_ASSERT(reporter, a.isEmpty()); 19 REPORTER_ASSERT(reporter, a.isEmpty()); 21 REPORTER_ASSERT(reporter, a == b); 24 REPORTER_ASSERT(reporter, !a.isEmpty()); 26 REPORTER_ASSERT(reporter, !b.isEmpty()); 27 REPORTER_ASSERT(reporter, a == b); 28 REPORTER_ASSERT(reporter, !(a != b)) [all...] |
MetaDataTest.cpp | 11 static void test_ptrs(skiatest::Reporter* reporter) { 13 REPORTER_ASSERT(reporter, 1 == ref.getRefCnt()); 20 REPORTER_ASSERT(reporter, md0.findRefCnt(name)); 21 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref)); 22 REPORTER_ASSERT(reporter, 2 == ref.getRefCnt()); 25 REPORTER_ASSERT(reporter, md1.findRefCnt(name)); 26 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref)); 27 REPORTER_ASSERT(reporter, 3 == ref.getRefCnt()); 29 REPORTER_ASSERT(reporter, md0.removeRefCnt(name)) [all...] |
GrContextFactoryTest.cpp | 13 DEF_GPUTEST(GrContextFactoryTest, reporter, factory) { 18 REPORTER_ASSERT(reporter, 23 REPORTER_ASSERT(reporter, 28 REPORTER_ASSERT(reporter,
|
/external/skia/tests/ |
RuntimeConfigTest.cpp | 15 DEF_TEST(RuntimeConfig, reporter) { 16 REPORTER_ASSERT(reporter, 1 == c_RTConfTestVariable); 20 REPORTER_ASSERT(reporter, 2 == c_RTConfTestVariable); 23 REPORTER_ASSERT(reporter, 1 == c_RTConfTestVariable);
|
TracingTest.cpp | 11 DEF_TEST(Tracing, reporter) {
|
TArrayTest.cpp | 14 static void TestTSet_basic(skiatest::Reporter* reporter) { 18 REPORTER_ASSERT(reporter, a.empty()); 19 REPORTER_ASSERT(reporter, a.count() == 0); 23 REPORTER_ASSERT(reporter, !a.empty()); 24 REPORTER_ASSERT(reporter, a.count() == 1); 28 REPORTER_ASSERT(reporter, a.empty()); 29 REPORTER_ASSERT(reporter, a.count() == 0); 33 REPORTER_ASSERT(reporter, a.push_back() = 1); 35 REPORTER_ASSERT(reporter, !a.empty()) [all...] |
BitSetTest.cpp | 11 DEF_TEST(BitSet, reporter) { 13 REPORTER_ASSERT(reporter, set0.isBitSet(0) == false); 14 REPORTER_ASSERT(reporter, set0.isBitSet(32767) == false); 15 REPORTER_ASSERT(reporter, set0.isBitSet(65535) == false); 18 REPORTER_ASSERT(reporter, set0 == set1); 21 REPORTER_ASSERT(reporter, set0.isBitSet(22) == true); 23 REPORTER_ASSERT(reporter, set0.isBitSet(24) == true); 25 REPORTER_ASSERT(reporter, set0.isBitSet(35) == true); 27 REPORTER_ASSERT(reporter, set0.isBitSet(22) == false); 28 REPORTER_ASSERT(reporter, set0.isBitSet(24) == true) [all...] |
BitmapHasherTest.cpp | 19 SkColor color, skiatest::Reporter* reporter) { 21 REPORTER_ASSERT(reporter, bitmap->allocPixels(info)); 25 DEF_TEST(BitmapHasher, reporter) { 30 CreateTestBitmap(&bitmap, 333, 555, SK_ColorBLUE, reporter); 31 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest)); 32 REPORTER_ASSERT(reporter, digest == 0xfb2903562766ef87ULL); 34 CreateTestBitmap(&bitmap, 555, 333, SK_ColorBLUE, reporter); 35 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest)); 36 REPORTER_ASSERT(reporter, digest == 0xfe04023fb97d0f61ULL) [all...] |
DequeTest.cpp | 11 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) { 13 REPORTER_ASSERT(reporter, deq.empty()); 14 REPORTER_ASSERT(reporter, 0 == deq.count()); 15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); 16 REPORTER_ASSERT(reporter, NULL == deq.front()); 17 REPORTER_ASSERT(reporter, NULL == deq.back()); 19 REPORTER_ASSERT(reporter, !deq.empty()); 20 REPORTER_ASSERT(reporter, count == deq.count()); 21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()) [all...] |
TSetTest.cpp | 14 static void TestTSet_basic(skiatest::Reporter* reporter) { 16 REPORTER_ASSERT(reporter, set0.isEmpty()); 17 REPORTER_ASSERT(reporter, !set0.contains(-1)); 18 REPORTER_ASSERT(reporter, !set0.contains(0)); 19 REPORTER_ASSERT(reporter, !set0.contains(1)); 20 REPORTER_ASSERT(reporter, set0.count() == 0); 22 REPORTER_ASSERT(reporter, set0.add(0)); 23 REPORTER_ASSERT(reporter, !set0.isEmpty()); 24 REPORTER_ASSERT(reporter, !set0.contains(-1)) [all...] |
TDStackNesterTest.cpp | 16 static void test_push(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { 21 REPORTER_ASSERT(reporter, nester->count() == count + 1); 29 static void test_pop(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { 37 REPORTER_ASSERT(reporter, top == value); 39 REPORTER_ASSERT(reporter, newCount == count - 1); 42 REPORTER_ASSERT(reporter, newCount == value); 51 static void test_nest(skiatest::Reporter* reporter, SkTDStackNester<int>* nester, int inc) [all...] |
RefDictTest.cpp | 18 DEF_TEST(RefDict, reporter) { 22 REPORTER_ASSERT(reporter, NULL == dict.find(NULL)); 23 REPORTER_ASSERT(reporter, NULL == dict.find("foo")); 24 REPORTER_ASSERT(reporter, NULL == dict.find("bar")); 27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); 28 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt()); 31 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); 32 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt()); 35 REPORTER_ASSERT(reporter, &data1 == dict.find("foo")); 36 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt()) [all...] |
DiscardableMemoryPoolTest.cpp | 11 DEF_TEST(DiscardableMemoryPool, reporter) { 15 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 18 REPORTER_ASSERT(reporter, dm1->data() != NULL); 19 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); 21 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 22 REPORTER_ASSERT(reporter, !dm1->lock()); 26 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); 29 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); 30 REPORTER_ASSERT(reporter, dm2->lock()); 33 REPORTER_ASSERT(reporter, !dm2->lock()) [all...] |
TestSize.cpp | 11 static void TestISize(skiatest::Reporter* reporter) { 15 REPORTER_ASSERT(reporter, a.isEmpty()); 17 REPORTER_ASSERT(reporter, a.isEmpty()); 19 REPORTER_ASSERT(reporter, a.isEmpty()); 21 REPORTER_ASSERT(reporter, a == b); 24 REPORTER_ASSERT(reporter, !a.isEmpty()); 26 REPORTER_ASSERT(reporter, !b.isEmpty()); 27 REPORTER_ASSERT(reporter, a == b); 28 REPORTER_ASSERT(reporter, !(a != b)) [all...] |
MetaDataTest.cpp | 11 static void test_ptrs(skiatest::Reporter* reporter) { 13 REPORTER_ASSERT(reporter, 1 == ref.getRefCnt()); 20 REPORTER_ASSERT(reporter, md0.findRefCnt(name)); 21 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref)); 22 REPORTER_ASSERT(reporter, 2 == ref.getRefCnt()); 25 REPORTER_ASSERT(reporter, md1.findRefCnt(name)); 26 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref)); 27 REPORTER_ASSERT(reporter, 3 == ref.getRefCnt()); 29 REPORTER_ASSERT(reporter, md0.removeRefCnt(name)) [all...] |