Searched refs:reporter (Results 1 - 25 of 373) 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);
25 REPORTER_ASSERT(reporter, factory);
32 DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuAllContexts, reporter, ctxInfo) {
33 REPORTER_ASSERT(reporter, reporter);
[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 DTracingTest.cpp11 DEF_TEST(Tracing, reporter) {
H A DTemplatesTest.cpp12 static void test_automalloc_realloc(skiatest::Reporter* reporter) { argument
17 REPORTER_ASSERT(reporter, array[0] == 1);
23 REPORTER_ASSERT(reporter, array[0] == 1);
27 REPORTER_ASSERT(reporter, array[0] == 1);
31 REPORTER_ASSERT(reporter, array[0] == 1);
43 REPORTER_ASSERT(reporter, array[i] == 10 - i);
47 REPORTER_ASSERT(reporter, array[i] == 10 - i);
51 REPORTER_ASSERT(reporter, array[0] = 10);
59 REPORTER_ASSERT(reporter, array[0] == 1);
65 REPORTER_ASSERT(reporter, arra
78 test_container_apis(skiatest::Reporter* reporter) argument
108 test_realloc_to_zero(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, 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) {
15 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed());
18 REPORTER_ASSERT(reporter, dm1->data() != nullptr);
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.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.cpp21 void subheap_test(skiatest::Reporter* reporter, GrContext* context) { argument
28 REPORTER_ASSERT(reporter, heap.alloc(64 * 1024, &alloc0));
29 REPORTER_ASSERT(reporter, alloc0.fOffset == 0);
30 REPORTER_ASSERT(reporter, alloc0.fSize == 64 * 1024);
31 REPORTER_ASSERT(reporter, heap.freeSize() == 0 && heap.largestBlockSize() == 0);
33 REPORTER_ASSERT(reporter, heap.freeSize() == 64*1024 && heap.largestBlockSize() == 64 * 1024);
36 REPORTER_ASSERT(reporter, heap.alloc(16 * 1024, &alloc0));
37 REPORTER_ASSERT(reporter, heap.alloc(23 * 1024, &alloc1));
38 REPORTER_ASSERT(reporter, heap.alloc(18 * 1024, &alloc2));
39 REPORTER_ASSERT(reporter, hea
118 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 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()->getUseInstanced() == false);
48 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseDIText() == false);
49 REPORTER_ASSERT(reporter, config
[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.cpp13 static void test_bitmap(skiatest::Reporter* reporter) { argument
22 REPORTER_ASSERT(reporter, shader);
23 REPORTER_ASSERT(reporter, !shader->isOpaque());
31 REPORTER_ASSERT(reporter, shader);
32 REPORTER_ASSERT(reporter, !shader->isOpaque());
38 REPORTER_ASSERT(reporter, shader);
39 REPORTER_ASSERT(reporter, shader->isOpaque());
45 REPORTER_ASSERT(reporter, shader);
46 REPORTER_ASSERT(reporter, !shader->isOpaque());
49 static void test_gradient(skiatest::Reporter* reporter) { argument
87 test_color(skiatest::Reporter* reporter) argument
[all...]
H A DFrontBufferedStreamTest.cpp16 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, argument
22 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd());
23 REPORTER_ASSERT(reporter, memcmp(storage.get(), expectations, bytesRead) == 0);
26 static void test_rewind(skiatest::Reporter* reporter, argument
29 REPORTER_ASSERT(reporter, success == shouldSucceed);
36 static void test_hasLength(skiatest::Reporter* reporter, argument
40 REPORTER_ASSERT(reporter, bufferedStream.hasLength());
42 REPORTER_ASSERT(reporter, !bufferedStream.hasLength());
53 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { argument
60 test_hasLength(reporter, *bufferedStrea
84 test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) argument
103 test_skipping(skiatest::Reporter* reporter, size_t bufferSize) argument
153 test_read_beyond_buffer(skiatest::Reporter* reporter, size_t bufferSize) argument
201 test_length_combos(skiatest::Reporter* reporter, size_t bufferSize) argument
213 test_initial_offset(skiatest::Reporter* reporter, size_t bufferSize) argument
243 test_buffers(skiatest::Reporter* reporter, size_t bufferSize) argument
[all...]
H A DTArrayTest.cpp15 static void TestTSet_basic(skiatest::Reporter* reporter) { argument
19 REPORTER_ASSERT(reporter, a.empty());
20 REPORTER_ASSERT(reporter, a.count() == 0);
24 REPORTER_ASSERT(reporter, !a.empty());
25 REPORTER_ASSERT(reporter, a.count() == 1);
29 REPORTER_ASSERT(reporter, a.empty());
30 REPORTER_ASSERT(reporter, a.count() == 0);
34 REPORTER_ASSERT(reporter, a.push_back() = 1);
36 REPORTER_ASSERT(reporter, !a.empty());
37 REPORTER_ASSERT(reporter,
62 test_swap(skiatest::Reporter* reporter, SkTArray<T>* (&arrays)[4], int (&sizes)[7]) argument
96 test_swap(skiatest::Reporter* reporter) argument
122 test_copy_ctor(skiatest::Reporter* reporter, SkTArray<T, MEM_MOVE>&& array) argument
141 test_move(skiatest::Reporter* reporter) argument
226 test_unnecessary_alloc(skiatest::Reporter* reporter) argument
284 test_self_assignment(skiatest::Reporter* reporter) argument
[all...]
H A DDataRefTest.cpp17 static void test_is_equal(skiatest::Reporter* reporter, argument
19 REPORTER_ASSERT(reporter, a->count() == b->count());
24 REPORTER_ASSERT(reporter, sizea == sizeb);
25 REPORTER_ASSERT(reporter, !memcmp(mema, memb, sizea));
29 static void test_datatable_is_empty(skiatest::Reporter* reporter, SkDataTable* table) { argument
30 REPORTER_ASSERT(reporter, table->isEmpty());
31 REPORTER_ASSERT(reporter, 0 == table->count());
34 static void test_emptytable(skiatest::Reporter* reporter) { argument
40 test_datatable_is_empty(reporter, table0.get());
41 test_datatable_is_empty(reporter, table
50 test_simpletable(skiatest::Reporter* reporter) argument
63 test_vartable(skiatest::Reporter* reporter) argument
88 test_globaltable(skiatest::Reporter* reporter) argument
121 assert_len(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, size_t len) argument
125 assert_data(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, const void* data, size_t len) argument
131 test_cstring(skiatest::Reporter* reporter) argument
145 test_files(skiatest::Reporter* reporter) argument
207 check_abcs(skiatest::Reporter* reporter, const char buffer[], size_t size) argument
215 check_alphabet_stream(skiatest::Reporter* reporter, SkStream* stream) argument
237 check_alphabet_buffer(skiatest::Reporter* reporter, const SkROBuffer* reader) argument
[all...]
H A DDrawFilterTest.cpp29 static void test_saverestore(skiatest::Reporter* reporter) { argument
35 REPORTER_ASSERT(reporter, nullptr == canvas->getDrawFilter());
39 REPORTER_ASSERT(reporter, nullptr != canvas->getDrawFilter());
42 REPORTER_ASSERT(reporter, nullptr == canvas->getDrawFilter());
45 DEF_TEST(DrawFilter, reporter) {
46 test_saverestore(reporter);
H A DPathOpsDPointTest.cpp23 DEF_TEST(PathOpsDPoint, reporter) {
28 REPORTER_ASSERT(reporter, p == pt);
29 REPORTER_ASSERT(reporter, !(pt != pt));
32 REPORTER_ASSERT(reporter, p == pt);
34 REPORTER_ASSERT(reporter, p == pt);
35 REPORTER_ASSERT(reporter, p.approximatelyEqual(pt));
38 REPORTER_ASSERT(reporter, p == pt);
39 REPORTER_ASSERT(reporter, p.approximatelyEqual(sPt));
40 REPORTER_ASSERT(reporter, p.roughlyEqual(pt));
42 REPORTER_ASSERT(reporter,
[all...]
H A DPointTest.cpp13 static void test_casts(skiatest::Reporter* reporter) { argument
20 REPORTER_ASSERT(reporter, p.asScalars() == pPtr);
21 REPORTER_ASSERT(reporter, r.asScalars() == rPtr);
25 static void test_Normalize(skiatest::Reporter* reporter, argument
32 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength));
33 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1));
38 static void test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y, argument
46 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, s2));
47 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, expectedLength));
49 test_Normalize(reporter,
59 get_value(skiatest::Reporter* reporter, T value) argument
70 force_as_float(skiatest::Reporter* reporter, float value) argument
85 test_overflow(skiatest::Reporter* reporter) argument
108 test_underflow(skiatest::Reporter* reporter) argument
[all...]
H A DGrTRecorderTest.cpp30 static void test_empty_back_and_pop(skiatest::Reporter* reporter) { argument
39 REPORTER_ASSERT(reporter, recorder.empty());
43 REPORTER_ASSERT(reporter, i == *GrNEW_APPEND_TO_RECORDER(recorder,
46 REPORTER_ASSERT(reporter, i ==
51 REPORTER_ASSERT(reporter, !recorder.empty());
52 REPORTER_ASSERT(reporter, i == recorder.back());
56 REPORTER_ASSERT(reporter, !recorder.empty());
57 REPORTER_ASSERT(reporter, i-1 == recorder.back());
62 REPORTER_ASSERT(reporter, !recorder.empty());
64 REPORTER_ASSERT(reporter, recorde
88 test_extra_data(skiatest::Reporter* reporter) argument
223 test_subclasses(skiatest::Reporter* reporter) argument
266 test_subclasses_iters(skiatest::Reporter* reporter, Order& order, Base::Recorder::Iter& iter, Base::Recorder::ReverseIter& reverseIter, int i) argument
[all...]
H A DMemoryTest.cpp3 DEF_TEST(memory_calloc, reporter) {
8 REPORTER_ASSERT(reporter, 0 == zeros[i]);
H A DRenderTargetContextTest.cpp31 static void check_is_wrapped_status(skiatest::Reporter* reporter, argument
34 REPORTER_ASSERT(reporter, rtCtx->isWrapped_ForTesting() == wrappedExpectation);
37 REPORTER_ASSERT(reporter, tProxy);
39 REPORTER_ASSERT(reporter, tProxy->isWrapped_ForTesting() == wrappedExpectation);
42 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(RenderTargetContextTest, reporter, ctxInfo) {
48 check_is_wrapped_status(reporter, rtCtx.get(), true);
56 check_is_wrapped_status(reporter, rtCtx.get(), false);
59 REPORTER_ASSERT(reporter, rt);
61 check_is_wrapped_status(reporter, rtCtx.get(), true);
69 check_is_wrapped_status(reporter, rtCt
[all...]
H A DRefCntTest.cpp22 static void test_refCnt(skiatest::Reporter* reporter) { argument
34 REPORTER_ASSERT(reporter, ref->unique());
55 static void test_weakRefCnt(skiatest::Reporter* reporter) { argument
73 REPORTER_ASSERT(reporter, ref->unique());
74 SkDEBUGCODE(REPORTER_ASSERT(reporter, ref->getWeakCnt() == 1));
78 DEF_TEST(RefCnt, reporter) {
79 test_refCnt(reporter);
80 test_weakRefCnt(reporter);
90 #define check(reporter, ref, unref, make, kill) \
91 REPORTER_ASSERT(reporter, gRefCounte
[all...]
H A DLListTest.cpp27 skiatest::Reporter* reporter,
33 REPORTER_ASSERT(reporter, empty == list.isEmpty());
36 REPORTER_ASSERT(reporter, numElements == list.countEntries());
37 REPORTER_ASSERT(reporter, in0 == list.isInList(&elements[0]));
38 REPORTER_ASSERT(reporter, in1 == list.isInList(&elements[1]));
39 REPORTER_ASSERT(reporter, in2 == list.isInList(&elements[2]));
40 REPORTER_ASSERT(reporter, in3 == list.isInList(&elements[3]));
44 static void test_tinternallist(skiatest::Reporter* reporter) { argument
54 check_list(list, reporter, true, 0, false, false, false, false, elements);
58 check_list(list, reporter, fals
26 check_list(const SkTInternalLList<ListElement>& list, skiatest::Reporter* reporter, bool empty, int numElements, bool in0, bool in1, bool in2, bool in3, ListElement elements[4]) argument
117 test_tllist(skiatest::Reporter* reporter) argument
[all...]

Completed in 394 milliseconds

1234567891011>>