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

1 2 3 4 5 6 7 8 91011>>

  /external/skia/tests/
BitSetTest.cpp 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, data.count() == 3);
29 REPORTER_ASSERT(reporter, data[0] == 22)
    [all...]
TestTest.cpp 18 REPORTER_ASSERT(reporter, reporter);
24 REPORTER_ASSERT(reporter, reporter);
32 REPORTER_ASSERT(reporter, reporter);
33 REPORTER_ASSERT(reporter, ctxInfo.grContext());
41 REPORTER_ASSERT(reporter, reporter);
42 REPORTER_ASSERT(reporter, ctxInfo.grContext());
50 REPORTER_ASSERT(reporter, reporter);
51 REPORTER_ASSERT(reporter, ctxInfo.grContext());
RefDictTest.cpp 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, data0.unique());
37 REPORTER_ASSERT(reporter, !data1.unique())
    [all...]
F16StagesTest.cpp 31 REPORTER_ASSERT(r, ((halfs[0] >> 0) & 0xffff) == 0x0000);
32 REPORTER_ASSERT(r, ((halfs[0] >> 16) & 0xffff) == 0x3400);
33 REPORTER_ASSERT(r, ((halfs[0] >> 32) & 0xffff) == 0x3800);
34 REPORTER_ASSERT(r, ((halfs[0] >> 48) & 0xffff) == 0x3c00);
35 REPORTER_ASSERT(r, ((halfs[1] >> 0) & 0xffff) == 0xbd00);
36 REPORTER_ASSERT(r, ((halfs[1] >> 16) & 0xffff) == 0xb800);
37 REPORTER_ASSERT(r, ((halfs[1] >> 32) & 0xffff) == 0x3d00);
38 REPORTER_ASSERT(r, ((halfs[1] >> 48) & 0xffff) == 0x4000);
46 REPORTER_ASSERT(r, floats[0] == 0.00f);
47 REPORTER_ASSERT(r, floats[1] == 0.25f)
    [all...]
DiscardableMemoryPoolTest.cpp 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, !dm2->lock());
33 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed())
    [all...]
MetaDataTest.cpp 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, !md0.findRefCnt(name));
32 REPORTER_ASSERT(reporter, !md0.hasRefCnt(name, &ref))
    [all...]
VptrTest.cpp 42 REPORTER_ASSERT(r, a != b);
43 REPORTER_ASSERT(r, a != c);
44 REPORTER_ASSERT(r, a != d);
45 REPORTER_ASSERT(r, b != c);
46 REPORTER_ASSERT(r, b != d);
47 REPORTER_ASSERT(r, c != d);
50 REPORTER_ASSERT(r, a->val() != b->val());
51 REPORTER_ASSERT(r, a->val() != c->val());
52 REPORTER_ASSERT(r, a->val() != d->val());
53 REPORTER_ASSERT(r, b->val() != c->val())
    [all...]
VkHeapTests.cpp 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, heap.freeSize() == 7 * 1024 && heap.largestBlockSize() == 7 * 1024);
43 REPORTER_ASSERT(reporter, heap.freeSize() == 30 * 1024 && heap.largestBlockSize() == 23 * 1024)
    [all...]
SizeTest.cpp 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,
42 REPORTER_ASSERT(reporter, a.isEmpty())
    [all...]
StringTest.cpp 23 REPORTER_ASSERT(reporter, a.isEmpty());
24 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
32 REPORTER_ASSERT(reporter, !a.isEmpty());
33 REPORTER_ASSERT(reporter, a.size() == 5);
34 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
35 REPORTER_ASSERT(reporter, a.equals("hello", 5));
36 REPORTER_ASSERT(reporter, a.equals("hello"));
37 REPORTER_ASSERT(reporter, !a.equals("help"));
39 REPORTER_ASSERT(reporter, a.startsWith("hell"));
40 REPORTER_ASSERT(reporter, a.startsWith('h'))
    [all...]
