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

1 2 3 4 5 6

  /external/skia/tests/
BitSetTest.cpp 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);
29 REPORTER_ASSERT(reporter, set0.isBitSet(35) == true)
    [all...]
RefDictTest.cpp 24 REPORTER_ASSERT(reporter, NULL == dict.find(NULL));
25 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
26 REPORTER_ASSERT(reporter, NULL == dict.find("bar"));
29 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
30 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
33 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
34 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
37 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
38 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt());
39 REPORTER_ASSERT(reporter, 2 == data1.getRefCnt())
    [all...]
TSetTest.cpp 15 REPORTER_ASSERT(reporter, set0.isEmpty());
16 REPORTER_ASSERT(reporter, !set0.contains(-1));
17 REPORTER_ASSERT(reporter, !set0.contains(0));
18 REPORTER_ASSERT(reporter, !set0.contains(1));
19 REPORTER_ASSERT(reporter, set0.count() == 0);
21 REPORTER_ASSERT(reporter, set0.add(0));
22 REPORTER_ASSERT(reporter, !set0.isEmpty());
23 REPORTER_ASSERT(reporter, !set0.contains(-1));
24 REPORTER_ASSERT(reporter, set0.contains(0));
25 REPORTER_ASSERT(reporter, !set0.contains(1))
    [all...]
MetaDataTest.cpp 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, !md0.findRefCnt(name));
31 REPORTER_ASSERT(reporter, !md0.hasRefCnt(name, &ref))
    [all...]
TestSize.cpp 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,
43 REPORTER_ASSERT(reporter, a.isEmpty())
    [all...]
StringTest.cpp 43 REPORTER_ASSERT(reporter, a.isEmpty());
44 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
52 REPORTER_ASSERT(reporter, !a.isEmpty());
53 REPORTER_ASSERT(reporter, a.size() == 5);
54 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
55 REPORTER_ASSERT(reporter, a.equals("hello", 5));
56 REPORTER_ASSERT(reporter, a.equals("hello"));
57 REPORTER_ASSERT(reporter, !a.equals("help"));
59 REPORTER_ASSERT(reporter, a.startsWith("hell"));
60 REPORTER_ASSERT(reporter, a.startsWith('h'))
    [all...]
PathOpsDPointTest.cpp 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));
41 REPORTER_ASSERT(reporter, p.moreRoughlyEqual(pt));
43 REPORTER_ASSERT(reporter, p.fX == 0 && p.fY == 0)
    [all...]
UtilsTest.cpp 32 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
35 REPORTER_ASSERT(reporter, &obj == tmp.get());
36 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
38 REPORTER_ASSERT(reporter, &obj == tmp.detach());
39 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
40 REPORTER_ASSERT(reporter, NULL == tmp.detach());
41 REPORTER_ASSERT(reporter, NULL == tmp.get());
44 REPORTER_ASSERT(reporter, 2 == obj.getRefCnt());
48 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
54 REPORTER_ASSERT(reporter, 1 == obj0.getRefCnt())
    [all...]
Reader32Test.cpp 15 REPORTER_ASSERT(reporter, reader.eof());
16 REPORTER_ASSERT(reporter, reader.size() == reader.offset());
17 REPORTER_ASSERT(reporter, (const char*)reader.peek() ==
22 REPORTER_ASSERT(reporter, 0 == reader.offset());
23 REPORTER_ASSERT(reporter, reader.size() == reader.available());
24 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()));
25 REPORTER_ASSERT(reporter, !reader.isAvailable(reader.size() + 1));
26 REPORTER_ASSERT(reporter, reader.peek() == reader.base());
30 REPORTER_ASSERT(reporter, 0 == reader.size());
31 REPORTER_ASSERT(reporter, 0 == reader.offset())
    [all...]
