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

1234567891011>>

/external/skia/tests/
H A DTestTest.cpp17 DEF_TEST(TestNormal, reporter) {
18 REPORTER_ASSERT(reporter, reporter);
23 DEF_GPUTEST(TestGpuFactory, reporter, factory) {
24 REPORTER_ASSERT(reporter, reporter);
31 DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuAllContexts, reporter, ctxInfo) {
32 REPORTER_ASSERT(reporter, reporter);
33 REPORTER_ASSERT(reporter, ctxInf
[all...]
H A DBitSetTest.cpp11 DEF_TEST(BitSet, reporter) {
13 REPORTER_ASSERT(reporter, set0.has(0) == false);
14 REPORTER_ASSERT(reporter, set0.has(32767) == false);
15 REPORTER_ASSERT(reporter, set0.has(65535) == false);
18 REPORTER_ASSERT(reporter, set0.has(22) == true);
20 REPORTER_ASSERT(reporter, set0.has(24) == true);
22 REPORTER_ASSERT(reporter, set0.has(35) == true);
23 REPORTER_ASSERT(reporter, set0.has(24) == true);
24 REPORTER_ASSERT(reporter, set0.has(35) == true);
28 REPORTER_ASSERT(reporter, dat
[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, nullptr == deq.front());
17 REPORTER_ASSERT(reporter, nullptr == 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 DRefDictTest.cpp18 DEF_TEST(RefDict, reporter) {
22 REPORTER_ASSERT(reporter, nullptr == dict.find(nullptr));
23 REPORTER_ASSERT(reporter, nullptr == dict.find("foo"));
24 REPORTER_ASSERT(reporter, nullptr == dict.find("bar"));
27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
28 REPORTER_ASSERT(reporter, !data0.unique());
31 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
32 REPORTER_ASSERT(reporter, !data0.unique());
35 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
36 REPORTER_ASSERT(reporter, data
[all...]
H A DDiscardableMemoryPoolTest.cpp11 DEF_TEST(DiscardableMemoryPool, reporter) {
14 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed());
17 REPORTER_ASSERT(reporter, dm1->data() != nullptr);
18 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed());
20 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed());
21 REPORTER_ASSERT(reporter, !dm1->lock());
25 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed());
28 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed());
29 REPORTER_ASSERT(reporter, dm2->lock());
32 REPORTER_ASSERT(reporter, !dm
[all...]
H A DMetaDataTest.cpp12 static void test_ptrs(skiatest::Reporter* reporter) { argument
14 REPORTER_ASSERT(reporter, ref.unique());
21 REPORTER_ASSERT(reporter, md0.findRefCnt(name));
22 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref));
23 REPORTER_ASSERT(reporter, !ref.unique());
26 REPORTER_ASSERT(reporter, md1.findRefCnt(name));
27 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref));
28 REPORTER_ASSERT(reporter, !ref.unique());
30 REPORTER_ASSERT(reporter, md0.removeRefCnt(name));
31 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 DVkHeapTests.cpp22 void subheap_test(skiatest::Reporter* reporter, GrContext* context) { argument
29 REPORTER_ASSERT(reporter, heap.alloc(64 * 1024, &alloc0));
30 REPORTER_ASSERT(reporter, alloc0.fOffset == 0);
31 REPORTER_ASSERT(reporter, alloc0.fSize == 64 * 1024);
32 REPORTER_ASSERT(reporter, heap.freeSize() == 0 && heap.largestBlockSize() == 0);
34 REPORTER_ASSERT(reporter, heap.freeSize() == 64*1024 && heap.largestBlockSize() == 64 * 1024);
37 REPORTER_ASSERT(reporter, heap.alloc(16 * 1024, &alloc0));
38 REPORTER_ASSERT(reporter, heap.alloc(23 * 1024, &alloc1));
39 REPORTER_ASSERT(reporter, heap.alloc(18 * 1024, &alloc2));
40 REPORTER_ASSERT(reporter, hea
119 suballoc_test(skiatest::Reporter* reporter, GrContext* context) argument
178 singlealloc_test(skiatest::Reporter* reporter, GrContext* context) argument
[all...]
H A DReader32Test.cpp11 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) { argument
12 REPORTER_ASSERT(reporter, reader.eof());
13 REPORTER_ASSERT(reporter, reader.size() == reader.offset());
14 REPORTER_ASSERT(reporter, (const char*)reader.peek() ==
18 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) { argument
19 REPORTER_ASSERT(reporter, 0 == reader.offset());
20 REPORTER_ASSERT(reporter, reader.size() == reader.available());
21 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()));
22 REPORTER_ASSERT(reporter, !reader.isAvailable(reader.size() + 1));
23 REPORTER_ASSERT(reporter, reade
26 assert_empty(skiatest::Reporter* reporter, const SkReader32& reader) argument
[all...]
H A DRefCntTest.cpp22 static void test_refCnt(skiatest::Reporter* reporter) { argument
31 REPORTER_ASSERT(reporter, ref->unique());
52 static void test_weakRefCnt(skiatest::Reporter* reporter) { argument
65 REPORTER_ASSERT(reporter, ref->unique());
66 SkDEBUGCODE(REPORTER_ASSERT(reporter, ref->getWeakCnt() == 1));
70 DEF_TEST(RefCnt, reporter) {
71 test_refCnt(reporter);
72 test_weakRefCnt(reporter);
82 #define check(reporter, ref, unref, make, kill) \
83 REPORTER_ASSERT(reporter, gRefCounte
[all...]
H A DGpuRectanizerTest.cpp21 static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) { argument
22 REPORTER_ASSERT(reporter, kWidth == rectanizer->width());
23 REPORTER_ASSERT(reporter, kHeight == rectanizer->height());
27 REPORTER_ASSERT(reporter, rectanizer->addRect(50, 50, &loc));
28 REPORTER_ASSERT(reporter, rectanizer->percentFull() > 0.0f);
30 REPORTER_ASSERT(reporter, rectanizer->percentFull() == 0.0f);
47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { argument
50 test_rectanizer_basic(reporter, &skylineRectanizer);
51 test_rectanizer_inserts(reporter, &skylineRectanizer, rects);
54 static void test_pow2(skiatest::Reporter* reporter, cons argument
[all...]
H A DShaderOpacityTest.cpp14 static void test_bitmap(skiatest::Reporter* reporter) { argument
23 REPORTER_ASSERT(reporter, shader);
24 REPORTER_ASSERT(reporter, !shader->isOpaque());
32 REPORTER_ASSERT(reporter, shader);
33 REPORTER_ASSERT(reporter, !shader->isOpaque());
39 REPORTER_ASSERT(reporter, shader);
40 REPORTER_ASSERT(reporter, shader->isOpaque());
46 REPORTER_ASSERT(reporter, shader);
47 REPORTER_ASSERT(reporter, !shader->isOpaque());
50 static void test_gradient(skiatest::Reporter* reporter) { argument
88 test_color(skiatest::Reporter* reporter) argument
[all...]
/external/skqp/tests/
H A DTestTest.cpp17 DEF_TEST(TestNormal, reporter) {
18 REPORTER_ASSERT(reporter, reporter);
23 DEF_GPUTEST(TestGpuFactory, reporter, factory) {
24 REPORTER_ASSERT(reporter, reporter);
31 DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuAllContexts, reporter, ctxInfo) {
32 REPORTER_ASSERT(reporter, reporter);
33 REPORTER_ASSERT(reporter, ctxInf
[all...]
H A DBitSetTest.cpp11 DEF_TEST(BitSet, reporter) {
13 REPORTER_ASSERT(reporter, set0.has(0) == false);
14 REPORTER_ASSERT(reporter, set0.has(32767) == false);
15 REPORTER_ASSERT(reporter, set0.has(65535) == false);
18 REPORTER_ASSERT(reporter, set0.has(22) == true);
20 REPORTER_ASSERT(reporter, set0.has(24) == true);
22 REPORTER_ASSERT(reporter, set0.has(35) == true);
23 REPORTER_ASSERT(reporter, set0.has(24) == true);
24 REPORTER_ASSERT(reporter, set0.has(35) == true);
28 REPORTER_ASSERT(reporter, dat
[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, nullptr == deq.front());
17 REPORTER_ASSERT(reporter, nullptr == 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 DRefDictTest.cpp18 DEF_TEST(RefDict, reporter) {
22 REPORTER_ASSERT(reporter, nullptr == dict.find(nullptr));
23 REPORTER_ASSERT(reporter, nullptr == dict.find("foo"));
24 REPORTER_ASSERT(reporter, nullptr == dict.find("bar"));
27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
28 REPORTER_ASSERT(reporter, !data0.unique());
31 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
32 REPORTER_ASSERT(reporter, !data0.unique());
35 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
36 REPORTER_ASSERT(reporter, data
[all...]
H A DDiscardableMemoryPoolTest.cpp11 DEF_TEST(DiscardableMemoryPool, reporter) {
14 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed());
17 REPORTER_ASSERT(reporter, dm1->data() != nullptr);
18 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed());
20 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed());
21 REPORTER_ASSERT(reporter, !dm1->lock());
25 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed());
28 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed());
29 REPORTER_ASSERT(reporter, dm2->lock());
32 REPORTER_ASSERT(reporter, !dm
[all...]
H A DMetaDataTest.cpp12 static void test_ptrs(skiatest::Reporter* reporter) { argument
14 REPORTER_ASSERT(reporter, ref.unique());
21 REPORTER_ASSERT(reporter, md0.findRefCnt(name));
22 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref));
23 REPORTER_ASSERT(reporter, !ref.unique());
26 REPORTER_ASSERT(reporter, md1.findRefCnt(name));
27 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref));
28 REPORTER_ASSERT(reporter, !ref.unique());
30 REPORTER_ASSERT(reporter, md0.removeRefCnt(name));
31 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 DVkHeapTests.cpp22 void subheap_test(skiatest::Reporter* reporter, GrContext* context) { argument
29 REPORTER_ASSERT(reporter, heap.alloc(64 * 1024, &alloc0));
30 REPORTER_ASSERT(reporter, alloc0.fOffset == 0);
31 REPORTER_ASSERT(reporter, alloc0.fSize == 64 * 1024);
32 REPORTER_ASSERT(reporter, heap.freeSize() == 0 && heap.largestBlockSize() == 0);
34 REPORTER_ASSERT(reporter, heap.freeSize() == 64*1024 && heap.largestBlockSize() == 64 * 1024);
37 REPORTER_ASSERT(reporter, heap.alloc(16 * 1024, &alloc0));
38 REPORTER_ASSERT(reporter, heap.alloc(23 * 1024, &alloc1));
39 REPORTER_ASSERT(reporter, heap.alloc(18 * 1024, &alloc2));
40 REPORTER_ASSERT(reporter, hea
119 suballoc_test(skiatest::Reporter* reporter, GrContext* context) argument
178 singlealloc_test(skiatest::Reporter* reporter, GrContext* context) argument
[all...]
H A DReader32Test.cpp11 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) { argument
12 REPORTER_ASSERT(reporter, reader.eof());
13 REPORTER_ASSERT(reporter, reader.size() == reader.offset());
14 REPORTER_ASSERT(reporter, (const char*)reader.peek() ==
18 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) { argument
19 REPORTER_ASSERT(reporter, 0 == reader.offset());
20 REPORTER_ASSERT(reporter, reader.size() == reader.available());
21 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()));
22 REPORTER_ASSERT(reporter, !reader.isAvailable(reader.size() + 1));
23 REPORTER_ASSERT(reporter, reade
26 assert_empty(skiatest::Reporter* reporter, const SkReader32& reader) argument
[all...]
H A DRefCntTest.cpp22 static void test_refCnt(skiatest::Reporter* reporter) { argument
31 REPORTER_ASSERT(reporter, ref->unique());
52 static void test_weakRefCnt(skiatest::Reporter* reporter) { argument
65 REPORTER_ASSERT(reporter, ref->unique());
66 SkDEBUGCODE(REPORTER_ASSERT(reporter, ref->getWeakCnt() == 1));
70 DEF_TEST(RefCnt, reporter) {
71 test_refCnt(reporter);
72 test_weakRefCnt(reporter);
82 #define check(reporter, ref, unref, make, kill) \
83 REPORTER_ASSERT(reporter, gRefCounte
[all...]
H A DGpuRectanizerTest.cpp21 static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) { argument
22 REPORTER_ASSERT(reporter, kWidth == rectanizer->width());
23 REPORTER_ASSERT(reporter, kHeight == rectanizer->height());
27 REPORTER_ASSERT(reporter, rectanizer->addRect(50, 50, &loc));
28 REPORTER_ASSERT(reporter, rectanizer->percentFull() > 0.0f);
30 REPORTER_ASSERT(reporter, rectanizer->percentFull() == 0.0f);
47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { argument
50 test_rectanizer_basic(reporter, &skylineRectanizer);
51 test_rectanizer_inserts(reporter, &skylineRectanizer, rects);
54 static void test_pow2(skiatest::Reporter* reporter, cons argument
[all...]
H A DShaderOpacityTest.cpp14 static void test_bitmap(skiatest::Reporter* reporter) { argument
23 REPORTER_ASSERT(reporter, shader);
24 REPORTER_ASSERT(reporter, !shader->isOpaque());
32 REPORTER_ASSERT(reporter, shader);
33 REPORTER_ASSERT(reporter, !shader->isOpaque());
39 REPORTER_ASSERT(reporter, shader);
40 REPORTER_ASSERT(reporter, shader->isOpaque());
46 REPORTER_ASSERT(reporter, shader);
47 REPORTER_ASSERT(reporter, !shader->isOpaque());
50 static void test_gradient(skiatest::Reporter* reporter) { argument
88 test_color(skiatest::Reporter* reporter) argument
[all...]
H A DTestConfigParsing.cpp32 DEF_TEST(ParseConfigs_Gpu, reporter) {
39 REPORTER_ASSERT(reporter, configs.count() == 1);
40 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gl"));
41 REPORTER_ASSERT(reporter, configs[0]->getViaParts().count() == 0);
43 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu());
44 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getContextType()
46 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseNVPR() == false);
47 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseDIText() == false);
48 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getSamples() == 1);
49 REPORTER_ASSERT(reporter, config
[all...]

Completed in 6912 milliseconds

1234567891011>>