SkSLMemoryLayoutTest.cpp 20 REPORTER_ASSERT(r, 4 == layout.size(*context.fFloat_Type));
21 REPORTER_ASSERT(r, 8 == layout.size(*context.fFloat2_Type));
22 REPORTER_ASSERT(r, 12 == layout.size(*context.fFloat3_Type));
23 REPORTER_ASSERT(r, 16 == layout.size(*context.fFloat4_Type));
24 REPORTER_ASSERT(r, 4 == layout.size(*context.fInt_Type));
25 REPORTER_ASSERT(r, 8 == layout.size(*context.fInt2_Type));
26 REPORTER_ASSERT(r, 12 == layout.size(*context.fInt3_Type));
27 REPORTER_ASSERT(r, 16 == layout.size(*context.fInt4_Type));
28 REPORTER_ASSERT(r, 1 == layout.size(*context.fBool_Type));
29 REPORTER_ASSERT(r, 2 == layout.size(*context.fBool2_Type))
    [all...]
Time.cpp 33 REPORTER_ASSERT(r, dateTime.fMonth >= 1);
34 REPORTER_ASSERT(r, dateTime.fMonth <= 12);
36 REPORTER_ASSERT(r, dateTime.fDay >= 1);
37 REPORTER_ASSERT(r, dateTime.fDay <= 31);
39 REPORTER_ASSERT(r, dateTime.fHour <= 23);
41 REPORTER_ASSERT(r, dateTime.fMinute <= 59);
43 REPORTER_ASSERT(r, dateTime.fSecond <= 60); // leap seconds are 23:59:60
47 REPORTER_ASSERT(r, SkTAbs(SkToInt(dateTime.fTimeZoneMinutes)) <= 14 * 60);
51 REPORTER_ASSERT(r, timeStamp.size() > 0);
SafeMathTest.cpp 18 REPORTER_ASSERT(r, safe.add(halfMax, halfMax) == 2 * halfMax);
19 REPORTER_ASSERT(r, safe);
20 REPORTER_ASSERT(r, safe.add(halfMax, halfMaxPlus1) == max);
21 REPORTER_ASSERT(r, safe);
22 REPORTER_ASSERT(r, safe.add(max, 1) == 0);
23 REPORTER_ASSERT(r, !safe);
29 REPORTER_ASSERT(r, !safe);
38 REPORTER_ASSERT(r, safe.mul(sqrtMax, sqrtMax) == sqrtMax * sqrtMax);
39 REPORTER_ASSERT(r, safe);
40 REPORTER_ASSERT(r, safe.mul(sqrtMax, sqrtMaxPlus1) == sqrtMax << halfBits)
    [all...]
  /external/skqp/tests/
BitSetTest.cpp 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, data.count() == 3);
29 REPORTER_ASSERT(reporter, data[0] == 22)
    [all...]
TestTest.cpp 18 REPORTER_ASSERT(reporter, reporter);
24 REPORTER_ASSERT(reporter, reporter);
32 REPORTER_ASSERT(reporter, reporter);
33 REPORTER_ASSERT(reporter, ctxInfo.grContext());
41 REPORTER_ASSERT(reporter, reporter);
42 REPORTER_ASSERT(reporter, ctxInfo.grContext());
50 REPORTER_ASSERT(reporter, reporter);
51 REPORTER_ASSERT(reporter, ctxInfo.grContext());
RefDictTest.cpp 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, data0.unique());
37 REPORTER_ASSERT(reporter, !data1.unique())
    [all...]
F16StagesTest.cpp 31 REPORTER_ASSERT(r, ((halfs[0] >> 0) & 0xffff) == 0x0000);
32 REPORTER_ASSERT(r, ((halfs[0] >> 16) & 0xffff) == 0x3400);
33 REPORTER_ASSERT(r, ((halfs[0] >> 32) & 0xffff) == 0x3800);
34 REPORTER_ASSERT(r, ((halfs[0] >> 48) & 0xffff) == 0x3c00);
35 REPORTER_ASSERT(r, ((halfs[1] >> 0) & 0xffff) == 0xbd00);
36 REPORTER_ASSERT(r, ((halfs[1] >> 16) & 0xffff) == 0xb800);
37 REPORTER_ASSERT(r, ((halfs[1] >> 32) & 0xffff) == 0x3d00);
38 REPORTER_ASSERT(r, ((halfs[1] >> 48) & 0xffff) == 0x4000);
46 REPORTER_ASSERT(r, floats[0] == 0.00f);
47 REPORTER_ASSERT(r, floats[1] == 0.25f)
    [all...]