MatrixTest.cpp 53 REPORTER_ASSERT(reporter, aVal == bVal && aValI == aValI);
56 REPORTER_ASSERT(reporter, foundZeroSignDiff);
67 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI);
70 REPORTER_ASSERT(reporter, foundNaN);
73 REPORTER_ASSERT(reporter, false);
92 REPORTER_ASSERT(reporter, SkMatrix::kIdentity_Mask == matrix.getType());
93 REPORTER_ASSERT(reporter, matrix.rectStaysRect());
97 REPORTER_ASSERT(reporter, SkMatrix::kTranslate_Mask == matrix.getType());
98 REPORTER_ASSERT(reporter, matrix.rectStaysRect());
102 REPORTER_ASSERT(reporter
    [all...]
GrSurfaceTest.cpp 35 REPORTER_ASSERT(reporter, texRT1->isSameAs(texRT1));
36 REPORTER_ASSERT(reporter, texRT1->isSameAs(texRT1->asRenderTarget()));
37 REPORTER_ASSERT(reporter, texRT1->asRenderTarget()->isSameAs(texRT1));
38 REPORTER_ASSERT(reporter, !texRT2->isSameAs(texRT1));
39 REPORTER_ASSERT(reporter, !texRT2->asRenderTarget()->isSameAs(texRT1));
40 REPORTER_ASSERT(reporter, !texRT2->isSameAs(texRT1->asRenderTarget()));
41 REPORTER_ASSERT(reporter, !texRT2->isSameAs(tex1));
42 REPORTER_ASSERT(reporter, !texRT2->asRenderTarget()->isSameAs(tex1));
52 REPORTER_ASSERT(reporter, externalTexRT->isSameAs(externalTexRT));
53 REPORTER_ASSERT(reporter, externalTexRT->isSameAs(externalTexRT->asRenderTarget()))
    [all...]
XfermodeTest.cpp 23 REPORTER_ASSERT(reporter, reportedMode != mode);
26 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, &reportedMode));
27 REPORTER_ASSERT(reporter, reportedMode == mode);
32 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode));
33 REPORTER_ASSERT(reporter, reportedMode == mode);
36 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode);
42 REPORTER_ASSERT(reporter, !bogusXfer->asMode(&reportedMode));
43 REPORTER_ASSERT(reporter, reportedMode == ILLEGAL_MODE);
44 REPORTER_ASSERT(reporter, !SkXfermode::IsMode(bogusXfer, &reportedMode));
45 REPORTER_ASSERT(reporter, reportedMode == ILLEGAL_MODE)
    [all...]
PathOpsDRectTest.cpp 48 REPORTER_ASSERT(reporter, rect.fLeft == SkTMin(line[0].fX, line[1].fX));
49 REPORTER_ASSERT(reporter, rect.fTop == SkTMin(line[0].fY, line[1].fY));
50 REPORTER_ASSERT(reporter, rect.fRight == SkTMax(line[0].fX, line[1].fX));
51 REPORTER_ASSERT(reporter, rect.fBottom == SkTMax(line[0].fY, line[1].fY));
54 REPORTER_ASSERT(reporter, rect2.fLeft == SkTMin(line[0].fX, line[1].fX));
55 REPORTER_ASSERT(reporter, rect2.fTop == SkTMin(line[0].fY, line[1].fY));
56 REPORTER_ASSERT(reporter, rect2.fRight == SkTMax(line[0].fX, line[1].fX));
57 REPORTER_ASSERT(reporter, rect2.fBottom == SkTMax(line[0].fY, line[1].fY));
58 REPORTER_ASSERT(reporter, rect.contains(line[0]));
59 REPORTER_ASSERT(reporter, rect.intersects(&rect2))
    [all...]
GrContextFactoryTest.cpp 20 REPORTER_ASSERT(reporter,
25 REPORTER_ASSERT(reporter,
30 REPORTER_ASSERT(reporter,
PathMeasureTest.cpp 99 REPORTER_ASSERT(reporter, length == SK_Scalar1*5);
116 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 4);
119 REPORTER_ASSERT(reporter, length == SK_Scalar1);
122 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
123 REPORTER_ASSERT(reporter,
127 REPORTER_ASSERT(reporter, position.fY == 0);
128 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1);
129 REPORTER_ASSERT(reporter, tangent.fY == 0);
146 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 6);
147 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent))
    [all...]
BitmapHeapTest.cpp 60 REPORTER_ASSERT(reporter, heap.count() == 0);
61 REPORTER_ASSERT(reporter, dictionary.count() == 0);
68 REPORTER_ASSERT(reporter, 1 == index);
69 REPORTER_ASSERT(reporter, heap.count() == 1);
70 REPORTER_ASSERT(reporter, dictionary.count() == 1);
74 REPORTER_ASSERT(reporter, SkBitmapHeapTester::GetRefCount(entry) == 1);
77 REPORTER_ASSERT(reporter, SkBitmapHeapTester::GetRefCount(entry) == 0);
81 REPORTER_ASSERT(reporter, heap.count() == 0);
90 REPORTER_ASSERT(reporter, 1 == index);
91 REPORTER_ASSERT(reporter, heap.count() == 1)
    [all...]
DequeTest.cpp 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, NULL != deq.front());
23 REPORTER_ASSERT(reporter, NULL != deq.back())
    [all...]
DeferredCanvasTest.cpp 42 REPORTER_ASSERT(reporter, store.getColor(0,0) == 0xFFFFFFFF); //verify that clear was deferred
44 REPORTER_ASSERT(reporter, store.getColor(0,0) == 0x00000000); //verify that clear was executed
45 REPORTER_ASSERT(reporter, accessed.pixelRef() == store.pixelRef());
98 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
99 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
103 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
104 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
110 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
111 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
115 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount)
    [all...]
