/external/skqp/tests/ |
H A D | Point3Test.cpp | 13 static void test_eq_ops(skiatest::Reporter* reporter) { argument 18 REPORTER_ASSERT(reporter, p0 != p1); 19 REPORTER_ASSERT(reporter, p1 == p2); 22 static void test_ops(skiatest::Reporter* reporter) { argument 25 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(v.length(), SK_Scalar1)); 29 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.length(), 3.0f)); 32 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.length(), SK_Scalar1)); 39 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.x(), 0.0f)); 40 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.y(), 0.0f)); 41 REPORTER_ASSERT(reporter, SkScalarNearlyEqua 50 test_dot(skiatest::Reporter* reporter) argument 79 test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y, SkScalar z, SkScalar expectedLen) argument 90 test_normalize(skiatest::Reporter* reporter, SkScalar x, SkScalar y, SkScalar z, SkScalar expectedLen) argument [all...] |
H A D | ShadowTest.cpp | 16 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, argument 23 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 28 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 33 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 38 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 43 DEF_TEST(ShadowUtils, reporter) { 48 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), true); 53 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), false); 60 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), false); 63 void check_xformed_bounds(skiatest::Reporter* reporter, cons argument 90 check_bounds(skiatest::Reporter* reporter, const SkPath& path) argument [all...] |
H A D | LayerDrawLooperTest.cpp | 44 static void test_frontToBack(skiatest::Reporter* reporter) { argument 65 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 66 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrc); 68 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX()); 69 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY()); 73 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 74 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrcOver); 76 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX()); 77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY()); 80 REPORTER_ASSERT(reporter, !contex 83 test_backToFront(skiatest::Reporter* reporter) argument 122 test_mixed(skiatest::Reporter* reporter) argument [all...] |
H A D | InfRectTest.cpp | 21 static void test_center(skiatest::Reporter* reporter) { argument 30 REPORTER_ASSERT(reporter, 32 REPORTER_ASSERT(reporter, 44 REPORTER_ASSERT(reporter, ((r.left() + r.right()) >> 1) == cx); 45 REPORTER_ASSERT(reporter, ((r.top() + r.bottom()) >> 1) == cy); 49 static void check_invalid(skiatest::Reporter* reporter, argument 53 REPORTER_ASSERT(reporter, !rect.isFinite()); 58 DEF_TEST(InfRect, reporter) { 65 REPORTER_ASSERT(reporter, SkRect::MakeEmpty().isFinite()); 68 REPORTER_ASSERT(reporter, rec [all...] |
H A D | MemsetTest.cpp | 47 static void test_16(skiatest::Reporter* reporter) { argument 57 compare16(reporter, buffer, 0, PAD + alignment); 58 compare16(reporter, base, VALUE16, count); 59 compare16(reporter, base + count, 0, TOTAL - count - PAD - alignment); 64 static void test_32(skiatest::Reporter* reporter) { argument 74 compare32(reporter, buffer, 0, PAD + alignment); 75 compare32(reporter, base, VALUE32, count); 76 compare32(reporter, base + count, 0, TOTAL - count - PAD - alignment); 86 DEF_TEST(Memset, reporter) { 87 test_16(reporter); [all...] |
H A D | SkColor4fTest.cpp | 26 DEF_TEST(SkColor4f_FromColor, reporter) { 41 REPORTER_ASSERT(reporter, c4 == r.fC4); 45 DEF_TEST(Color4f_premul, reporter) { 54 REPORTER_ASSERT(reporter, pm4.a() == c4.fA); 55 REPORTER_ASSERT(reporter, pm4.r() == c4.fA * c4.fR); 56 REPORTER_ASSERT(reporter, pm4.g() == c4.fA * c4.fG); 57 REPORTER_ASSERT(reporter, pm4.b() == c4.fA * c4.fB); 63 REPORTER_ASSERT(reporter, pm4.fVec[SK_A_INDEX] == c4.fA); 64 REPORTER_ASSERT(reporter, nearly_equal(pm4.r(), c4.fA * c4.fR)); 65 REPORTER_ASSERT(reporter, nearly_equa [all...] |
H A D | PathTest.cpp | 34 static void test_add_rrect(skiatest::Reporter* reporter, const SkRect& bounds, argument 38 REPORTER_ASSERT(reporter, bounds == rrect.rect()); 43 REPORTER_ASSERT(reporter, bounds == path.getBounds()); 46 static void test_skbug_3469(skiatest::Reporter* reporter) { argument 51 REPORTER_ASSERT(reporter, !path.isConvex()); 54 static void test_skbug_3239(skiatest::Reporter* reporter) { argument 67 test_add_rrect(reporter, rectx, radii); 68 test_add_rrect(reporter, recty, radii); 227 static void make_path_crbugskia2820(SkPath* path, skiatest::Reporter* reporter) { argument 240 static void test_path_crbugskia2820(skiatest::Reporter* reporter) {//GrContex argument 282 test_path_to_region(skiatest::Reporter* reporter) argument 308 test_path_close_issue1474(skiatest::Reporter* reporter) argument 358 test_gen_id(skiatest::Reporter* reporter) argument 536 test_tiny_path_convexity(skiatest::Reporter* reporter, const char* pathBug, SkScalar tx, SkScalar ty, SkScalar scale) argument 552 test_crbug_493450(skiatest::Reporter* reporter) argument 571 test_crbug_495894(skiatest::Reporter* reporter) argument 608 test_addrect(skiatest::Reporter* reporter) argument 636 test_addrect_isfinite(skiatest::Reporter* reporter) argument 695 dump_if_ne(skiatest::Reporter* reporter, const SkRect& expected, const SkRect& bounds) argument 703 test_bounds_crbug_513799(skiatest::Reporter* reporter) argument 733 test_fuzz_crbug_627414(skiatest::Reporter* reporter) argument 760 test_isfinite_after_transform(skiatest::Reporter* reporter) argument 830 test_arb_round_rect_is_convex(skiatest::Reporter* reporter) argument 857 test_arb_zero_rad_round_rect_is_rect(skiatest::Reporter* reporter) argument 882 test_rect_isfinite(skiatest::Reporter* reporter) argument 916 test_path_isfinite(skiatest::Reporter* reporter) argument 940 test_isfinite(skiatest::Reporter* reporter) argument 945 test_islastcontourclosed(skiatest::Reporter* reporter) argument 969 test_poly(skiatest::Reporter* reporter, const SkPath& path, const SkPoint srcPts[], bool expectClose) argument 1012 test_addPoly(skiatest::Reporter* reporter) argument 1030 test_strokerec(skiatest::Reporter* reporter) argument 1054 check_direction(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection expected) argument 1069 test_direction(skiatest::Reporter* reporter) argument 1165 test_bounds(skiatest::Reporter* reporter) argument 1218 check_close(skiatest::Reporter* reporter, const SkPath& path) argument 1247 test_close(skiatest::Reporter* reporter) argument 1314 check_convexity(skiatest::Reporter* reporter, const SkPath& path, SkPath::Convexity expected) argument 1321 test_path_crbug389050(skiatest::Reporter* reporter) argument 1349 test_convexity2(skiatest::Reporter* reporter) argument 1487 check_convex_bounds(skiatest::Reporter* reporter, const SkPath& p, const SkRect& bounds) argument 1521 test_convexity(skiatest::Reporter* reporter) argument 1662 test_isLine(skiatest::Reporter* reporter) argument 1712 test_conservativelyContains(skiatest::Reporter* reporter) argument 1940 test_isRect_open_close(skiatest::Reporter* reporter) argument 1953 test_isRect(skiatest::Reporter* reporter) argument 2133 check_simple_closed_rect(skiatest::Reporter* reporter, const SkPath& path, const SkRect& rect, SkPath::Direction dir, unsigned start) argument 2145 test_is_simple_closed_rect(skiatest::Reporter* reporter) argument 2266 test_isNestedFillRects(skiatest::Reporter* reporter) argument 2490 write_and_read_back(skiatest::Reporter* reporter, const SkPath& p) argument 2529 test_corrupt_flattening(skiatest::Reporter* reporter) argument 2623 test_flattening(skiatest::Reporter* reporter) argument 2675 test_transform(skiatest::Reporter* reporter) argument 2779 test_zero_length_paths(skiatest::Reporter* reporter) argument 2857 test_segment_masks(skiatest::Reporter* reporter) argument 2882 test_iter(skiatest::Reporter* reporter) argument 3062 test_raw_iter(skiatest::Reporter* reporter) argument 3286 check_for_circle(skiatest::Reporter* reporter, const SkPath& path, bool expectedCircle, SkPathPriv::FirstDirection expectedDir) argument 3304 test_circle_skew(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3322 test_circle_translate(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3342 test_circle_rotate(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3362 test_circle_mirror_x(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3379 test_circle_mirror_y(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3398 test_circle_mirror_xy(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3411 test_circle_with_direction(skiatest::Reporter* reporter, SkPath::Direction inDir) argument 3453 test_circle_with_add_paths(skiatest::Reporter* reporter) argument 3489 test_circle(skiatest::Reporter* reporter) argument 3519 test_oval(skiatest::Reporter* reporter) argument 3582 test_empty(skiatest::Reporter* reporter, const SkPath& p) argument 3596 test_rrect_is_convex(skiatest::Reporter* reporter, SkPath* path, SkPath::Direction dir) argument 3605 test_rrect_convexity_is_unknown(skiatest::Reporter* reporter, SkPath* path, SkPath::Direction dir) argument 3614 test_rrect(skiatest::Reporter* reporter) argument 3684 test_arc(skiatest::Reporter* reporter) argument 3737 check_oval_arc(skiatest::Reporter* reporter, SkScalar start, SkScalar sweep, const SkPath& path) argument 3751 test_arc_ovals(skiatest::Reporter* reporter) argument 3776 check_move(skiatest::Reporter* reporter, SkPath::RawIter* iter, SkScalar x0, SkScalar y0) argument 3785 check_line(skiatest::Reporter* reporter, SkPath::RawIter* iter, SkScalar x1, SkScalar y1) argument 3794 check_quad(skiatest::Reporter* reporter, SkPath::RawIter* iter, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) argument 3805 check_done(skiatest::Reporter* reporter, SkPath* p, SkPath::RawIter* iter) argument 3811 check_done_and_reset(skiatest::Reporter* reporter, SkPath* p, SkPath::RawIter* iter) argument 3816 check_path_is_move_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x0, SkScalar y0) argument 3823 check_path_is_line_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1) argument 3831 check_path_is_line(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1) argument 3839 check_path_is_line_pair_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) argument 3848 check_path_is_quad_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) argument 3863 test_arcTo(skiatest::Reporter* reporter) argument 3913 test_addPath(skiatest::Reporter* reporter) argument 3931 test_addPathMode(skiatest::Reporter* reporter, bool explicitMoveTo, bool extend) argument 3951 test_extendClosedPath(skiatest::Reporter* reporter) argument 3977 test_addEmptyPath(skiatest::Reporter* reporter, SkPath::AddPathMode mode) argument 3993 test_conicTo_special_case(skiatest::Reporter* reporter) argument 4003 test_get_point(skiatest::Reporter* reporter) argument 4017 test_contains(skiatest::Reporter* reporter) argument 4177 TestPathRef(skiatest::Reporter* reporter) argument 4244 test_operatorEqual(skiatest::Reporter* reporter) argument 4265 compare_dump(skiatest::Reporter* reporter, const SkPath& path, bool force, bool dumpAsHex, const char* str) argument 4278 test_dump(skiatest::Reporter* reporter) argument 4346 TestPathTo(skiatest::Reporter* reporter) argument 4364 TestPathrefListeners(skiatest::Reporter* reporter) argument 4409 test_crbug_629455(skiatest::Reporter* reporter) argument 4420 test_fuzz_crbug_662952(skiatest::Reporter* reporter) argument 4459 test_fuzz_crbug_662730(skiatest::Reporter* reporter) argument 4531 test_interp(skiatest::Reporter* reporter) argument [all...] |
H A D | Matrix44Test.cpp | 31 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[], argument 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); 46 REPORTER_ASSERT(reporter, dat 79 test_constructor(skiatest::Reporter* reporter) argument 118 test_translate(skiatest::Reporter* reporter) argument 146 test_scale(skiatest::Reporter* reporter) argument 198 test_map2(skiatest::Reporter* reporter, const SkMatrix44& mat) argument 216 test_map2(skiatest::Reporter* reporter) argument 225 test_gettype(skiatest::Reporter* reporter) argument 260 test_common_angles(skiatest::Reporter* reporter) argument 272 test_concat(skiatest::Reporter* reporter) argument 313 test_determinant(skiatest::Reporter* reporter) argument 338 test_invert(skiatest::Reporter* reporter) argument 457 test_transpose(skiatest::Reporter* reporter) argument 473 test_get_set_double(skiatest::Reporter* reporter) argument 505 test_set_row_col_major(skiatest::Reporter* reporter) argument 531 test_3x3_conversion(skiatest::Reporter* reporter) argument 575 test_has_perspective(skiatest::Reporter* reporter) argument 627 empirically_preserves_2d_axis_alignment(skiatest::Reporter* reporter, const SkMatrix44& transform) argument 644 test(bool expected, skiatest::Reporter* reporter, const SkMatrix44& transform) argument 654 test_preserves_2d_axis_alignment(skiatest::Reporter* reporter) argument 816 test_toint(skiatest::Reporter* reporter) argument [all...] |
H A D | SVGDeviceTest.cpp | 25 void check_text_node(skiatest::Reporter* reporter, argument 32 ERRORF(reporter, "root element not found."); 38 ERRORF(reporter, "<text> element not found."); 41 REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type); 44 REPORTER_ASSERT(reporter, textNode != nullptr); 46 REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type); 47 REPORTER_ASSERT(reporter, strcmp(expected, dom.getName(textNode)) == 0); 53 REPORTER_ASSERT(reporter, x != nullptr); 56 REPORTER_ASSERT(reporter, SkParse::Count(x) == xposCount); 61 REPORTER_ASSERT(reporter, xpo 87 test_whitespace_pos(skiatest::Reporter* reporter, const char* txt, const char* expected) argument [all...] |
H A D | RRectInPathTest.cpp | 14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path, argument 17 REPORTER_ASSERT(reporter, path.isRRect(&out, dir, start)); 20 REPORTER_ASSERT(reporter, path == recreatedPath); 35 REPORTER_ASSERT(reporter, xformed.isRRect(&xrr, &xd, &xs)); 38 REPORTER_ASSERT(reporter, recreatedPath == xformed); 43 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in, argument 57 SkRRect rrect = path_contains_rrect(reporter, path, &outDir, &outStart); 58 REPORTER_ASSERT(reporter, outDir == dir && outStart == start); 62 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in, argument 64 SkRRect out = inner_path_contains_rrect(reporter, i 71 path_contains_rrect_nocheck(skiatest::Reporter* reporter, const SkRRect& in, SkPath::Direction dir, unsigned start) argument 79 path_contains_rrect_check(skiatest::Reporter* reporter, const SkRect& r, SkVector v[4], SkPath::Direction dir, unsigned start) argument 93 force_path_contains_rrect(skiatest::Reporter* reporter, SkPath& path, SkPath::Direction dir, unsigned start) argument 102 test_undetected_paths(skiatest::Reporter* reporter) argument 172 test_tricky_radii(skiatest::Reporter* reporter) argument 199 test_empty_crbug_458524(skiatest::Reporter* reporter) argument 217 test_inset(skiatest::Reporter* reporter) argument 243 test_9patch_rrect(skiatest::Reporter* reporter, const SkRect& rect, SkScalar l, SkScalar t, SkScalar r, SkScalar b, bool checkRadii) argument 270 test_round_rect_basic(skiatest::Reporter* reporter) argument 344 test_round_rect_rects(skiatest::Reporter* reporter) argument 373 test_round_rect_ovals(skiatest::Reporter* reporter) argument 387 test_round_rect_general(skiatest::Reporter* reporter) argument 408 test_round_rect_iffy_parameters(skiatest::Reporter* reporter) argument 425 test_skbug_3239(skiatest::Reporter* reporter) argument 447 test_mix(skiatest::Reporter* reporter) argument [all...] |
H A D | PathOpsLineIntersectionTest.cpp | 87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, argument 96 REPORTER_ASSERT(reporter, ts.used() != 1); 101 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2)); 102 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint())); 107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, argument 114 REPORTER_ASSERT(reporter, pts); 115 REPORTER_ASSERT(reporter, pts == i.used()); 116 check_results(reporter, line1, line2, i, nearAllowed); 125 check_results(reporter, line2, line1, ts, nearAllowed); 132 check_results(reporter, line 151 testOneCoincident(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) argument [all...] |
/external/skia/tests/ |
H A D | ShadowTest.cpp | 16 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, argument 23 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 28 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 33 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 38 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 43 DEF_TEST(ShadowUtils, reporter) { 48 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), true); 53 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), false); 60 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), false); 63 void check_xformed_bounds(skiatest::Reporter* reporter, cons argument 90 check_bounds(skiatest::Reporter* reporter, const SkPath& path) argument [all...] |
H A D | LayerDrawLooperTest.cpp | 44 static void test_frontToBack(skiatest::Reporter* reporter) { argument 65 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 66 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrc); 68 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX()); 69 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY()); 73 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 74 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrcOver); 76 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX()); 77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY()); 80 REPORTER_ASSERT(reporter, !contex 83 test_backToFront(skiatest::Reporter* reporter) argument 122 test_mixed(skiatest::Reporter* reporter) argument [all...] |
H A D | InfRectTest.cpp | 21 static void test_center(skiatest::Reporter* reporter) { argument 30 REPORTER_ASSERT(reporter, 32 REPORTER_ASSERT(reporter, 44 REPORTER_ASSERT(reporter, ((r.left() + r.right()) >> 1) == cx); 45 REPORTER_ASSERT(reporter, ((r.top() + r.bottom()) >> 1) == cy); 49 static void check_invalid(skiatest::Reporter* reporter, argument 53 REPORTER_ASSERT(reporter, !rect.isFinite()); 58 DEF_TEST(InfRect, reporter) { 65 REPORTER_ASSERT(reporter, SkRect::MakeEmpty().isFinite()); 68 REPORTER_ASSERT(reporter, rec [all...] |
H A D | MemsetTest.cpp | 47 static void test_16(skiatest::Reporter* reporter) { argument 57 compare16(reporter, buffer, 0, PAD + alignment); 58 compare16(reporter, base, VALUE16, count); 59 compare16(reporter, base + count, 0, TOTAL - count - PAD - alignment); 64 static void test_32(skiatest::Reporter* reporter) { argument 74 compare32(reporter, buffer, 0, PAD + alignment); 75 compare32(reporter, base, VALUE32, count); 76 compare32(reporter, base + count, 0, TOTAL - count - PAD - alignment); 86 DEF_TEST(Memset, reporter) { 87 test_16(reporter); [all...] |
H A D | SkColor4fTest.cpp | 26 DEF_TEST(SkColor4f_FromColor, reporter) { 41 REPORTER_ASSERT(reporter, c4 == r.fC4); 45 DEF_TEST(Color4f_premul, reporter) { 54 REPORTER_ASSERT(reporter, pm4.a() == c4.fA); 55 REPORTER_ASSERT(reporter, pm4.r() == c4.fA * c4.fR); 56 REPORTER_ASSERT(reporter, pm4.g() == c4.fA * c4.fG); 57 REPORTER_ASSERT(reporter, pm4.b() == c4.fA * c4.fB); 63 REPORTER_ASSERT(reporter, pm4.fVec[SK_A_INDEX] == c4.fA); 64 REPORTER_ASSERT(reporter, nearly_equal(pm4.r(), c4.fA * c4.fR)); 65 REPORTER_ASSERT(reporter, nearly_equa [all...] |
H A D | Matrix44Test.cpp | 31 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[], argument 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); 46 REPORTER_ASSERT(reporter, dat 79 test_constructor(skiatest::Reporter* reporter) argument 118 test_translate(skiatest::Reporter* reporter) argument 146 test_scale(skiatest::Reporter* reporter) argument 198 test_map2(skiatest::Reporter* reporter, const SkMatrix44& mat) argument 216 test_map2(skiatest::Reporter* reporter) argument 225 test_gettype(skiatest::Reporter* reporter) argument 260 test_common_angles(skiatest::Reporter* reporter) argument 272 test_concat(skiatest::Reporter* reporter) argument 313 test_determinant(skiatest::Reporter* reporter) argument 338 test_invert(skiatest::Reporter* reporter) argument 457 test_transpose(skiatest::Reporter* reporter) argument 473 test_get_set_double(skiatest::Reporter* reporter) argument 505 test_set_row_col_major(skiatest::Reporter* reporter) argument 531 test_3x3_conversion(skiatest::Reporter* reporter) argument 575 test_has_perspective(skiatest::Reporter* reporter) argument 627 empirically_preserves_2d_axis_alignment(skiatest::Reporter* reporter, const SkMatrix44& transform) argument 644 test(bool expected, skiatest::Reporter* reporter, const SkMatrix44& transform) argument 654 test_preserves_2d_axis_alignment(skiatest::Reporter* reporter) argument 816 test_toint(skiatest::Reporter* reporter) argument [all...] |
H A D | RRectInPathTest.cpp | 14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path, argument 17 REPORTER_ASSERT(reporter, SkPathPriv::IsRRect(path, &out, dir, start)); 20 REPORTER_ASSERT(reporter, path == recreatedPath); 35 REPORTER_ASSERT(reporter, SkPathPriv::IsRRect(xformed, &xrr, &xd, &xs)); 38 REPORTER_ASSERT(reporter, recreatedPath == xformed); 43 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in, argument 57 SkRRect rrect = path_contains_rrect(reporter, path, &outDir, &outStart); 58 REPORTER_ASSERT(reporter, outDir == dir && outStart == start); 62 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in, argument 64 SkRRect out = inner_path_contains_rrect(reporter, i 71 path_contains_rrect_nocheck(skiatest::Reporter* reporter, const SkRRect& in, SkPath::Direction dir, unsigned start) argument 79 path_contains_rrect_check(skiatest::Reporter* reporter, const SkRect& r, SkVector v[4], SkPath::Direction dir, unsigned start) argument 93 force_path_contains_rrect(skiatest::Reporter* reporter, SkPath& path, SkPath::Direction dir, unsigned start) argument 102 test_undetected_paths(skiatest::Reporter* reporter) argument 172 test_tricky_radii(skiatest::Reporter* reporter) argument 199 test_empty_crbug_458524(skiatest::Reporter* reporter) argument 217 test_inset(skiatest::Reporter* reporter) argument 243 test_9patch_rrect(skiatest::Reporter* reporter, const SkRect& rect, SkScalar l, SkScalar t, SkScalar r, SkScalar b, bool checkRadii) argument 270 test_round_rect_basic(skiatest::Reporter* reporter) argument 344 test_round_rect_rects(skiatest::Reporter* reporter) argument 373 test_round_rect_ovals(skiatest::Reporter* reporter) argument 387 test_round_rect_general(skiatest::Reporter* reporter) argument 408 test_round_rect_iffy_parameters(skiatest::Reporter* reporter) argument 425 test_skbug_3239(skiatest::Reporter* reporter) argument 447 test_mix(skiatest::Reporter* reporter) argument [all...] |
H A D | SVGDeviceTest.cpp | 25 void check_text_node(skiatest::Reporter* reporter, argument 32 ERRORF(reporter, "root element not found."); 38 ERRORF(reporter, "<text> element not found."); 41 REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type); 44 REPORTER_ASSERT(reporter, textNode != nullptr); 46 REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type); 47 REPORTER_ASSERT(reporter, strcmp(expected, dom.getName(textNode)) == 0); 53 REPORTER_ASSERT(reporter, x != nullptr); 56 REPORTER_ASSERT(reporter, SkParse::Count(x) == xposCount); 61 REPORTER_ASSERT(reporter, xpo 87 test_whitespace_pos(skiatest::Reporter* reporter, const char* txt, const char* expected) argument [all...] |
H A D | PathTest.cpp | 34 static void test_add_rrect(skiatest::Reporter* reporter, const SkRect& bounds, argument 38 REPORTER_ASSERT(reporter, bounds == rrect.rect()); 43 REPORTER_ASSERT(reporter, bounds == path.getBounds()); 46 static void test_skbug_3469(skiatest::Reporter* reporter) { argument 51 REPORTER_ASSERT(reporter, !path.isConvex()); 54 static void test_skbug_3239(skiatest::Reporter* reporter) { argument 67 test_add_rrect(reporter, rectx, radii); 68 test_add_rrect(reporter, recty, radii); 227 static void make_path_crbugskia2820(SkPath* path, skiatest::Reporter* reporter) { argument 240 static void test_path_crbugskia2820(skiatest::Reporter* reporter) {//GrContex argument 282 test_path_to_region(skiatest::Reporter* reporter) argument 308 test_path_close_issue1474(skiatest::Reporter* reporter) argument 358 test_gen_id(skiatest::Reporter* reporter) argument 536 test_tiny_path_convexity(skiatest::Reporter* reporter, const char* pathBug, SkScalar tx, SkScalar ty, SkScalar scale) argument 552 test_crbug_493450(skiatest::Reporter* reporter) argument 571 test_crbug_495894(skiatest::Reporter* reporter) argument 608 test_addrect(skiatest::Reporter* reporter) argument 636 test_addrect_isfinite(skiatest::Reporter* reporter) argument 695 dump_if_ne(skiatest::Reporter* reporter, const SkRect& expected, const SkRect& bounds) argument 703 test_bounds_crbug_513799(skiatest::Reporter* reporter) argument 733 test_fuzz_crbug_627414(skiatest::Reporter* reporter) argument 760 test_isfinite_after_transform(skiatest::Reporter* reporter) argument 830 test_arb_round_rect_is_convex(skiatest::Reporter* reporter) argument 857 test_arb_zero_rad_round_rect_is_rect(skiatest::Reporter* reporter) argument 882 test_rect_isfinite(skiatest::Reporter* reporter) argument 916 test_path_isfinite(skiatest::Reporter* reporter) argument 940 test_isfinite(skiatest::Reporter* reporter) argument 945 test_islastcontourclosed(skiatest::Reporter* reporter) argument 969 test_poly(skiatest::Reporter* reporter, const SkPath& path, const SkPoint srcPts[], bool expectClose) argument 1012 test_addPoly(skiatest::Reporter* reporter) argument 1030 test_strokerec(skiatest::Reporter* reporter) argument 1054 check_direction(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection expected) argument 1069 test_direction(skiatest::Reporter* reporter) argument 1165 test_bounds(skiatest::Reporter* reporter) argument 1218 check_close(skiatest::Reporter* reporter, const SkPath& path) argument 1247 test_close(skiatest::Reporter* reporter) argument 1314 check_convexity(skiatest::Reporter* reporter, const SkPath& path, SkPath::Convexity expected) argument 1321 test_path_crbug389050(skiatest::Reporter* reporter) argument 1349 test_convexity2(skiatest::Reporter* reporter) argument 1487 check_convex_bounds(skiatest::Reporter* reporter, const SkPath& p, const SkRect& bounds) argument 1521 test_convexity(skiatest::Reporter* reporter) argument 1662 test_isLine(skiatest::Reporter* reporter) argument 1712 test_conservativelyContains(skiatest::Reporter* reporter) argument 1940 test_isRect_open_close(skiatest::Reporter* reporter) argument 1953 test_isRect(skiatest::Reporter* reporter) argument 2133 check_simple_closed_rect(skiatest::Reporter* reporter, const SkPath& path, const SkRect& rect, SkPath::Direction dir, unsigned start) argument 2145 test_is_simple_closed_rect(skiatest::Reporter* reporter) argument 2266 test_isNestedFillRects(skiatest::Reporter* reporter) argument 2490 write_and_read_back(skiatest::Reporter* reporter, const SkPath& p) argument 2531 test_flattening(skiatest::Reporter* reporter) argument 2581 test_transform(skiatest::Reporter* reporter) argument 2685 test_zero_length_paths(skiatest::Reporter* reporter) argument 2763 test_segment_masks(skiatest::Reporter* reporter) argument 2788 test_iter(skiatest::Reporter* reporter) argument 2968 test_raw_iter(skiatest::Reporter* reporter) argument 3192 check_for_circle(skiatest::Reporter* reporter, const SkPath& path, bool expectedCircle, SkPathPriv::FirstDirection expectedDir) argument 3210 test_circle_skew(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3228 test_circle_translate(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3248 test_circle_rotate(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3268 test_circle_mirror_x(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3285 test_circle_mirror_y(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3304 test_circle_mirror_xy(skiatest::Reporter* reporter, const SkPath& path, SkPathPriv::FirstDirection dir) argument 3317 test_circle_with_direction(skiatest::Reporter* reporter, SkPath::Direction inDir) argument 3359 test_circle_with_add_paths(skiatest::Reporter* reporter) argument 3395 test_circle(skiatest::Reporter* reporter) argument 3425 test_oval(skiatest::Reporter* reporter) argument 3488 test_empty(skiatest::Reporter* reporter, const SkPath& p) argument 3502 test_rrect_is_convex(skiatest::Reporter* reporter, SkPath* path, SkPath::Direction dir) argument 3511 test_rrect_convexity_is_unknown(skiatest::Reporter* reporter, SkPath* path, SkPath::Direction dir) argument 3520 test_rrect(skiatest::Reporter* reporter) argument 3590 test_arc(skiatest::Reporter* reporter) argument 3643 check_oval_arc(skiatest::Reporter* reporter, SkScalar start, SkScalar sweep, const SkPath& path) argument 3657 test_arc_ovals(skiatest::Reporter* reporter) argument 3682 check_move(skiatest::Reporter* reporter, SkPath::RawIter* iter, SkScalar x0, SkScalar y0) argument 3691 check_line(skiatest::Reporter* reporter, SkPath::RawIter* iter, SkScalar x1, SkScalar y1) argument 3700 check_quad(skiatest::Reporter* reporter, SkPath::RawIter* iter, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) argument 3711 check_done(skiatest::Reporter* reporter, SkPath* p, SkPath::RawIter* iter) argument 3717 check_done_and_reset(skiatest::Reporter* reporter, SkPath* p, SkPath::RawIter* iter) argument 3722 check_path_is_move_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x0, SkScalar y0) argument 3729 check_path_is_line_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1) argument 3737 check_path_is_line(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1) argument 3745 check_path_is_line_pair_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) argument 3754 check_path_is_quad_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) argument 3769 test_arcTo(skiatest::Reporter* reporter) argument 3819 test_addPath(skiatest::Reporter* reporter) argument 3837 test_addPathMode(skiatest::Reporter* reporter, bool explicitMoveTo, bool extend) argument 3857 test_extendClosedPath(skiatest::Reporter* reporter) argument 3883 test_addEmptyPath(skiatest::Reporter* reporter, SkPath::AddPathMode mode) argument 3899 test_conicTo_special_case(skiatest::Reporter* reporter) argument 3909 test_get_point(skiatest::Reporter* reporter) argument 3923 test_contains(skiatest::Reporter* reporter) argument 4083 TestPathRef(skiatest::Reporter* reporter) argument 4150 test_operatorEqual(skiatest::Reporter* reporter) argument 4171 compare_dump(skiatest::Reporter* reporter, const SkPath& path, bool force, bool dumpAsHex, const char* str) argument 4184 test_dump(skiatest::Reporter* reporter) argument 4252 TestPathTo(skiatest::Reporter* reporter) argument 4270 TestPathrefListeners(skiatest::Reporter* reporter) argument 4315 test_crbug_629455(skiatest::Reporter* reporter) argument 4326 test_fuzz_crbug_662952(skiatest::Reporter* reporter) argument 4365 test_fuzz_crbug_662730(skiatest::Reporter* reporter) argument 4437 test_interp(skiatest::Reporter* reporter) argument [all...] |
H A D | PathOpsLineIntersectionTest.cpp | 87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, argument 96 REPORTER_ASSERT(reporter, ts.used() != 1); 101 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2)); 102 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint())); 107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, argument 114 REPORTER_ASSERT(reporter, pts); 115 REPORTER_ASSERT(reporter, pts == i.used()); 116 check_results(reporter, line1, line2, i, nearAllowed); 125 check_results(reporter, line2, line1, ts, nearAllowed); 132 check_results(reporter, line 151 testOneCoincident(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) argument [all...] |
H A D | PathOpsDVectorTest.cpp | 23 DEF_TEST(PathOpsDVector, reporter) { 30 REPORTER_ASSERT(reporter, v1.fX == 0 && v1.fY == 0); 32 REPORTER_ASSERT(reporter, v2.fX == 0 && v2.fY == 0); 37 REPORTER_ASSERT(reporter, v1.fX == 0 && v1.fY == 0); 39 REPORTER_ASSERT(reporter, sv.fX == 0 && sv.fY == 0); 43 REPORTER_ASSERT(reporter, lenSq == v1Dot); 44 REPORTER_ASSERT(reporter, approximately_equal(sqrt(lenSq), v1.length())); 46 REPORTER_ASSERT(reporter, v1Cross == 0);
|
H A D | PathOpsTightBoundsTest.cpp | 36 DEF_TEST(PathOpsTightBoundsLines, reporter) { 37 initializeTests(reporter, "tightBoundsLines"); 38 PathOpsThreadedTestRunner testRunner(reporter); 39 int outerCount = reporter->allowExtendedTest() ? 100 : 1; 111 DEF_TEST(PathOpsTightBoundsQuads, reporter) { 112 initializeTests(reporter, "tightBoundsQuads"); 113 PathOpsThreadedTestRunner testRunner(reporter); 114 int outerCount = reporter->allowExtendedTest() ? 100 : 1; 124 DEF_TEST(PathOpsTightBoundsMove, reporter) { 136 REPORTER_ASSERT(reporter, TightBound [all...] |
H A D | PathOpsTypesTest.cpp | 16 DEF_TEST(PathOpsRoughly, reporter) { 19 REPORTER_ASSERT(reporter, equal);
|
H A D | QuickRejectTest.cpp | 62 static void test_drawBitmap(skiatest::Reporter* reporter) { argument 75 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 79 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 83 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 87 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 95 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 98 static void test_layers(skiatest::Reporter* reporter) { argument 102 REPORTER_ASSERT(reporter, false == canvas.quickReject(r)); 105 REPORTER_ASSERT(reporter, true == canvas.quickReject(r)); 110 REPORTER_ASSERT(reporter, tru 114 test_quick_reject(skiatest::Reporter* reporter) argument [all...] |