/external/chromium_org/third_party/skia/tests/ |
DrawPathTest.cpp | 15 static void test_big_aa_rect(skiatest::Reporter* reporter) { 29 REPORTER_ASSERT(reporter, 0 == pixel[0]); 31 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 44 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]); 46 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 240 static void test_infinite_dash(skiatest::Reporter* reporter) { 255 REPORTER_ASSERT(reporter, true); 260 static void test_crbug_165432(skiatest::Reporter* reporter) [all...] |
LayerDrawLooperTest.cpp | 44 static void test_frontToBack(skiatest::Reporter* reporter) { 66 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 67 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrc_Mode)); 69 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX()); 70 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY()); 74 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 75 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)); 77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX()); 78 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY()) [all...] |
PathOpsAngleIdeas.cpp | 41 static double testArc(skiatest::Reporter* reporter, const SkDQuad& quad, const SkDQuad& arcRef, 69 REPORTER_ASSERT(reporter, smallest >= 0); 70 REPORTER_ASSERT(reporter, t >= 0 && t <= 1); 74 static void orderQuads(skiatest::Reporter* reporter, const SkDQuad& quad, double radius, 89 double t = testArc(reporter, quad, circle[octant], octant); 104 static double quadAngle(skiatest::Reporter* reporter, const SkDQuad& quad, double t) { 107 REPORTER_ASSERT(reporter, angle >= 0 && angle <= 8) [all...] |
RoundRectTest.cpp | 15 static void test_inset(skiatest::Reporter* reporter) { 21 REPORTER_ASSERT(reporter, rr2.isRect()); 24 REPORTER_ASSERT(reporter, rr2.isRect()); 27 REPORTER_ASSERT(reporter, rr2.isEmpty()); 31 REPORTER_ASSERT(reporter, rr2.isSimple()); 33 REPORTER_ASSERT(reporter, rr2.isRect()); 37 static void test_round_rect_basic(skiatest::Reporter* reporter) { 44 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type()) [all...] |
PathOpsBattles.cpp | 12 static void issue414409(skiatest::Reporter* reporter, const char* filename) { 39 testPathOp(reporter, path1, path2, kUnion_PathOp, filename); 42 static void issue414409b(skiatest::Reporter* reporter, const char* filename) { 63 testPathOp(reporter, path1, path2, kUnion_PathOp, filename); 66 static void issue414409c(skiatest::Reporter* reporter, const char* filename) { 88 testPathOp(reporter, path1, path2, kUnion_PathOp, filename); 92 static void battleOp1(skiatest::Reporter* reporter, const char* filename) [all...] |
PathOpsSkpTest.cpp | 13 static void skpcheeseandburger_com225(skiatest::Reporter* reporter, const char* filename) { 371 testPathOp(reporter, path, pathB, kIntersect_PathOp, filename); 374 static void skpeverytechpro_blogspot_com100(skiatest::Reporter* reporter, const char* filename) { 405 testPathOp(reporter, path, pathB, kIntersect_PathOp, filename); 408 static void skpflite_com41(skiatest::Reporter* reporter, const char* filename) { 428 testPathOp(reporter, path, pathB, kIntersect_PathOp, filename); 431 static void skpilkoora_com37(skiatest::Reporter* reporter, const char* filename) [all...] |
PathOpsQuadIntersectionTest.cpp | 14 static void standardTestCases(skiatest::Reporter* reporter) { 47 REPORTER_ASSERT(reporter, 0); 267 static void oneOffTest1(skiatest::Reporter* reporter, size_t outer, size_t inner) { 283 REPORTER_ASSERT(reporter, 0); 292 DEF_TEST(PathOpsQuadIntersectionOneOff, reporter) { 293 oneOffTest1(reporter, 0, 1); 296 static void oneOffTests(skiatest::Reporter* reporter) { [all...] |
PathOpsExtendedTest.cpp | 276 static int comparePaths(skiatest::Reporter* reporter, const char* filename, const SkPath& one, 285 REPORTER_ASSERT(reporter, errors2x2 <= MAX_ERRORS || !gComparePathsAssert); 302 SkDebugf("static void %s(skiatest::Reporter* reporter, const char* filename) {\n", testName); 310 SkDebugf(" testPathOp(reporter, path, pathB, %s, filename);\n", opStrs[shapeOp]); 323 static int comparePaths(skiatest::Reporter* reporter, const char* testName, const SkPath& one, 339 REPORTER_ASSERT(reporter, 0); 347 // Default values for when reporter->verbose() is false [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...] |
BlurTest.cpp | 101 static void test_blur_drawing(skiatest::Reporter* reporter) { 149 REPORTER_ASSERT(reporter, 328 static void test_sigma_range(skiatest::Reporter* reporter, GrContextFactory* factory) { 362 REPORTER_ASSERT(reporter, match(rectSpecialCaseResult, bruteForce1DResult, kSize, 5)); 363 REPORTER_ASSERT(reporter, match(generalCaseResult, bruteForce1DResult, kSize, 15)); 372 REPORTER_ASSERT(reporter, match(gpuResult, bruteForce1DResult, kSize, 10)); 376 REPORTER_ASSERT(reporter, match(groundTruthResult, bruteForce1DResult, kSize, 1)); 415 static void test_blurDrawLooper(skiatest::Reporter* reporter, SkScalar sigma [all...] |
BlendTest.cpp | 27 static void test(skiatest::Reporter* r, int maxDiff, Blend algorithm, 39 static void test_alpha(skiatest::Reporter* r, uint8_t alpha, int maxDiff, Blend algorithm) { 50 static void test_dst(skiatest::Reporter* r, uint8_t dst, int maxDiff, Blend algorithm) {
|
PathOpsLineIntersectionTest.cpp | 84 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, 90 REPORTER_ASSERT(reporter, ts.used() != 1); 95 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2)); 96 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint())); 101 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) { 106 REPORTER_ASSERT(reporter, pts); 107 REPORTER_ASSERT(reporter, pts == i.used()); 108 check_results(reporter, line1, line2, i) [all...] |
TextBlobTest.cpp | 19 static void TestBuilder(skiatest::Reporter* reporter) { 23 RunBuilderTest(reporter, builder, NULL, 0, NULL, 0); 28 RunBuilderTest(reporter, builder, set1, SK_ARRAY_COUNT(set1), set1, SK_ARRAY_COUNT(set1)); 33 RunBuilderTest(reporter, builder, set2, SK_ARRAY_COUNT(set2), set2, SK_ARRAY_COUNT(set2)); 38 RunBuilderTest(reporter, builder, set3, SK_ARRAY_COUNT(set3), set3, SK_ARRAY_COUNT(set3)); 45 RunBuilderTest(reporter, builder, set4, SK_ARRAY_COUNT(set4), set4, SK_ARRAY_COUNT(set4)); 56 RunBuilderTest(reporter, builder, set5, SK_ARRAY_COUNT(set5), mergedSet5, 67 RunBuilderTest(reporter, builder, set6, SK_ARRAY_COUNT(set6), mergedSet6, 95 RunBuilderTest(reporter, builder, set7, SK_ARRAY_COUNT(set7), mergedSet7 [all...] |
/external/mockito/src/org/mockito/internal/ |
MockitoCore.java | 10 import org.mockito.exceptions.Reporter;
39 private final Reporter reporter = new Reporter();
field in class:MockitoCore 64 reporter.missingMethodInvocation();
81 reporter.nullPassedToVerify();
83 reporter.notAMockPassedToVerify(mock.getClass());
105 reporter.nullPassedToVerifyNoMoreInteractions();
111 reporter.notAMockPassedToVerifyNoMoreInteractions();
125 reporter.mocksHaveToBePassedToVerifyNoMoreInteractions(); [all...] |
/external/skia/tests/ |
BlitRowTest.cpp | 84 skiatest::Reporter* reporter) { 91 ERRORF(reporter, "BlitRow colortype=%s [%d %d] expected %x got %x", 100 static void test_00_FF(skiatest::Reporter* reporter) { 149 gSrcRec[j].fResult8, reporter)) { 190 static void test_diagonal(skiatest::Reporter* reporter) { 250 ERRORF(reporter, "Diagonal colortype=%s bg=0x%x dither=%d" 261 DEF_TEST(BlitRow, reporter) { [all...] |
DrawPathTest.cpp | 15 static void test_big_aa_rect(skiatest::Reporter* reporter) { 29 REPORTER_ASSERT(reporter, 0 == pixel[0]); 31 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 44 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]); 46 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 240 static void test_infinite_dash(skiatest::Reporter* reporter) { 255 REPORTER_ASSERT(reporter, true); 260 static void test_crbug_165432(skiatest::Reporter* reporter) [all...] |
LayerDrawLooperTest.cpp | 44 static void test_frontToBack(skiatest::Reporter* reporter) { 66 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 67 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrc_Mode)); 69 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX()); 70 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY()); 74 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 75 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)); 77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX()); 78 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY()) [all...] |
PathOpsAngleIdeas.cpp | 41 static double testArc(skiatest::Reporter* reporter, const SkDQuad& quad, const SkDQuad& arcRef, 69 REPORTER_ASSERT(reporter, smallest >= 0); 70 REPORTER_ASSERT(reporter, t >= 0 && t <= 1); 74 static void orderQuads(skiatest::Reporter* reporter, const SkDQuad& quad, double radius, 89 double t = testArc(reporter, quad, circle[octant], octant); 104 static double quadAngle(skiatest::Reporter* reporter, const SkDQuad& quad, double t) { 107 REPORTER_ASSERT(reporter, angle >= 0 && angle <= 8) [all...] |
PathOpsQuadIntersectionTest.cpp | 14 static void standardTestCases(skiatest::Reporter* reporter) { 47 REPORTER_ASSERT(reporter, 0); 264 static void oneOffTest1(skiatest::Reporter* reporter, size_t outer, size_t inner) { 280 REPORTER_ASSERT(reporter, 0); 289 DEF_TEST(PathOpsQuadIntersectionOneOff, reporter) { 290 oneOffTest1(reporter, 0, 1); 293 static void oneOffTests(skiatest::Reporter* reporter) { [all...] |
PathOpsExtendedTest.cpp | 230 SkDebugf("\nstatic void %s(skiatest::Reporter* reporter, const char* filename) {\n", functionName); 245 SkDebugf(" testPathOp(reporter, %s, %s, %s, filename);\n", pathOne, pathTwo, gOpStrs[op]); 393 static int comparePaths(skiatest::Reporter* reporter, const char* filename, const SkPath& one, 402 REPORTER_ASSERT(reporter, errors2x2 <= MAX_ERRORS || !gComparePathsAssert); 419 SkDebugf("static void %s(skiatest::Reporter* reporter, const char* filename) {\n", testName); 425 SkDebugf(" testPathOp(reporter, path, pathB, %s, filename);\n", opStrs[shapeOp]); 436 static int comparePaths(skiatest::Reporter* reporter, const char* testName, const SkPath& one [all...] |
RoundRectTest.cpp | 15 static void test_inset(skiatest::Reporter* reporter) { 21 REPORTER_ASSERT(reporter, rr2.isRect()); 24 REPORTER_ASSERT(reporter, rr2.isRect()); 27 REPORTER_ASSERT(reporter, rr2.isEmpty()); 31 REPORTER_ASSERT(reporter, rr2.isSimple()); 33 REPORTER_ASSERT(reporter, rr2.isRect()); 37 static void test_round_rect_basic(skiatest::Reporter* reporter) { 44 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type()) [all...] |
AAClipTest.cpp | 132 static void test_rgn(skiatest::Reporter* reporter) { 137 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 145 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 153 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 180 static void test_path_bounds(skiatest::Reporter* reporter) { 187 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()); 189 REPORTER_ASSERT(reporter, height == clip.getBounds().height()); 201 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()) [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...] |
BlurTest.cpp | 101 static void test_blur_drawing(skiatest::Reporter* reporter) { 149 REPORTER_ASSERT(reporter, 328 static void test_sigma_range(skiatest::Reporter* reporter, GrContextFactory* factory) { 362 REPORTER_ASSERT(reporter, match(rectSpecialCaseResult, bruteForce1DResult, kSize, 5)); 363 REPORTER_ASSERT(reporter, match(generalCaseResult, bruteForce1DResult, kSize, 15)); 372 REPORTER_ASSERT(reporter, match(gpuResult, bruteForce1DResult, kSize, 10)); 376 REPORTER_ASSERT(reporter, match(groundTruthResult, bruteForce1DResult, kSize, 1)); 415 static void test_blurDrawLooper(skiatest::Reporter* reporter, SkScalar sigma [all...] |
BlendTest.cpp | 27 static void test(skiatest::Reporter* r, int maxDiff, Blend algorithm, 39 static void test_alpha(skiatest::Reporter* r, uint8_t alpha, int maxDiff, Blend algorithm) { 50 static void test_dst(skiatest::Reporter* r, uint8_t dst, int maxDiff, Blend algorithm) {
|