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

1 2 3 4 5 6 7

  /external/skia/tests/
BitSetTest.cpp 11 static void TestBitSet(skiatest::Reporter* 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)
    [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...]
RefDictTest.cpp 20 static void TestRefDict(skiatest::Reporter* reporter) {
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"))
    [all...]
TestSize.cpp 11 static void TestISize(skiatest::Reporter* reporter) {
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))
    [all...]
MetaDataTest.cpp 11 static void test_ptrs(skiatest::Reporter* reporter) {
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))
    [all...]
Reader32Test.cpp 14 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) {
15 REPORTER_ASSERT(reporter, reader.eof());
16 REPORTER_ASSERT(reporter, reader.size() == reader.offset());
17 REPORTER_ASSERT(reporter, (const char*)reader.peek() ==
21 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) {
22 REPORTER_ASSERT(reporter, 0 == reader.offset());
23 REPORTER_ASSERT(reporter, reader.size() == reader.available());
24 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()))
    [all...]
XfermodeTest.cpp 18 static void test_asMode(skiatest::Reporter* reporter) {
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)
    [all...]
Writer32Test.cpp 16 static void check_contents(skiatest::Reporter* reporter, const SkWriter32& writer,
19 REPORTER_ASSERT(reporter, writer.bytesWritten() == size);
21 REPORTER_ASSERT(reporter, !memcmp(storage.get(), expected, size));
24 static void test_rewind(skiatest::Reporter* reporter) {
28 REPORTER_ASSERT(reporter, 0 == writer.bytesWritten());
32 check_contents(reporter, writer, array, sizeof(array));
35 REPORTER_ASSERT(reporter, sizeof(array) - 4 == writer.bytesWritten());
37 REPORTER_ASSERT(reporter, sizeof(array) == writer.bytesWritten())
    [all...]
GrContextFactoryTest.cpp 14 static void test_context_factory(skiatest::Reporter* reporter) {
18 REPORTER_ASSERT(reporter,
23 REPORTER_ASSERT(reporter,
28 REPORTER_ASSERT(reporter,
UtilsTest.cpp 30 static void test_autounref(skiatest::Reporter* reporter) {
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())
    [all...]
TileGridTest.cpp 42 static void verifyTileHits(skiatest::Reporter* reporter, SkIRect rect, uint32_t tileMask) {
45 REPORTER_ASSERT(reporter, grid.tile(0,0).count() ==
47 REPORTER_ASSERT(reporter, grid.tile(1,0).count() ==
49 REPORTER_ASSERT(reporter, grid.tile(0,1).count() ==
51 REPORTER_ASSERT(reporter, grid.tile(1,1).count() ==
55 static void TestUnalignedQuery(skiatest::Reporter* reporter) {
77 REPORTER_ASSERT(reporter, 1 == mockCanvas.fRects.count());
78 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0])
    [all...]
ParsePathTest.cpp 11 static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) {
17 REPORTER_ASSERT(reporter, success);
20 REPORTER_ASSERT(reporter, str == str2);
23 REPORTER_ASSERT(reporter, path == path2);
41 static void TestParsePath(skiatest::Reporter* reporter) {
45 REPORTER_ASSERT(reporter, success);
48 REPORTER_ASSERT(reporter, expectedBounds == pathBounds);
50 test_to_from(reporter, path)
    [all...]
PictureUtilsTest.cpp 11 static void test_filepath_creation(skiatest::Reporter* reporter) {
16 REPORTER_ASSERT(reporter, result.equals("test/path/test"));
19 static void test_get_basename(skiatest::Reporter* reporter) {
23 REPORTER_ASSERT(reporter, result.equals("basename"));
28 REPORTER_ASSERT(reporter, result.equals("dir"));
33 REPORTER_ASSERT(reporter, result.equals("path"));
39 REPORTER_ASSERT(reporter, result.equals("winbasename"));
44 REPORTER_ASSERT(reporter, result.equals("windir"))
    [all...]
PointTest.cpp 15 static void test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y,
23 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, s2));
24 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, expectedLength));
28 static void test_Normalize(skiatest::Reporter* reporter,
35 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength));
36 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1));
39 static void PointTest(skiatest::Reporter* reporter) {
    [all...]
StringTest.cpp 37 static void TestString(skiatest::Reporter* reporter) {
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"))
    [all...]
PathMeasureTest.cpp 11 static void test_small_segment3(skiatest::Reporter* reporter) {
30 static void test_small_segment2(skiatest::Reporter* reporter) {
48 static void test_small_segment(skiatest::Reporter* reporter) {
82 static void TestPathMeasure(skiatest::Reporter* reporter) {
99 REPORTER_ASSERT(reporter, length == SK_Scalar1*5);
116 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 4)
    [all...]
PaintTest.cpp 14 static void test_copy(skiatest::Reporter* reporter) {
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)
    [all...]
ShaderOpacityTest.cpp 13 static void test_bitmap(skiatest::Reporter* reporter) {
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())
    [all...]
FlateTest.cpp 33 static void TestFlate(skiatest::Reporter* reporter, SkMemoryStream* testStream,
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()
    [all...]
MemsetTest.cpp 12 static void test_chunkalloc(skiatest::Reporter* reporter) {
16 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
17 REPORTER_ASSERT(reporter, 0 == alloc.blockCount());
18 REPORTER_ASSERT(reporter, !alloc.contains(NULL));
19 REPORTER_ASSERT(reporter, !alloc.contains(reporter));
22 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
23 REPORTER_ASSERT(reporter, 0 == alloc.blockCount());
27 REPORTER_ASSERT(reporter, alloc.totalCapacity() >= size)
    [all...]
MathTest.cpp 30 static void test_floor_value(skiatest::Reporter* reporter, float value) {
33 REPORTER_ASSERT(reporter, std == fast);
38 static void test_floor(skiatest::Reporter* reporter) {
44 test_floor_value(reporter, gVals[i]);
45 // test_floor_value(reporter, -gVals[i]);
119 static void test_blend(skiatest::Reporter* reporter) {
135 REPORTER_ASSERT(reporter, false)
    [all...]
Matrix44Test.cpp 31 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[],
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)
    [all...]
RefCntTest.cpp 33 static void test_refarray(skiatest::Reporter* reporter) {
34 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter);
39 REPORTER_ASSERT(reporter, 1 == array->getRefCnt());
40 REPORTER_ASSERT(reporter, N == array->count());
42 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter);
44 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter);
50 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter);
52 REPORTER_ASSERT(reporter, i == src[i].fCount);
56 REPORTER_ASSERT(reporter, 1 == array->getRefCnt())
    [all...]
BitmapHeapTest.cpp 40 static void TestBitmapHeap(skiatest::Reporter* reporter) {
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)
    [all...]
MatrixTest.cpp 35 static bool are_equal(skiatest::Reporter* reporter,
52 REPORTER_ASSERT(reporter, aVal == bVal && aValI == aValI);
55 REPORTER_ASSERT(reporter, foundZeroSignDiff);
66 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI);
69 REPORTER_ASSERT(reporter, foundNaN);
72 REPORTER_ASSERT(reporter, false);
84 static void test_matrix_recttorect(skiatest::Reporter* reporter) {
91 REPORTER_ASSERT(reporter, SkMatrix::kIdentity_Mask == matrix.getType())
    [all...]

Completed in 80 milliseconds

1 2 3 4 5 6 7