MipMapTest.cpp 31 REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1, NULL));
32 REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1 * 2, NULL));
43 REPORTER_ASSERT(reporter, level.fPixels);
44 REPORTER_ASSERT(reporter, level.fWidth > 0);
45 REPORTER_ASSERT(reporter, level.fHeight > 0);
46 REPORTER_ASSERT(reporter, level.fRowBytes >= level.fWidth * 4);
49 REPORTER_ASSERT(reporter, level.fWidth <= prevLevel.fWidth);
50 REPORTER_ASSERT(reporter, level.fHeight <= prevLevel.fHeight);
PathOpsDVectorTest.cpp 30 REPORTER_ASSERT(reporter, v1.fX == 0 && v1.fY == 0);
32 REPORTER_ASSERT(reporter, p == tests[index]);
34 REPORTER_ASSERT(reporter, v2.fX == 0 && v2.fY == 0);
39 REPORTER_ASSERT(reporter, v1.fX == 0 && v1.fY == 0);
41 REPORTER_ASSERT(reporter, sv.fX == 0 && sv.fY == 0);
45 REPORTER_ASSERT(reporter, lenSq == v1Dot);
46 REPORTER_ASSERT(reporter, approximately_equal(sqrt(lenSq), v1.length()));
48 REPORTER_ASSERT(reporter, v1Cross == 0);
ShaderOpacityTest.cpp 20 REPORTER_ASSERT(reporter, shader);
21 REPORTER_ASSERT(reporter, !shader->isOpaque());
30 REPORTER_ASSERT(reporter, shader);
31 REPORTER_ASSERT(reporter, !shader->isOpaque());
38 REPORTER_ASSERT(reporter, shader);
39 REPORTER_ASSERT(reporter, shader->isOpaque());
46 REPORTER_ASSERT(reporter, shader);
47 REPORTER_ASSERT(reporter, !shader->isOpaque());
67 REPORTER_ASSERT(reporter, grad);
68 REPORTER_ASSERT(reporter, grad->isOpaque())
    [all...]
PathOpsBoundsTest.cpp 56 REPORTER_ASSERT(reporter, touches);
64 REPORTER_ASSERT(reporter, !touches);
71 REPORTER_ASSERT(reporter, bounds == expected);
76 REPORTER_ASSERT(reporter, bounds == expected);
81 REPORTER_ASSERT(reporter, bounds == expected);
86 REPORTER_ASSERT(reporter, empty);
92 REPORTER_ASSERT(reporter, !empty);
97 REPORTER_ASSERT(reporter, bounds == expected);
99 REPORTER_ASSERT(reporter, bounds == expected);
102 REPORTER_ASSERT(reporter, bounds == expected)
    [all...]
Sk64Test.cpp 19 REPORTER_ASSERT(reporter, a.isZero() != a.nonZero());
21 REPORTER_ASSERT(reporter, !a.isZero() == !table.zero);
22 REPORTER_ASSERT(reporter, !a.isPos() == !table.pos);
23 REPORTER_ASSERT(reporter, !a.isNeg() == !table.neg);
24 REPORTER_ASSERT(reporter, a.getSign() == table.sign);
51 REPORTER_ASSERT(reporter, a == b);
52 REPORTER_ASSERT(reporter, a == c);
57 REPORTER_ASSERT(reporter, a == b);
58 REPORTER_ASSERT(reporter, a.is32() && a.get32() == 5 && !a.is64());
63 REPORTER_ASSERT(reporter, a == b)
    [all...]
Matrix44Test.cpp 36 REPORTER_ASSERT(reporter, data[0] == m0);
37 REPORTER_ASSERT(reporter, data[1] == m1);
38 REPORTER_ASSERT(reporter, data[2] == m2);
39 REPORTER_ASSERT(reporter, data[3] == m3);
41 REPORTER_ASSERT(reporter, data[4] == m4);
42 REPORTER_ASSERT(reporter, data[5] == m5);
43 REPORTER_ASSERT(reporter, data[6] == m6);
44 REPORTER_ASSERT(reporter, data[7] == m7);
46 REPORTER_ASSERT(reporter, data[8] == m8);
47 REPORTER_ASSERT(reporter, data[9] == m9)
    [all...]
BitmapHasherTest.cpp 33 REPORTER_ASSERT(fReporter, bitmap.allocPixels());
44 REPORTER_ASSERT(fReporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
45 REPORTER_ASSERT(fReporter, digest == 0xfb2903562766ef87ULL);
48 REPORTER_ASSERT(fReporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
49 REPORTER_ASSERT(fReporter, digest == 0xfe04023fb97d0f61ULL);
52 REPORTER_ASSERT(fReporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
53 REPORTER_ASSERT(fReporter, digest == 0x2423c51cad6d1edcULL);

Completed in 1127 milliseconds

1 2 3 4 5 6