Searched refs:reporter (Results 1 - 25 of 474) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/tests/
H A DRuntimeConfigTest.cpp15 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);
H A DTracingTest.cpp11 DEF_TEST(Tracing, reporter) {
H A DTArrayTest.cpp14 static void TestTSet_basic(skiatest::Reporter* reporter) { argument
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());
36 REPORTER_ASSERT(reporter,
[all...]
H A DBitSetTest.cpp11 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, set
[all...]
H A DDequeTest.cpp11 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) { argument
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());
22 REPORTER_ASSERT(reporter, de
32 assert_iter(skiatest::Reporter* reporter, const SkDeque& deq, int max, int min) argument
83 assert_blocks(skiatest::Reporter* reporter, const SkDeque& deq, int allocCount) argument
100 TestSub(skiatest::Reporter* reporter, int allocCount) argument
[all...]
H A DTSetTest.cpp14 static void TestTSet_basic(skiatest::Reporter* reporter) { argument
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));
25 REPORTER_ASSERT(reporter, set
46 TestTSet_advanced(skiatest::Reporter* reporter) argument
99 TestTSet_merge(skiatest::Reporter* reporter) argument
[all...]
H A DTDStackNesterTest.cpp16 static void test_push(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { argument
21 REPORTER_ASSERT(reporter, nester->count() == count + 1);
29 static void test_pop(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { argument
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) { argument
58 REPORTER_ASSERT(reporter, nester->count() == 0);
59 REPORTER_ASSERT(reporter, nester->nestingLevel() == initialNesting + 1);
62 test_push(reporter, neste
77 test_stack_nester(skiatest::Reporter* reporter) argument
[all...]
H A DRefDictTest.cpp18 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,
[all...]
H A DBitmapHasherTest.cpp19 SkColor color, skiatest::Reporter* reporter) {
24 DEF_TEST(BitmapHasher, reporter) {
29 CreateTestBitmap(&bitmap, 333, 555, SK_ColorBLUE, reporter);
30 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
31 REPORTER_ASSERT(reporter, digest == 0xfb2903562766ef87ULL);
33 CreateTestBitmap(&bitmap, 555, 333, SK_ColorBLUE, reporter);
34 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
35 REPORTER_ASSERT(reporter, digest == 0xfe04023fb97d0f61ULL);
37 CreateTestBitmap(&bitmap, 555, 333, SK_ColorGREEN, reporter);
38 REPORTER_ASSERT(reporter, SkBitmapHashe
18 CreateTestBitmap(SkBitmap* bitmap, int width, int height, SkColor color, skiatest::Reporter* reporter) argument
[all...]
H A DDiscardableMemoryPoolTest.cpp11 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, !dm
[all...]
H A DMetaDataTest.cpp11 static void test_ptrs(skiatest::Reporter* reporter) { argument
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));
30 REPORTER_ASSERT(reporter, !md
[all...]
H A DSizeTest.cpp12 DEF_TEST(ISize, reporter) {
16 REPORTER_ASSERT(reporter, a.isEmpty());
18 REPORTER_ASSERT(reporter, a.isEmpty());
20 REPORTER_ASSERT(reporter, a.isEmpty());
22 REPORTER_ASSERT(reporter, a == b);
25 REPORTER_ASSERT(reporter, !a.isEmpty());
27 REPORTER_ASSERT(reporter, !b.isEmpty());
28 REPORTER_ASSERT(reporter, a == b);
29 REPORTER_ASSERT(reporter, !(a != b));
30 REPORTER_ASSERT(reporter,
[all...]
H A DGrContextFactoryTest.cpp13 DEF_GPUTEST(GrContextFactory, reporter, factory) {
18 REPORTER_ASSERT(reporter,
23 REPORTER_ASSERT(reporter,
28 REPORTER_ASSERT(reporter,
/external/skia/tests/
H A DRuntimeConfigTest.cpp15 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);
H A DTracingTest.cpp11 DEF_TEST(Tracing, reporter) {
H A DTArrayTest.cpp14 static void TestTSet_basic(skiatest::Reporter* reporter) { argument
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());
36 REPORTER_ASSERT(reporter,
[all...]
H A DBitSetTest.cpp11 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, set
[all...]
H A DBitmapHasherTest.cpp19 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);
38 CreateTestBitmap(&bitmap, 555, 333, SK_ColorGREEN, reporter);
18 CreateTestBitmap(SkBitmap* bitmap, int width, int height, SkColor color, skiatest::Reporter* reporter) argument
[all...]
H A DDequeTest.cpp11 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) { argument
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());
22 REPORTER_ASSERT(reporter, NUL
32 assert_iter(skiatest::Reporter* reporter, const SkDeque& deq, int max, int min) argument
83 assert_blocks(skiatest::Reporter* reporter, const SkDeque& deq, int allocCount) argument
100 TestSub(skiatest::Reporter* reporter, int allocCount) argument
[all...]
H A DTSetTest.cpp14 static void TestTSet_basic(skiatest::Reporter* reporter) { argument
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));
25 REPORTER_ASSERT(reporter, set
46 TestTSet_advanced(skiatest::Reporter* reporter) argument
99 TestTSet_merge(skiatest::Reporter* reporter) argument
[all...]
H A DTDStackNesterTest.cpp16 static void test_push(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { argument
21 REPORTER_ASSERT(reporter, nester->count() == count + 1);
29 static void test_pop(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { argument
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) { argument
58 REPORTER_ASSERT(reporter, nester->count() == 0);
59 REPORTER_ASSERT(reporter, nester->nestingLevel() == initialNesting + 1);
62 test_push(reporter, neste
77 test_stack_nester(skiatest::Reporter* reporter) argument
[all...]
H A DRefDictTest.cpp18 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,
[all...]
H A DDiscardableMemoryPoolTest.cpp11 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, !dm
[all...]
H A DTestSize.cpp11 static void TestISize(skiatest::Reporter* reporter) { argument
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));
29 REPORTER_ASSERT(reporter,
[all...]
H A DMetaDataTest.cpp11 static void test_ptrs(skiatest::Reporter* reporter) { argument
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));
30 REPORTER_ASSERT(reporter, !md
[all...]

Completed in 414 milliseconds

1234567891011>>