/external/chromium_org/third_party/skia/tests/ |
RegionTest.cpp | 16 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) 17 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) 18 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) 22 static void test_fromchrome(skiatest::Reporter* reporter) { 79 static void test_empties(skiatest::Reporter* reporter) { 83 REPORTER_ASSERT(reporter, empty.isEmpty()); 84 REPORTER_ASSERT(reporter, !valid.isEmpty()); 87 REPORTER_ASSERT(reporter, !empty.intersects(empty2)) [all...] |
GrRedBlackTreeTest.cpp | 17 DEF_TEST(GrRedBlackTreeTest, reporter) { 27 REPORTER_ASSERT(reporter, *xi == x); 35 REPORTER_ASSERT(reporter, *tree.begin() == 0); 36 REPORTER_ASSERT(reporter, *tree.last() == 99); 37 REPORTER_ASSERT(reporter, --(++tree.begin()) == tree.begin()); 38 REPORTER_ASSERT(reporter, --tree.end() == tree.last()); 39 REPORTER_ASSERT(reporter, tree.count() == 10002); 48 REPORTER_ASSERT(reporter, b == tree.end() || *a <= *b); 50 REPORTER_ASSERT(reporter, c == tree.count()); 58 REPORTER_ASSERT(reporter, c == count[i]) [all...] |
PathOpsLineIntersectionTest.cpp | 77 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, 83 REPORTER_ASSERT(reporter, ts.used() != 1); 88 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2)); 89 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint())); 94 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) { 99 REPORTER_ASSERT(reporter, pts); 100 REPORTER_ASSERT(reporter, pts == i.used()); 101 check_results(reporter, line1, line2, i) [all...] |
TextureCompressionTest.cpp | 21 DEF_TEST(CompressLATCFailDimensions, reporter) { 26 REPORTER_ASSERT(reporter, kWidth % kLATCBlockDimension != 0); 27 REPORTER_ASSERT(reporter, kHeight % kLATCBlockDimension != 0); 30 REPORTER_ASSERT(reporter, setInfoSuccess); 33 REPORTER_ASSERT(reporter, allocPixelsSuccess); 38 REPORTER_ASSERT(reporter, NULL == latcData); 45 DEF_TEST(CompressLATCFailColorType, reporter) { 50 REPORTER_ASSERT(reporter, kWidth % kLATCBlockDimension == 0); 51 REPORTER_ASSERT(reporter, kHeight % kLATCBlockDimension == 0); 54 REPORTER_ASSERT(reporter, setInfoSuccess) [all...] |
LListTest.cpp | 32 skiatest::Reporter* reporter, 38 REPORTER_ASSERT(reporter, empty == list.isEmpty()); 41 REPORTER_ASSERT(reporter, numElements == list.countEntries()); 42 REPORTER_ASSERT(reporter, in0 == list.isInList(&elements[0])); 43 REPORTER_ASSERT(reporter, in1 == list.isInList(&elements[1])); 44 REPORTER_ASSERT(reporter, in2 == list.isInList(&elements[2])); 45 REPORTER_ASSERT(reporter, in3 == list.isInList(&elements[3])); 49 static void TestTInternalLList(skiatest::Reporter* reporter) { [all...] |
TileGridTest.cpp | 35 static void verifyTileHits(skiatest::Reporter* reporter, SkIRect rect, 43 REPORTER_ASSERT(reporter, grid.tileCount(0, 0) == 45 REPORTER_ASSERT(reporter, grid.tileCount(1, 0) == 47 REPORTER_ASSERT(reporter, grid.tileCount(0, 1) == 49 REPORTER_ASSERT(reporter, grid.tileCount(1, 1) == 53 DEF_TEST(TileGrid_UnalignedQuery, reporter) { 78 REPORTER_ASSERT(reporter, 1 == mockCanvas.fRects.count()); 79 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); 85 REPORTER_ASSERT(reporter, 1 == mockCanvas.fRects.count()) [all...] |
StrokeTest.cpp | 21 static void test_strokerect(skiatest::Reporter* reporter) { 44 REPORTER_ASSERT(reporter, equal(outer, fillPath.getBounds())); 48 REPORTER_ASSERT(reporter, fillPath.isNestedRects(nested) == isMiter); 52 REPORTER_ASSERT(reporter, equal(nested[0], outer)); 53 REPORTER_ASSERT(reporter, equal(nested[1], inner)); 58 DEF_TEST(Stroke, reporter) { 59 test_strokerect(reporter);
|
ColorFilterTest.cpp | 35 DEF_TEST(ColorFilter, reporter) { 54 REPORTER_ASSERT(reporter, cf); 64 REPORTER_ASSERT(reporter, cf->asColorMode(&c, &m)); 77 REPORTER_ASSERT(reporter, c == expectedColor); 78 REPORTER_ASSERT(reporter, m == expectedMode); 83 REPORTER_ASSERT(reporter, cf2); 87 REPORTER_ASSERT(reporter, cf2->asColorMode(&c2, &m2)); 88 REPORTER_ASSERT(reporter, c2 == expectedColor); 89 REPORTER_ASSERT(reporter, m2 == expectedMode); 96 DEF_TEST(LumaColorFilter, reporter) { [all...] |
DiscardableMemoryTest.cpp | 12 DEF_TEST(DiscardableMemory, reporter) { 16 REPORTER_ASSERT(reporter, dm.get() != NULL); 21 REPORTER_ASSERT(reporter, ptr != NULL); 25 REPORTER_ASSERT(reporter, success); 30 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, testString, len));
|
PDFPrimitivesTest.cpp | 71 static void CheckObjectOutput(skiatest::Reporter* reporter, SkPDFObject* obj, 80 REPORTER_ASSERT(reporter, directSize == expectedSize); 84 REPORTER_ASSERT(reporter, directSize == buffer.getOffset()); 85 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedData, 98 REPORTER_ASSERT(reporter, 103 REPORTER_ASSERT(reporter, indirectSize == buffer.getOffset()); 104 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, header, headerLen)); 105 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen, expectedData, 107 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen + directSize [all...] |
PathOpsOpTest.cpp | 12 static void cubicOp1d(skiatest::Reporter* reporter, const char* filename) { 22 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 25 static void cubicOp2d(skiatest::Reporter* reporter, const char* filename) { 35 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 38 static void cubicOp3d(skiatest::Reporter* reporter, const char* filename) { 48 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 51 static void cubicOp5d(skiatest::Reporter* reporter, const char* filename) [all...] |
KtxTest.cpp | 25 DEF_TEST(KtxReadWrite, reporter) { 32 REPORTER_ASSERT(reporter, pixelsAllocated); 35 REPORTER_ASSERT(reporter, NULL != pixels); 54 REPORTER_ASSERT(reporter, !(bm8888.empty())); 57 REPORTER_ASSERT(reporter, NULL != encodedData); 60 REPORTER_ASSERT(reporter, NULL != stream); 64 REPORTER_ASSERT(reporter, imageDecodeSuccess); 66 REPORTER_ASSERT(reporter, decodedBitmap.colorType() == bm8888.colorType()); 67 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType()); 68 REPORTER_ASSERT(reporter, decodedBitmap.width() == bm8888.width()) [all...] |
/external/skia/tests/ |
RegionTest.cpp | 16 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) 17 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) 18 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) 22 static void test_fromchrome(skiatest::Reporter* reporter) { 79 static void test_empties(skiatest::Reporter* reporter) { 83 REPORTER_ASSERT(reporter, empty.isEmpty()); 84 REPORTER_ASSERT(reporter, !valid.isEmpty()); 87 REPORTER_ASSERT(reporter, !empty.intersects(empty2)) [all...] |
GrRedBlackTreeTest.cpp | 17 DEF_TEST(GrRedBlackTreeTest, reporter) { 27 REPORTER_ASSERT(reporter, *xi == x); 35 REPORTER_ASSERT(reporter, *tree.begin() == 0); 36 REPORTER_ASSERT(reporter, *tree.last() == 99); 37 REPORTER_ASSERT(reporter, --(++tree.begin()) == tree.begin()); 38 REPORTER_ASSERT(reporter, --tree.end() == tree.last()); 39 REPORTER_ASSERT(reporter, tree.count() == 10002); 48 REPORTER_ASSERT(reporter, b == tree.end() || *a <= *b); 50 REPORTER_ASSERT(reporter, c == tree.count()); 58 REPORTER_ASSERT(reporter, c == count[i]) [all...] |
PathOpsLineIntersectionTest.cpp | 77 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, 83 REPORTER_ASSERT(reporter, ts.used() != 1); 88 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2)); 89 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint())); 94 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) { 99 REPORTER_ASSERT(reporter, pts); 100 REPORTER_ASSERT(reporter, pts == i.used()); 101 check_results(reporter, line1, line2, i) [all...] |
TextureCompressionTest.cpp | 21 DEF_TEST(CompressLATCFailDimensions, reporter) { 26 REPORTER_ASSERT(reporter, kWidth % kLATCBlockDimension != 0); 27 REPORTER_ASSERT(reporter, kHeight % kLATCBlockDimension != 0); 30 REPORTER_ASSERT(reporter, setInfoSuccess); 33 REPORTER_ASSERT(reporter, allocPixelsSuccess); 38 REPORTER_ASSERT(reporter, NULL == latcData); 45 DEF_TEST(CompressLATCFailColorType, reporter) { 50 REPORTER_ASSERT(reporter, kWidth % kLATCBlockDimension == 0); 51 REPORTER_ASSERT(reporter, kHeight % kLATCBlockDimension == 0); 54 REPORTER_ASSERT(reporter, setInfoSuccess) [all...] |
LListTest.cpp | 32 skiatest::Reporter* reporter, 38 REPORTER_ASSERT(reporter, empty == list.isEmpty()); 41 REPORTER_ASSERT(reporter, numElements == list.countEntries()); 42 REPORTER_ASSERT(reporter, in0 == list.isInList(&elements[0])); 43 REPORTER_ASSERT(reporter, in1 == list.isInList(&elements[1])); 44 REPORTER_ASSERT(reporter, in2 == list.isInList(&elements[2])); 45 REPORTER_ASSERT(reporter, in3 == list.isInList(&elements[3])); 49 static void TestTInternalLList(skiatest::Reporter* reporter) { [all...] |
TileGridTest.cpp | 35 static void verifyTileHits(skiatest::Reporter* reporter, SkIRect rect, 43 REPORTER_ASSERT(reporter, grid.tileCount(0, 0) == 45 REPORTER_ASSERT(reporter, grid.tileCount(1, 0) == 47 REPORTER_ASSERT(reporter, grid.tileCount(0, 1) == 49 REPORTER_ASSERT(reporter, grid.tileCount(1, 1) == 53 DEF_TEST(TileGrid_UnalignedQuery, reporter) { 78 REPORTER_ASSERT(reporter, 1 == mockCanvas.fRects.count()); 79 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); 85 REPORTER_ASSERT(reporter, 1 == mockCanvas.fRects.count()) [all...] |
StrokeTest.cpp | 21 static void test_strokerect(skiatest::Reporter* reporter) { 44 REPORTER_ASSERT(reporter, equal(outer, fillPath.getBounds())); 48 REPORTER_ASSERT(reporter, fillPath.isNestedRects(nested) == isMiter); 52 REPORTER_ASSERT(reporter, equal(nested[0], outer)); 53 REPORTER_ASSERT(reporter, equal(nested[1], inner)); 58 DEF_TEST(Stroke, reporter) { 59 test_strokerect(reporter);
|
ColorFilterTest.cpp | 35 DEF_TEST(ColorFilter, reporter) { 54 REPORTER_ASSERT(reporter, cf); 64 REPORTER_ASSERT(reporter, cf->asColorMode(&c, &m)); 77 REPORTER_ASSERT(reporter, c == expectedColor); 78 REPORTER_ASSERT(reporter, m == expectedMode); 83 REPORTER_ASSERT(reporter, cf2); 87 REPORTER_ASSERT(reporter, cf2->asColorMode(&c2, &m2)); 88 REPORTER_ASSERT(reporter, c2 == expectedColor); 89 REPORTER_ASSERT(reporter, m2 == expectedMode); 96 DEF_TEST(LumaColorFilter, reporter) { [all...] |
DiscardableMemoryTest.cpp | 12 DEF_TEST(DiscardableMemory, reporter) { 16 REPORTER_ASSERT(reporter, dm.get() != NULL); 21 REPORTER_ASSERT(reporter, ptr != NULL); 25 REPORTER_ASSERT(reporter, success); 30 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, testString, len));
|
PDFPrimitivesTest.cpp | 71 static void CheckObjectOutput(skiatest::Reporter* reporter, SkPDFObject* obj, 80 REPORTER_ASSERT(reporter, directSize == expectedSize); 84 REPORTER_ASSERT(reporter, directSize == buffer.getOffset()); 85 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedData, 98 REPORTER_ASSERT(reporter, 103 REPORTER_ASSERT(reporter, indirectSize == buffer.getOffset()); 104 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, header, headerLen)); 105 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen, expectedData, 107 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen + directSize [all...] |
PathOpsOpTest.cpp | 12 static void cubicOp1d(skiatest::Reporter* reporter, const char* filename) { 22 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 25 static void cubicOp2d(skiatest::Reporter* reporter, const char* filename) { 35 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 38 static void cubicOp3d(skiatest::Reporter* reporter, const char* filename) { 48 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 51 static void cubicOp5d(skiatest::Reporter* reporter, const char* filename) [all...] |
/external/mockito/src/org/mockito/internal/verification/checkers/ |
MissingInvocationInOrderChecker.java | 10 import org.mockito.exceptions.Reporter; 21 private final Reporter reporter; field in class:MissingInvocationInOrderChecker 25 this(new InvocationsFinder(), new Reporter()); 28 MissingInvocationInOrderChecker(InvocationsFinder finder, Reporter reporter) { 30 this.reporter = reporter; 57 reporter.argumentsAreDifferent(smartPrinter.getWanted(), smartPrinter.getActual(), similar.getLocation()); 59 reporter.wantedButNotInvoked(wanted) [all...] |
AtLeastXNumberOfInvocationsChecker.java | 10 import org.mockito.exceptions.Reporter; 19 Reporter reporter = new Reporter(); field in class:AtLeastXNumberOfInvocationsChecker 29 reporter.tooLittleActualInvocations(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation);
|