DiscardableMemoryPoolTest.cpp 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, !dm2->lock());
33 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed())
    [all...]
MetaDataTest.cpp 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, !md0.findRefCnt(name));
32 REPORTER_ASSERT(reporter, !md0.hasRefCnt(name, &ref))
    [all...]
VptrTest.cpp 42 REPORTER_ASSERT(r, a != b);
43 REPORTER_ASSERT(r, a != c);
44 REPORTER_ASSERT(r, a != d);
45 REPORTER_ASSERT(r, b != c);
46 REPORTER_ASSERT(r, b != d);
47 REPORTER_ASSERT(r, c != d);
50 REPORTER_ASSERT(r, a->val() != b->val());
51 REPORTER_ASSERT(r, a->val() != c->val());
52 REPORTER_ASSERT(r, a->val() != d->val());
53 REPORTER_ASSERT(r, b->val() != c->val())
    [all...]
VkHeapTests.cpp 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, heap.freeSize() == 7 * 1024 && heap.largestBlockSize() == 7 * 1024);
43 REPORTER_ASSERT(reporter, heap.freeSize() == 30 * 1024 && heap.largestBlockSize() == 23 * 1024)
    [all...]
SizeTest.cpp 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,
42 REPORTER_ASSERT(reporter, a.isEmpty())
    [all...]
SkSLMemoryLayoutTest.cpp 20 REPORTER_ASSERT(r, 4 == layout.size(*context.fFloat_Type));
21 REPORTER_ASSERT(r, 8 == layout.size(*context.fFloat2_Type));
22 REPORTER_ASSERT(r, 12 == layout.size(*context.fFloat3_Type));
23 REPORTER_ASSERT(r, 16 == layout.size(*context.fFloat4_Type));
24 REPORTER_ASSERT(r, 4 == layout.size(*context.fInt_Type));
25 REPORTER_ASSERT(r, 8 == layout.size(*context.fInt2_Type));
26 REPORTER_ASSERT(r, 12 == layout.size(*context.fInt3_Type));
27 REPORTER_ASSERT(r, 16 == layout.size(*context.fInt4_Type));
28 REPORTER_ASSERT(r, 1 == layout.size(*context.fBool_Type));
29 REPORTER_ASSERT(r, 2 == layout.size(*context.fBool2_Type))
    [all...]
Time.cpp 33 REPORTER_ASSERT(r, dateTime.fMonth >= 1);
34 REPORTER_ASSERT(r, dateTime.fMonth <= 12);
36 REPORTER_ASSERT(r, dateTime.fDay >= 1);
37 REPORTER_ASSERT(r, dateTime.fDay <= 31);
39 REPORTER_ASSERT(r, dateTime.fHour <= 23);
41 REPORTER_ASSERT(r, dateTime.fMinute <= 59);
43 REPORTER_ASSERT(r, dateTime.fSecond <= 60); // leap seconds are 23:59:60
47 REPORTER_ASSERT(r, SkTAbs(SkToInt(dateTime.fTimeZoneMinutes)) <= 14 * 60);
51 REPORTER_ASSERT(r, timeStamp.size() > 0);
SafeMathTest.cpp 18 REPORTER_ASSERT(r, safe.add(halfMax, halfMax) == 2 * halfMax);
19 REPORTER_ASSERT(r, safe);
20 REPORTER_ASSERT(r, safe.add(halfMax, halfMaxPlus1) == max);
21 REPORTER_ASSERT(r, safe);
22 REPORTER_ASSERT(r, safe.add(max, 1) == 0);
23 REPORTER_ASSERT(r, !safe);
29 REPORTER_ASSERT(r, !safe);
38 REPORTER_ASSERT(r, safe.mul(sqrtMax, sqrtMax) == sqrtMax * sqrtMax);
39 REPORTER_ASSERT(r, safe);
40 REPORTER_ASSERT(r, safe.mul(sqrtMax, sqrtMaxPlus1) == sqrtMax << halfBits)
    [all...]

Completed in 740 milliseconds

1 2 3 4 5 6 7 8 91011>>