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

1 2 3

  /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 18 REPORTER_ASSERT(reporter, NULL == dict.find(NULL));
19 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
20 REPORTER_ASSERT(reporter, NULL == dict.find("bar"));
23 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
24 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
28 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
31 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
32 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt());
33 REPORTER_ASSERT(reporter, 2 == data1.getRefCnt())
    [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...]
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...]
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 == -1);
44 REPORTER_ASSERT(reporter, !SkXfermode::IsMode(bogusXfer, &reportedMode));
45 REPORTER_ASSERT(reporter, reportedMode == -1)
    [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"));
63 REPORTER_ASSERT(reporter, a == e && a == f && a == g);
67 REPORTER_ASSERT(reporter, a != b && a != c && b == c)
    [all...]
UtilsTest.cpp 28 REPORTER_ASSERT(reporter, rc0.get() == NULL);
29 REPORTER_ASSERT(reporter, !rc0);
32 REPORTER_ASSERT(reporter, rc0 == rc1);
33 REPORTER_ASSERT(reporter, rc0.get() != r0);
36 REPORTER_ASSERT(reporter, rc0);
37 REPORTER_ASSERT(reporter, rc0 != rc1);
38 REPORTER_ASSERT(reporter, rc0.get() == r0);
41 REPORTER_ASSERT(reporter, rc1);
42 REPORTER_ASSERT(reporter, rc0 == rc1);
43 REPORTER_ASSERT(reporter, rc0.get() == r0)
    [all...]
PathMeasureTest.cpp 28 REPORTER_ASSERT(reporter, length == SK_Scalar1*5);
56 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 4);
59 REPORTER_ASSERT(reporter, length == SK_Scalar1);
62 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
63 REPORTER_ASSERT(reporter,
65 REPORTER_ASSERT(reporter, position.fY == 0);
66 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1);
67 REPORTER_ASSERT(reporter, tangent.fY == 0);
84 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 6);
85 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent))
    [all...]
Matrix44Test.cpp 28 REPORTER_ASSERT(reporter, data[0] == m0);
29 REPORTER_ASSERT(reporter, data[1] == m1);
30 REPORTER_ASSERT(reporter, data[2] == m2);
31 REPORTER_ASSERT(reporter, data[3] == m3);
33 REPORTER_ASSERT(reporter, data[4] == m4);
34 REPORTER_ASSERT(reporter, data[5] == m5);
35 REPORTER_ASSERT(reporter, data[6] == m6);
36 REPORTER_ASSERT(reporter, data[7] == m7);
38 REPORTER_ASSERT(reporter, data[8] == m8);
39 REPORTER_ASSERT(reporter, data[9] == m9)
    [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...]
PaintTest.cpp 28 REPORTER_ASSERT(reporter, paint == copiedPaint);
34 REPORTER_ASSERT(reporter, paintGenID == copiedPaintGenID);
35 REPORTER_ASSERT(reporter, !memcmp(&paint, &copiedPaint, sizeof(paint)));
40 REPORTER_ASSERT(reporter, paint == copiedPaint);
44 REPORTER_ASSERT(reporter, paint.getGenerationID() == paintGenID);
45 REPORTER_ASSERT(reporter, copiedPaint.getGenerationID() != copiedPaintGenID);
47 REPORTER_ASSERT(reporter, memcmp(&paint, &copiedPaint, sizeof(paint)));
54 REPORTER_ASSERT(reporter, cleanPaint == paint);
55 REPORTER_ASSERT(reporter, cleanPaint == copiedPaint);
59 REPORTER_ASSERT(reporter, paint.getGenerationID() != paintGenID)
    [all...]
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...]
Writer32Test.cpp 18 REPORTER_ASSERT(reporter, i*4 == writer->size());
21 REPORTER_ASSERT(reporter, data[i] == *addr);
25 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->size());
27 REPORTER_ASSERT(reporter, !memcmp(data, buffer, sizeof(buffer)));
39 REPORTER_ASSERT(reporter, writer->size() == len);
47 REPORTER_ASSERT(reporter, !reader.eof());
49 REPORTER_ASSERT(reporter, i == len);
50 REPORTER_ASSERT(reporter, strlen(str) == len);
51 REPORTER_ASSERT(reporter, !memcmp(str, gStr, len));
53 REPORTER_ASSERT(reporter, reader.eof())
    [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...]
ClipStackTest.cpp 38 REPORTER_ASSERT(reporter, s == copy);
42 REPORTER_ASSERT(reporter, s != copy);
48 REPORTER_ASSERT(reporter, s == copy);
55 REPORTER_ASSERT(reporter, s != copy);
63 REPORTER_ASSERT(reporter, s != copy);
70 REPORTER_ASSERT(reporter, s != copy);
75 REPORTER_ASSERT(reporter, s == copy);
78 REPORTER_ASSERT(reporter, s == copy);
85 REPORTER_ASSERT(reporter, s != copy);
90 REPORTER_ASSERT(reporter, count == stack.getSaveCount())
    [all...]
PathTest.cpp 27 REPORTER_ASSERT(reporter, path->cheapIsDirection(expectedDir));
30 REPORTER_ASSERT(reporter, path->cheapIsDirection(expectedDir));
36 REPORTER_ASSERT(reporter, !path.cheapComputeDirection(NULL));
37 REPORTER_ASSERT(reporter, !path.cheapIsDirection(SkPath::kCW_Direction));
38 REPORTER_ASSERT(reporter, !path.cheapIsDirection(SkPath::kCCW_Direction));
51 REPORTER_ASSERT(reporter, valid);
52 REPORTER_ASSERT(reporter, !path.cheapComputeDirection(NULL));
63 REPORTER_ASSERT(reporter, valid);
75 REPORTER_ASSERT(reporter, valid);
124 REPORTER_ASSERT(reporter, path0.getBounds() == path1.getBounds())
    [all...]
