HomeSort by relevance Sort by last modified time
    Searched refs:reporter (Results 1 - 25 of 445) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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) {
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...]
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...]
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, !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, data0.unique())
    [all...]
BitmapHasherTest.cpp 19 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);
    [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...]
MetaDataTest.cpp 12 static void test_ptrs(skiatest::Reporter* reporter) {
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))
    [all...]
SizeTest.cpp 12 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...]
GrContextFactoryTest.cpp 13 DEF_GPUTEST(GrContextFactory, reporter, factory) {
18 REPORTER_ASSERT(reporter,
23 REPORTER_ASSERT(reporter,
28 REPORTER_ASSERT(reporter,
Reader32Test.cpp 11 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) {
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) {
19 REPORTER_ASSERT(reporter, 0 == reader.offset());
20 REPORTER_ASSERT(reporter, reader.size() == reader.available());
21 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()))
    [all...]
GpuRectanizerTest.cpp 21 static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) {
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);
33 static void test_rectanizer_inserts(skiatest::Reporter*,
47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects)
    [all...]
FrontBufferedStreamTest.cpp 16 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream,
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,
29 REPORTER_ASSERT(reporter, success == shouldSucceed);
36 static void test_hasLength(skiatest::Reporter* reporter,
40 REPORTER_ASSERT(reporter, bufferedStream.hasLength())
    [all...]
UtilsTest.cpp 28 static void test_autounref(skiatest::Reporter* reporter) {
30 REPORTER_ASSERT(reporter, obj.unique());
33 REPORTER_ASSERT(reporter, &obj == tmp.get());
34 REPORTER_ASSERT(reporter, obj.unique());
36 REPORTER_ASSERT(reporter, &obj == tmp.detach());
37 REPORTER_ASSERT(reporter, obj.unique());
38 REPORTER_ASSERT(reporter, NULL == tmp.detach());
39 REPORTER_ASSERT(reporter, NULL == tmp.get());
42 REPORTER_ASSERT(reporter, !obj.unique())
    [all...]
XfermodeTest.cpp 14 static void test_asMode(skiatest::Reporter* reporter) {
19 REPORTER_ASSERT(reporter, reportedMode != mode);
22 REPORTER_ASSERT(reporter, SkXfermode::AsMode(xfer, &reportedMode));
23 REPORTER_ASSERT(reporter, reportedMode == mode);
28 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode));
29 REPORTER_ASSERT(reporter, reportedMode == mode);
32 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode);
37 static void test_IsMode(skiatest::Reporter* reporter) {
    [all...]
StringTest.cpp 35 DEF_TEST(String, reporter) {
41 REPORTER_ASSERT(reporter, a.isEmpty());
42 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
50 REPORTER_ASSERT(reporter, !a.isEmpty());
51 REPORTER_ASSERT(reporter, a.size() == 5);
52 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
53 REPORTER_ASSERT(reporter, a.equals("hello", 5));
54 REPORTER_ASSERT(reporter, a.equals("hello"));
55 REPORTER_ASSERT(reporter, !a.equals("help"));
57 REPORTER_ASSERT(reporter, a.startsWith("hell"))
    [all...]
GrOrderedSetTest.cpp 17 DEF_TEST(GrOrderedSet, reporter) {
20 REPORTER_ASSERT(reporter, set.empty());
29 REPORTER_ASSERT(reporter, *xi == x);
30 REPORTER_ASSERT(reporter, !set.empty());
41 REPORTER_ASSERT(reporter, *set.begin() == 0);
42 REPORTER_ASSERT(reporter, *set.last() == 999);
43 REPORTER_ASSERT(reporter, --(++set.begin()) == set.begin());
44 REPORTER_ASSERT(reporter, --set.end() == set.last());
45 REPORTER_ASSERT(reporter, set.count() == totalCount);
54 REPORTER_ASSERT(reporter, b == set.end() || *a <= *b)
    [all...]
MemsetTest.cpp 12 static void check_alloc(skiatest::Reporter* reporter, const SkChunkAlloc& alloc,
14 REPORTER_ASSERT(reporter, alloc.totalCapacity() >= capacity);
15 REPORTER_ASSERT(reporter, alloc.totalUsed() == used);
16 SkDEBUGCODE(REPORTER_ASSERT(reporter, alloc.blockCount() == numBlocks);)
19 static void* simple_alloc(skiatest::Reporter* reporter, SkChunkAlloc* alloc, size_t size) {
21 check_alloc(reporter, *alloc, size, size, 1);
22 REPORTER_ASSERT(reporter, alloc->contains(ptr));
26 static void test_chunkalloc(skiatest::Reporter* reporter)
    [all...]
BitmapTest.cpp 13 static void test_bigalloc(skiatest::Reporter* reporter) {
19 REPORTER_ASSERT(reporter, !bm.tryAllocPixels(info));
22 REPORTER_ASSERT(reporter, !pr);
25 static void test_allocpixels(skiatest::Reporter* reporter) {
33 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
35 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
38 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
41 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes())
    [all...]
DrawFilterTest.cpp 27 static void test_saverestore(skiatest::Reporter* reporter) {
34 REPORTER_ASSERT(reporter, NULL == canvas->getDrawFilter());
38 REPORTER_ASSERT(reporter, NULL != canvas->getDrawFilter());
41 REPORTER_ASSERT(reporter, NULL == canvas->getDrawFilter());
44 DEF_TEST(DrawFilter, reporter) {
45 test_saverestore(reporter);
DataRefTest.cpp 16 static void test_is_equal(skiatest::Reporter* reporter,
18 REPORTER_ASSERT(reporter, a->count() == b->count());
23 REPORTER_ASSERT(reporter, sizea == sizeb);
24 REPORTER_ASSERT(reporter, !memcmp(mema, memb, sizea));
28 static void test_datatable_is_empty(skiatest::Reporter* reporter,
30 REPORTER_ASSERT(reporter, table->isEmpty());
31 REPORTER_ASSERT(reporter, 0 == table->count());
34 static void test_emptytable(skiatest::Reporter* reporter)
    [all...]
PathOpsDPointTest.cpp 23 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, p.fX == 0 && p.fY == 0)
    [all...]
SmallAllocatorTest.cpp 30 template<uint32_t kMaxObjects, size_t kBytes> void test_allocator(skiatest::Reporter* reporter) {
35 REPORTER_ASSERT(reporter, c != NULL);
36 REPORTER_ASSERT(reporter, CountingClass::GetCount() == static_cast<int>(i+1));
39 REPORTER_ASSERT(reporter, CountingClass::GetCount() == 0);
44 DEF_TEST(SmallAllocator_destructor, reporter) {
48 test_allocator<5, 20>(reporter);
49 test_allocator<10, 40>(reporter);
50 test_allocator<20, 80>(reporter);
55 test_allocator<50, 20>(reporter);
    [all...]
TemplatesTest.cpp 12 static void test_automalloc_realloc(skiatest::Reporter* reporter) {
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)
    [all...]

Completed in 226 milliseconds

1 2 3 4 5 6 7 8 91011>>