Searched refs:REPORTER_ASSERT (Results 1 - 25 of 37) sorted by relevance

12

/external/skia/tests/
H A DRefDictTest.cpp11 REPORTER_ASSERT(reporter, NULL == dict.find(NULL));
12 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
13 REPORTER_ASSERT(reporter, NULL == dict.find("bar"));
16 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
17 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
20 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
21 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
24 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
25 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt());
26 REPORTER_ASSERT(reporte
[all...]
H A DMetaDataTest.cpp6 REPORTER_ASSERT(reporter, 1 == ref.getRefCnt());
13 REPORTER_ASSERT(reporter, md0.findRefCnt(name));
14 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref));
15 REPORTER_ASSERT(reporter, 2 == ref.getRefCnt());
18 REPORTER_ASSERT(reporter, md1.findRefCnt(name));
19 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref));
20 REPORTER_ASSERT(reporter, 3 == ref.getRefCnt());
22 REPORTER_ASSERT(reporter, md0.removeRefCnt(name));
23 REPORTER_ASSERT(reporter, !md0.findRefCnt(name));
24 REPORTER_ASSERT(reporte
[all...]
H A DTestSize.cpp8 REPORTER_ASSERT(reporter, a.isEmpty());
10 REPORTER_ASSERT(reporter, a.isEmpty());
12 REPORTER_ASSERT(reporter, a.isEmpty());
14 REPORTER_ASSERT(reporter, a == b);
17 REPORTER_ASSERT(reporter, !a.isEmpty());
19 REPORTER_ASSERT(reporter, !b.isEmpty());
20 REPORTER_ASSERT(reporter, a == b);
21 REPORTER_ASSERT(reporter, !(a != b));
22 REPORTER_ASSERT(reporter,
36 REPORTER_ASSERT(reporte
[all...]
H A DReader32Test.cpp22 REPORTER_ASSERT(reporter, reader.eof());
23 REPORTER_ASSERT(reporter, reader.size() == reader.offset());
24 REPORTER_ASSERT(reporter, (const char*)reader.peek() ==
29 REPORTER_ASSERT(reporter, 0 == reader.offset());
30 REPORTER_ASSERT(reporter, reader.size() == reader.available());
31 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()));
32 REPORTER_ASSERT(reporter, !reader.isAvailable(reader.size() + 1));
33 REPORTER_ASSERT(reporter, reader.peek() == reader.base());
37 REPORTER_ASSERT(reporter, 0 == reader.size());
38 REPORTER_ASSERT(reporte
[all...]
H A DStringTest.cpp10 REPORTER_ASSERT(reporter, a.isEmpty());
11 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
19 REPORTER_ASSERT(reporter, !a.isEmpty());
20 REPORTER_ASSERT(reporter, a.size() == 5);
21 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
22 REPORTER_ASSERT(reporter, a.equals("hello", 5));
23 REPORTER_ASSERT(reporter, a.equals("hello"));
24 REPORTER_ASSERT(reporter, !a.equals("help"));
30 REPORTER_ASSERT(reporter, a == e && a == f && a == g);
34 REPORTER_ASSERT(reporte
[all...]
H A DXfermodeTest.cpp16 REPORTER_ASSERT(reporter, reportedMode != mode);
19 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, &reportedMode));
20 REPORTER_ASSERT(reporter, reportedMode == mode);
25 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode));
26 REPORTER_ASSERT(reporter, reportedMode == mode);
29 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode);
35 REPORTER_ASSERT(reporter, !bogusXfer->asMode(&reportedMode));
36 REPORTER_ASSERT(reporter, reportedMode == -1);
37 REPORTER_ASSERT(reporter, !SkXfermode::IsMode(bogusXfer, &reportedMode));
38 REPORTER_ASSERT(reporte
[all...]
H A DUtilsTest.cpp21 REPORTER_ASSERT(reporter, rc0.get() == NULL);
22 REPORTER_ASSERT(reporter, !rc0);
25 REPORTER_ASSERT(reporter, rc0 == rc1);
26 REPORTER_ASSERT(reporter, rc0.get() != r0);
29 REPORTER_ASSERT(reporter, rc0);
30 REPORTER_ASSERT(reporter, rc0 != rc1);
31 REPORTER_ASSERT(reporter, rc0.get() == r0);
34 REPORTER_ASSERT(reporter, rc1);
35 REPORTER_ASSERT(reporter, rc0 == rc1);
36 REPORTER_ASSERT(reporte
[all...]
H A DDequeTest.cpp6 REPORTER_ASSERT(reporter, deq.empty());
7 REPORTER_ASSERT(reporter, 0 == deq.count());
8 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize());
9 REPORTER_ASSERT(reporter, NULL == deq.front());
10 REPORTER_ASSERT(reporter, NULL == deq.back());
12 REPORTER_ASSERT(reporter, !deq.empty());
13 REPORTER_ASSERT(reporter, count == deq.count());
14 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize());
15 REPORTER_ASSERT(reporter, NULL != deq.front());
16 REPORTER_ASSERT(reporte
[all...]
H A DWriter32Test.cpp25 REPORTER_ASSERT(reporter, i*4 == writer->size());
28 REPORTER_ASSERT(reporter, data[i] == *addr);
32 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->size());
34 REPORTER_ASSERT(reporter, !memcmp(data, buffer, sizeof(buffer)));
46 REPORTER_ASSERT(reporter, writer->size() == len);
54 REPORTER_ASSERT(reporter, !reader.eof());
56 REPORTER_ASSERT(reporter, i == len);
57 REPORTER_ASSERT(reporter, strlen(str) == len);
58 REPORTER_ASSERT(reporter, !memcmp(str, gStr, len));
60 REPORTER_ASSERT(reporte
[all...]
H A DSk64Test.cpp12 REPORTER_ASSERT(reporter, a.isZero() != a.nonZero());
14 REPORTER_ASSERT(reporter, !a.isZero() == !table.zero);
15 REPORTER_ASSERT(reporter, !a.isPos() == !table.pos);
16 REPORTER_ASSERT(reporter, !a.isNeg() == !table.neg);
17 REPORTER_ASSERT(reporter, a.getSign() == table.sign);
44 REPORTER_ASSERT(reporter, a == b);
45 REPORTER_ASSERT(reporter, a == c);
50 REPORTER_ASSERT(reporter, a == b);
51 REPORTER_ASSERT(reporter, a.is32() && a.get32() == 5 && !a.is64());
56 REPORTER_ASSERT(reporte
[all...]
H A DClipStackTest.cpp30 REPORTER_ASSERT(reporter, s == copy);
34 REPORTER_ASSERT(reporter, s != copy);
40 REPORTER_ASSERT(reporter, s == copy);
47 REPORTER_ASSERT(reporter, s != copy);
55 REPORTER_ASSERT(reporter, s != copy);
62 REPORTER_ASSERT(reporter, s != copy);
67 REPORTER_ASSERT(reporter, s == copy);
70 REPORTER_ASSERT(reporter, s == copy);
77 REPORTER_ASSERT(reporter, s != copy);
82 REPORTER_ASSERT(reporte
[all...]
H A DFlateTest.cpp53 REPORTER_ASSERT(reporter, status);
59 REPORTER_ASSERT(reporter, testData.getLength() == inputSize);
60 REPORTER_ASSERT(reporter, memcmp(testData.getMemoryBase(),
66 REPORTER_ASSERT(reporter, compressed.getOffset() < 1024);
68 REPORTER_ASSERT(reporter, compressed.getOffset() > 1024);
73 REPORTER_ASSERT(reporter, status);
79 REPORTER_ASSERT(reporter, compressed.getOffset() == inputSize);
80 REPORTER_ASSERT(reporter, memcmp(testStream->getMemoryBase(),
85 REPORTER_ASSERT(reporter, testData.getLength() == uncompressed.getOffset());
86 REPORTER_ASSERT(reporte
[all...]
H A DStreamTest.cpp37 REPORTER_ASSERT(reporter, ss > 0 && ss <= s);
38 REPORTER_ASSERT(reporter, bytesRead + ss <= size);
39 REPORTER_ASSERT(reporter,
43 REPORTER_ASSERT(reporter, bytesRead == size);
62 REPORTER_ASSERT(reporter, copyPtr == copy + sizeof(s));
63 REPORTER_ASSERT(reporter, memcmp(s, copy, sizeof(s)) == 0);
73 REPORTER_ASSERT(reporter, ds.write(s, 26));
75 REPORTER_ASSERT(reporter, ds.getOffset() == 100 * 26);
79 REPORTER_ASSERT(reporter, dst[100*26] == '*');
82 REPORTER_ASSERT(reporte
[all...]
H A DColorFilterTest.cpp52 REPORTER_ASSERT(reporter, cf);
62 REPORTER_ASSERT(reporter, cf->asColorMode(&c, &m));
75 REPORTER_ASSERT(reporter, c == expectedColor);
76 REPORTER_ASSERT(reporter, m == expectedMode);
81 REPORTER_ASSERT(reporter, cf2);
85 REPORTER_ASSERT(reporter, cf2->asColorMode(&c2, &m2));
86 REPORTER_ASSERT(reporter, c2 == expectedColor);
87 REPORTER_ASSERT(reporter, m2 == expectedMode);
H A DSrcOverTest.cpp42 REPORTER_ASSERT(reporter, opaqueCounter0 == 256);
43 REPORTER_ASSERT(reporter, opaqueCounter1 == 256);
44 REPORTER_ASSERT(reporter, opaqueCounter2 == 256);
55 REPORTER_ASSERT(reporter, r0 <= 255 && r0 >= max);
57 REPORTER_ASSERT(reporter, r1 <= 255 && r1 >= max);
58 REPORTER_ASSERT(reporter, r2 <= 255 && r2 >= max);
H A DPathTest.cpp9 REPORTER_ASSERT(reporter, c == expected);
101 REPORTER_ASSERT(reporter, p.isConvex());
102 REPORTER_ASSERT(reporter, p.getBounds() == bounds);
105 REPORTER_ASSERT(reporter, p2.isConvex());
106 REPORTER_ASSERT(reporter, p2.getBounds() == bounds);
110 REPORTER_ASSERT(reporter, other.isConvex());
111 REPORTER_ASSERT(reporter, other.getBounds() == bounds);
139 REPORTER_ASSERT(reporter, V == SkPath::ComputeConvexity(path));
141 REPORTER_ASSERT(reporter, V == SkPath::ComputeConvexity(path));
143 REPORTER_ASSERT(reporte
[all...]
H A DClipCubicTest.cpp65 REPORTER_ASSERT(reporter, success == true);
66 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
73 REPORTER_ASSERT(reporter, success == true);
74 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
81 REPORTER_ASSERT(reporter, success == true);
82 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
89 REPORTER_ASSERT(reporter, success == false);
95 REPORTER_ASSERT(reporter, success == true);
96 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
107 REPORTER_ASSERT(reporte
[all...]
H A DMathTest.cpp71 REPORTER_ASSERT(reporter, len > 0.999f && len < 1.001f);
145 REPORTER_ASSERT(reporter, x0 == x1);
146 REPORTER_ASSERT(reporter, x0 == x2);
195 REPORTER_ASSERT(reporter, !SkScalarIsNaN(inf));
196 REPORTER_ASSERT(reporter, !SkScalarIsNaN(-inf));
197 REPORTER_ASSERT(reporter, !SkScalarIsFinite(inf));
198 REPORTER_ASSERT(reporter, !SkScalarIsFinite(-inf));
204 REPORTER_ASSERT(reporter, SkScalarIsNaN(nan));
205 REPORTER_ASSERT(reporter, !SkScalarIsNaN(big));
206 REPORTER_ASSERT(reporte
[all...]
H A DMatrixTest.cpp37 REPORTER_ASSERT(reporter, size1 == size2);
38 REPORTER_ASSERT(reporter, size1 <= SkMatrix::kMaxFlattenSize);
42 REPORTER_ASSERT(reporter, size1 == size2);
43 REPORTER_ASSERT(reporter, m == m2);
47 REPORTER_ASSERT(reporter, size1 == size2);
48 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0);
58 REPORTER_ASSERT(reporter, is_identity(iden1));
63 REPORTER_ASSERT(reporter, is_identity(iden1));
69 REPORTER_ASSERT(reporter, is_identity(iden1));
74 REPORTER_ASSERT(reporte
[all...]
H A DParsePathTest.cpp10 REPORTER_ASSERT(reporter, success);
13 REPORTER_ASSERT(reporter, str == str2);
16 REPORTER_ASSERT(reporter, path == path2);
38 REPORTER_ASSERT(reporter, success);
41 REPORTER_ASSERT(reporter, expectedBounds == pathBounds);
H A DMatrix44Test.cpp42 REPORTER_ASSERT(reporter, is_identity(iden1));
47 REPORTER_ASSERT(reporter, is_identity(iden1));
52 REPORTER_ASSERT(reporter, is_identity(iden1));
61 REPORTER_ASSERT(reporter, mat.invert(NULL));
64 REPORTER_ASSERT(reporter, is_identity(iden1));
66 REPORTER_ASSERT(reporter, is_identity(iden2));
H A DColorTest.cpp16 REPORTER_ASSERT(reporter, p0 == p1);
20 REPORTER_ASSERT(reporter, ax <= a);
H A DGeometryTest.cpp12 REPORTER_ASSERT(reporter, count == 1 || count == 2);
H A DPDFPrimitivesTest.cpp30 REPORTER_ASSERT(reporter, directSize == representation.size());
34 REPORTER_ASSERT(reporter, directSize == buffer.getOffset());
35 REPORTER_ASSERT(reporter, memcmp(buffer.getStream(), representation.c_str(),
49 REPORTER_ASSERT(reporter,
54 REPORTER_ASSERT(reporter, indirectSize == buffer.getOffset());
55 REPORTER_ASSERT(reporter, memcmp(buffer.getStream(), header,
57 REPORTER_ASSERT(reporter,
60 REPORTER_ASSERT(reporter,
80 REPORTER_ASSERT(reporter, catalog.getObjectNumberSize(int1.get()) == 3);
81 REPORTER_ASSERT(reporte
[all...]
H A DRegionTest.cpp39 REPORTER_ASSERT(reporter, test_rects(r2, SK_ARRAY_COUNT(r2)));
47 REPORTER_ASSERT(reporter, test_rects(rects, SK_ARRAY_COUNT(rects)));
58 REPORTER_ASSERT(reporter, test_rects(rect, N));

Completed in 182 milliseconds

12