/external/chromium_org/third_party/skia/tests/ |
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...] |
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...] |
TextureCompressionTest.cpp | 44 DEF_TEST(CompressAlphaFailDimensions, reporter) { 55 REPORTER_ASSERT(reporter, kWidth % 4 != 0); 56 REPORTER_ASSERT(reporter, kHeight % 4 != 0); 59 REPORTER_ASSERT(reporter, setInfoSuccess); 70 REPORTER_ASSERT(reporter, NULL == data); 78 DEF_TEST(CompressAlphaFailColorType, reporter) { 88 REPORTER_ASSERT(reporter, kWidth % 12 == 0); 89 REPORTER_ASSERT(reporter, kHeight % 12 == 0); 92 REPORTER_ASSERT(reporter, setInfoSuccess); 103 REPORTER_ASSERT(reporter, NULL == data) [all...] |
ClipStackTest.cpp | 18 static void test_assign_and_comparison(skiatest::Reporter* reporter) { 22 REPORTER_ASSERT(reporter, 0 == s.getSaveCount()); 26 REPORTER_ASSERT(reporter, 1 == s.getSaveCount()); 36 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); 44 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); 51 REPORTER_ASSERT(reporter, s == copy); 55 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); 56 REPORTER_ASSERT(reporter, s != copy); 60 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()) [all...] |
RTreeTest.cpp | 74 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, DataRect rects[], 80 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); 84 static void rtree_test_main(SkRTree* rtree, skiatest::Reporter* reporter) { 87 REPORTER_ASSERT(reporter, rtree); 114 run_queries(reporter, rand, rects, *rtree); 115 REPORTER_ASSERT(reporter, NUM_RECTS == rtree->getCount()); 116 REPORTER_ASSERT(reporter, expectedDepthMin <= rtree->getDepth() && 119 REPORTER_ASSERT(reporter, 0 == rtree->getCount()) [all...] |
CachedDecodingPixelRefTest.cpp | 53 static void compare_bitmaps(skiatest::Reporter* reporter, 56 REPORTER_ASSERT(reporter, b1.empty() == b2.empty()); 57 REPORTER_ASSERT(reporter, b1.width() == b2.width()); 58 REPORTER_ASSERT(reporter, b1.height() == b2.height()); 59 REPORTER_ASSERT(reporter, b1.isNull() == b2.isNull()); 62 REPORTER_ASSERT(reporter, b1.isNull() == b2.isNull()); 66 REPORTER_ASSERT(reporter, b1.getPixels()); 67 REPORTER_ASSERT(reporter, b2.getPixels()); 87 REPORTER_ASSERT(reporter, 0 == pixelErrors) [all...] |
PathOpsSimplifyTest.cpp | 11 static void testLine1(skiatest::Reporter* reporter, const char* filename) { 17 testSimplify(reporter, path, filename); 20 static void testLine1x(skiatest::Reporter* reporter, const char* filename) { 27 testSimplify(reporter, path, filename); 58 static void testLine2(skiatest::Reporter* reporter, const char* filename) { 62 testSimplify(reporter, path, filename); 65 static void testLine2x(skiatest::Reporter* reporter, const char* filename) [all...] |
KtxTest.cpp | 25 DEF_TEST(KtxReadWrite, reporter) { 34 REPORTER_ASSERT(reporter, pixels); 53 REPORTER_ASSERT(reporter, !(bm8888.empty())); 56 REPORTER_ASSERT(reporter, encodedData); 59 REPORTER_ASSERT(reporter, stream); 63 REPORTER_ASSERT(reporter, imageDecodeSuccess); 65 REPORTER_ASSERT(reporter, decodedBitmap.colorType() == bm8888.colorType()); 66 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType()); 67 REPORTER_ASSERT(reporter, decodedBitmap.width() == bm8888.width()); 68 REPORTER_ASSERT(reporter, decodedBitmap.height() == bm8888.height()) [all...] |
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...] |
ClipCacheTest.cpp | 44 static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) { 84 REPORTER_ASSERT(reporter, screen == devStackBounds); 85 REPORTER_ASSERT(reporter, isIntersectionOfRects); 97 REPORTER_ASSERT(reporter, intScreen == devGrClipDataBound); 98 REPORTER_ASSERT(reporter, isIntersectionOfRects); 103 static void check_state(skiatest::Reporter* reporter, 108 REPORTER_ASSERT(reporter, clip.getTopmostGenID() == cache.getLastClipGenID()); 110 REPORTER_ASSERT(reporter, mask == cache.getLastMask()) [all...] |
PathOpsDLineTest.cpp | 31 DEF_TEST(PathOpsLineUtilities, reporter) { 38 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); 44 REPORTER_ASSERT(reporter, 0); 47 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); 49 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); 51 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX)); 52 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
|
SrcOverTest.cpp | 27 DEF_TEST(SrcOver, reporter) { 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);
|
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);
|
PDFPrimitivesTest.cpp | 72 static void CheckObjectOutput(skiatest::Reporter* reporter, SkPDFObject* obj, 81 REPORTER_ASSERT(reporter, directSize == expectedSize); 85 REPORTER_ASSERT(reporter, directSize == buffer.getOffset()); 86 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedData, 99 REPORTER_ASSERT(reporter, 104 REPORTER_ASSERT(reporter, indirectSize == buffer.getOffset()); 105 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, header, headerLen)); 106 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen, expectedData, 108 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen + directSize [all...] |
/external/skia/tests/ |
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...] |
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...] |
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...] |
ClipStackTest.cpp | 18 static void test_assign_and_comparison(skiatest::Reporter* reporter) { 22 REPORTER_ASSERT(reporter, 0 == s.getSaveCount()); 26 REPORTER_ASSERT(reporter, 1 == s.getSaveCount()); 36 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); 44 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); 51 REPORTER_ASSERT(reporter, s == copy); 55 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); 56 REPORTER_ASSERT(reporter, s != copy); 60 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()) [all...] |
RTreeTest.cpp | 70 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, DataRect rects[], 76 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); 80 static void rtree_test_main(SkRTree* rtree, skiatest::Reporter* reporter) { 83 REPORTER_ASSERT(reporter, NULL != rtree); 110 run_queries(reporter, rand, rects, *rtree); 111 REPORTER_ASSERT(reporter, NUM_RECTS == rtree->getCount()); 112 REPORTER_ASSERT(reporter, expectedDepthMin <= rtree->getDepth() && 115 REPORTER_ASSERT(reporter, 0 == rtree->getCount()) [all...] |
PathOpsSimplifyTest.cpp | 11 static void testLine1(skiatest::Reporter* reporter, const char* filename) { 17 testSimplify(reporter, path, filename); 20 static void testLine1x(skiatest::Reporter* reporter, const char* filename) { 27 testSimplify(reporter, path, filename); 58 static void testLine2(skiatest::Reporter* reporter, const char* filename) { 62 testSimplify(reporter, path, filename); 65 static void testLine2x(skiatest::Reporter* reporter, const char* filename) [all...] |
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...] |
PathOpsDLineTest.cpp | 31 DEF_TEST(PathOpsLineUtilities, reporter) { 38 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); 44 REPORTER_ASSERT(reporter, 0); 47 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); 49 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); 51 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX)); 52 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
|
SrcOverTest.cpp | 27 DEF_TEST(SrcOver, reporter) { 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);
|
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);
|
/external/mockito/src/org/mockito/internal/verification/checkers/ |
NumberOfInvocationsChecker.java | 10 import org.mockito.exceptions.Reporter; 20 private final Reporter reporter; field in class:NumberOfInvocationsChecker 25 this(new Reporter(), new InvocationsFinder()); 28 NumberOfInvocationsChecker(Reporter reporter, InvocationsFinder finder) { 29 this.reporter = reporter; 39 reporter.tooLittleActualInvocations(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation); 42 reporter.neverWantedButInvoked(wanted, firstUndesired); [all...] |