GLProgramsTest.cpp 15 REPORTER_ASSERT(reporter, shadersGpu->programUnitTest());
FlateTest.cpp 47 REPORTER_ASSERT(reporter, status);
53 REPORTER_ASSERT(reporter, testData.getLength() == inputSize);
54 REPORTER_ASSERT(reporter, memcmp(testData.getMemoryBase(),
60 REPORTER_ASSERT(reporter, compressed.getOffset() < 1024);
62 REPORTER_ASSERT(reporter, compressed.getOffset() > 1024);
69 REPORTER_ASSERT(reporter, status);
75 REPORTER_ASSERT(reporter, data1.size() == inputSize);
76 REPORTER_ASSERT(reporter, memcmp(testStream->getMemoryBase(),
81 REPORTER_ASSERT(reporter, testData.getLength() == uncompressed.getOffset());
82 REPORTER_ASSERT(reporter, memcmp(testData.getMemoryBase(), data2.data()
    [all...]
ColorFilterTest.cpp 59 REPORTER_ASSERT(reporter, cf);
69 REPORTER_ASSERT(reporter, cf->asColorMode(&c, &m));
82 REPORTER_ASSERT(reporter, c == expectedColor);
83 REPORTER_ASSERT(reporter, m == expectedMode);
88 REPORTER_ASSERT(reporter, cf2);
92 REPORTER_ASSERT(reporter, cf2->asColorMode(&c2, &m2));
93 REPORTER_ASSERT(reporter, c2 == expectedColor);
94 REPORTER_ASSERT(reporter, m2 == expectedMode);
MatrixTest.cpp 46 REPORTER_ASSERT(reporter, size1 == size2);
47 REPORTER_ASSERT(reporter, size1 <= SkMatrix::kMaxFlattenSize);
51 REPORTER_ASSERT(reporter, size1 == size2);
52 REPORTER_ASSERT(reporter, m == m2);
56 REPORTER_ASSERT(reporter, size1 == size2);
57 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0);
63 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMaxStretch());
67 REPORTER_ASSERT(reporter, SK_Scalar1 * 4 == scale.getMaxStretch());
72 REPORTER_ASSERT(reporter, SK_Scalar1 / 2 == rot90Scale.getMaxStretch());
76 REPORTER_ASSERT(reporter, SkScalarAbs(SK_Scalar1 - rotate.getMaxStretch()) <= SK_ScalarNearlyZero)
    [all...]
SrcOverTest.cpp 49 REPORTER_ASSERT(reporter, opaqueCounter0 == 256);
50 REPORTER_ASSERT(reporter, opaqueCounter1 == 256);
51 REPORTER_ASSERT(reporter, opaqueCounter2 == 256);
62 REPORTER_ASSERT(reporter, r0 <= 255 && r0 >= max);
64 REPORTER_ASSERT(reporter, r1 <= 255 && r1 >= max);
65 REPORTER_ASSERT(reporter, r2 <= 255 && r2 >= max);
ClipCubicTest.cpp 90 REPORTER_ASSERT(reporter, success == true);
91 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
98 REPORTER_ASSERT(reporter, success == true);
99 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
106 REPORTER_ASSERT(reporter, success == true);
107 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
114 REPORTER_ASSERT(reporter, success == false);
120 REPORTER_ASSERT(reporter, success == true);
121 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
132 REPORTER_ASSERT(reporter, success == true)
    [all...]
MathTest.cpp 88 REPORTER_ASSERT(reporter, false);
127 REPORTER_ASSERT(reporter, len > 0.999f && len < 1.001f);
201 REPORTER_ASSERT(reporter, x0 == x1);
202 REPORTER_ASSERT(reporter, x0 == x2);
251 REPORTER_ASSERT(reporter, !SkScalarIsNaN(inf));
252 REPORTER_ASSERT(reporter, !SkScalarIsNaN(-inf));
253 REPORTER_ASSERT(reporter, !SkScalarIsFinite(inf));
254 REPORTER_ASSERT(reporter, !SkScalarIsFinite(-inf));
260 REPORTER_ASSERT(reporter, SkScalarIsNaN(nan));
261 REPORTER_ASSERT(reporter, !SkScalarIsNaN(big))
    [all...]
StreamTest.cpp 45 REPORTER_ASSERT(reporter, ss > 0 && ss <= s);
46 REPORTER_ASSERT(reporter, bytesRead + ss <= size);
47 REPORTER_ASSERT(reporter,
51 REPORTER_ASSERT(reporter, bytesRead == size);
70 REPORTER_ASSERT(reporter, copyPtr == copy + sizeof(s));
71 REPORTER_ASSERT(reporter, memcmp(s, copy, sizeof(s)) == 0);
81 REPORTER_ASSERT(reporter, ds.write(s, 26));
83 REPORTER_ASSERT(reporter, ds.getOffset() == 100 * 26);
87 REPORTER_ASSERT(reporter, dst[100*26] == '*');
90 REPORTER_ASSERT(reporter, memcmp(&dst[i * 26], s, 26) == 0)
    [all...]

Completed in 450 milliseconds

1 2 3