Home
last modified time | relevance | path

Searched refs:reporter (Results 26 - 50 of 425) sorted by relevance

12345678910>>...17

/third_party/skia/tests/
H A DSVGDeviceTest.cpp51 void check_text_node(skiatest::Reporter* reporter, in check_text_node() argument
59 ERRORF(reporter, "root element not found."); in check_text_node()
65 ERRORF(reporter, "<text> element not found."); in check_text_node()
68 REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type); in check_text_node()
71 REPORTER_ASSERT(reporter, textNode != nullptr); in check_text_node()
73 REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type); in check_text_node()
74 REPORTER_ASSERT(reporter, strcmp(expected, dom.getName(textNode)) == 0); in check_text_node()
80 REPORTER_ASSERT(reporter, x != nullptr); in check_text_node()
83 REPORTER_ASSERT(reporter, SkParse::Count(x) == xposCount); in check_text_node()
91 REPORTER_ASSERT(reporter, xpo in check_text_node()
118 test_whitespace_pos(skiatest::Reporter* reporter, const char* txt, const char* expected) test_whitespace_pos() argument
191 FindImageShaderNodes(skiatest::Reporter* reporter, const SkDOM* dom, const SkDOM::Node* root, const SkDOM::Node** patternOut, const SkDOM::Node** imageOut, const SkDOM::Node** rectOut) FindImageShaderNodes() argument
[all...]
H A DPathMeasureTest.cpp77 DEF_TEST(PathMeasure, reporter) { in DEF_TEST()
94 REPORTER_ASSERT(reporter, length == SK_Scalar1*5); in DEF_TEST()
111 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 4); in DEF_TEST()
114 REPORTER_ASSERT(reporter, length == SK_Scalar1); in DEF_TEST()
117 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST()
118 REPORTER_ASSERT(reporter, in DEF_TEST()
122 REPORTER_ASSERT(reporter, position.fY == 0); in DEF_TEST()
123 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1); in DEF_TEST()
124 REPORTER_ASSERT(reporter, tangent.fY == 0); in DEF_TEST()
141 REPORTER_ASSERT(reporter, lengt in DEF_TEST()
234 test_90_degrees(sk_sp<SkContourMeasure> cm, SkScalar radius, skiatest::Reporter* reporter) test_90_degrees() argument
248 test_empty_contours(skiatest::Reporter* reporter) test_empty_contours() argument
269 test_MLM_contours(skiatest::Reporter* reporter) test_MLM_contours() argument
283 test_shrink(skiatest::Reporter* reporter) test_shrink() argument
[all...]
H A DLListTest.cpp26 skiatest::Reporter* reporter, in check_list()
32 REPORTER_ASSERT(reporter, empty == list.isEmpty()); in check_list()
35 REPORTER_ASSERT(reporter, numElements == list.countEntries()); in check_list()
36 REPORTER_ASSERT(reporter, in0 == list.isInList(&elements[0])); in check_list()
37 REPORTER_ASSERT(reporter, in1 == list.isInList(&elements[1])); in check_list()
38 REPORTER_ASSERT(reporter, in2 == list.isInList(&elements[2])); in check_list()
39 REPORTER_ASSERT(reporter, in3 == list.isInList(&elements[3])); in check_list()
43 DEF_TEST(InternalLList, reporter) { in DEF_TEST()
53 check_list(list, reporter, true, 0, false, false, false, false, elements); in DEF_TEST()
57 check_list(list, reporter, fals in DEF_TEST()
25 check_list(const SkTInternalLList<ListElement>& list, skiatest::Reporter* reporter, bool empty, int numElements, bool in0, bool in1, bool in2, bool in3, ListElement elements[4]) check_list() argument
[all...]
H A DMatrixTest.cpp36 static bool are_equal(skiatest::Reporter* reporter, in are_equal() argument
52 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI); in are_equal()
55 REPORTER_ASSERT(reporter, foundZeroSignDiff); in are_equal()
66 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI); in are_equal()
69 REPORTER_ASSERT(reporter, foundNaN); in are_equal()
81 static void assert9(skiatest::Reporter* reporter, const SkMatrix& m, in assert9() argument
87 REPORTER_ASSERT(reporter, buffer[0] == a); in assert9()
88 REPORTER_ASSERT(reporter, buffer[1] == b); in assert9()
89 REPORTER_ASSERT(reporter, buffer[2] == c); in assert9()
90 REPORTER_ASSERT(reporter, buffe in assert9()
108 test_set9(skiatest::Reporter* reporter) test_set9() argument
130 test_matrix_recttorect(skiatest::Reporter* reporter) test_matrix_recttorect() argument
158 test_flatten(skiatest::Reporter* reporter, const SkMatrix& m) test_flatten() argument
178 test_matrix_min_max_scale(skiatest::Reporter* reporter) test_matrix_min_max_scale() argument
313 test_matrix_preserve_shape(skiatest::Reporter* reporter) test_matrix_preserve_shape() argument
486 test_matrix_decomposition(skiatest::Reporter* reporter) test_matrix_decomposition() argument
650 test_matrix_homogeneous(skiatest::Reporter* reporter) test_matrix_homogeneous() argument
822 test_decompScale(skiatest::Reporter* reporter) test_decompScale() argument
[all...]
H A DRRectInPathTest.cpp14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path, in path_contains_rrect() argument
17 REPORTER_ASSERT(reporter, SkPathPriv::IsRRect(path, &out, dir, start)); in path_contains_rrect()
20 REPORTER_ASSERT(reporter, path == recreatedPath); in path_contains_rrect()
35 REPORTER_ASSERT(reporter, SkPathPriv::IsRRect(xformed, &xrr, &xd, &xs)); in path_contains_rrect()
38 REPORTER_ASSERT(reporter, recreatedPath == xformed); in path_contains_rrect()
43 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in, in inner_path_contains_rrect() argument
57 SkRRect rrect = path_contains_rrect(reporter, path, &outDir, &outStart); in inner_path_contains_rrect()
58 REPORTER_ASSERT(reporter, outDir == dir && outStart == start); in inner_path_contains_rrect()
62 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in, in path_contains_rrect_check() argument
64 SkRRect out = inner_path_contains_rrect(reporter, i in path_contains_rrect_check()
71 path_contains_rrect_nocheck(skiatest::Reporter* reporter, const SkRRect& in, SkPathDirection dir, unsigned start) path_contains_rrect_nocheck() argument
79 path_contains_rrect_check(skiatest::Reporter* reporter, const SkRect& r, SkVector v[4], SkPathDirection dir, unsigned start) path_contains_rrect_check() argument
93 force_path_contains_rrect(skiatest::Reporter* reporter, SkPath& path, SkPathDirection dir, unsigned start) force_path_contains_rrect() argument
102 test_undetected_paths(skiatest::Reporter* reporter) test_undetected_paths() argument
168 test_tricky_radii(skiatest::Reporter* reporter) test_tricky_radii() argument
195 test_empty_crbug_458524(skiatest::Reporter* reporter) test_empty_crbug_458524() argument
213 test_inset(skiatest::Reporter* reporter) test_inset() argument
239 test_9patch_rrect(skiatest::Reporter* reporter, const SkRect& rect, SkScalar l, SkScalar t, SkScalar r, SkScalar b, bool checkRadii) test_9patch_rrect() argument
266 test_round_rect_basic(skiatest::Reporter* reporter) test_round_rect_basic() argument
340 test_round_rect_rects(skiatest::Reporter* reporter) test_round_rect_rects() argument
369 test_round_rect_ovals(skiatest::Reporter* reporter) test_round_rect_ovals() argument
383 test_round_rect_general(skiatest::Reporter* reporter) test_round_rect_general() argument
404 test_round_rect_iffy_parameters(skiatest::Reporter* reporter) test_round_rect_iffy_parameters() argument
421 test_skbug_3239(skiatest::Reporter* reporter) test_skbug_3239() argument
443 test_mix(skiatest::Reporter* reporter) test_mix() argument
[all...]
H A DClipStackTest.cpp34 static void test_assign_and_comparison(skiatest::Reporter* reporter) { in test_assign_and_comparison() argument
38 REPORTER_ASSERT(reporter, 0 == s.getSaveCount()); in test_assign_and_comparison()
42 REPORTER_ASSERT(reporter, 1 == s.getSaveCount()); in test_assign_and_comparison()
52 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
60 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
67 REPORTER_ASSERT(reporter, s == copy); in test_assign_and_comparison()
71 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
72 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
76 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
79 REPORTER_ASSERT(reporter, in test_assign_and_comparison()
131 assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, int count) assert_count() argument
143 test_iterators(skiatest::Reporter* reporter) test_iterators() argument
206 test_bounds(skiatest::Reporter* reporter, SkClipStack::Element::DeviceSpaceType primType) test_bounds() argument
499 test_rect_merging(skiatest::Reporter* reporter) test_rect_merging() argument
590 test_quickContains(skiatest::Reporter* reporter) test_quickContains() argument
791 test_invfill_diff_bug(skiatest::Reporter* reporter) test_invfill_diff_bug() argument
817 test_is_rrect_deep_rect_stack(skiatest::Reporter* reporter) test_is_rrect_deep_rect_stack() argument
[all...]
H A DImageTest.cpp55 static void assert_equal(skiatest::Reporter* reporter, GrDirectContext* dContextA, SkImage* a, in assert_equal() argument
60 REPORTER_ASSERT(reporter, widthA == b->width()); in assert_equal()
61 REPORTER_ASSERT(reporter, heightA == b->height()); in assert_equal()
64 //REPORTER_ASSERT(reporter, a->isOpaque() == b->isOpaque()); in assert_equal()
73 REPORTER_ASSERT(reporter, a->readPixels(dContextA, pmapA, srcX, srcY)); in assert_equal()
74 REPORTER_ASSERT(reporter, b->readPixels(nullptr, pmapB, 0, 0)); in assert_equal()
78 REPORTER_ASSERT(reporter, !memcmp(pmapA.addr32(0, y), pmapB.addr32(0, y), widthBytes)); in assert_equal()
163 static void test_encode(skiatest::Reporter* reporter, GrDirectContext* dContext, SkImage* image) { in test_encode() argument
166 REPORTER_ASSERT(reporter, origEncoded); in test_encode()
167 REPORTER_ASSERT(reporter, origEncode in test_encode()
656 image_test_read_pixels(GrDirectContext* dContext, skiatest::Reporter* reporter, SkImage* image) image_test_read_pixels() argument
728 check_legacy_bitmap(skiatest::Reporter* reporter, GrDirectContext* dContext, const SkImage* image, const SkBitmap& bitmap) check_legacy_bitmap() argument
745 test_legacy_bitmap(skiatest::Reporter* reporter, GrDirectContext* dContext, const SkImage* image) test_legacy_bitmap() argument
788 test_peek(skiatest::Reporter* reporter, SkImage* image, bool expectPeekSuccess) test_peek() argument
884 test_cross_context_image(skiatest::Reporter* reporter, const GrContextOptions& options, const char* testName, std::function<sk_sp<SkImage>(GrDirectContext*)> imageMaker) test_cross_context_image() argument
1312 check_scaled_pixels(skiatest::Reporter* reporter, SkPixmap* pmap, uint32_t expected) check_scaled_pixels() argument
1326 test_scale_pixels(skiatest::Reporter* reporter, const SkImage* image, uint32_t expected) test_scale_pixels() argument
[all...]
H A DRectTest.cpp29 static void test_stroke_width_clipping(skiatest::Reporter* reporter) { in test_stroke_width_clipping() argument
45 REPORTER_ASSERT(reporter, !has_green_pixels(bm)); in test_stroke_width_clipping()
50 REPORTER_ASSERT(reporter, has_green_pixels(bm)); in test_stroke_width_clipping()
53 static void test_skbug4406(skiatest::Reporter* reporter) { in test_skbug4406() argument
74 REPORTER_ASSERT(reporter, !has_green_pixels(bm)); in test_skbug4406()
88 REPORTER_ASSERT(reporter, has_green_pixels(bm)); in test_skbug4406()
91 DEF_TEST(Rect, reporter) { in DEF_TEST()
92 test_stroke_width_clipping(reporter); in DEF_TEST()
93 test_skbug4406(reporter); in DEF_TEST()
96 DEF_TEST(Rect_grow, reporter) { in DEF_TEST()
145 make_big_value(skiatest::Reporter* reporter) make_big_value() argument
[all...]
H A DGrThreadSafeCacheTest.cpp347 bool checkImage(skiatest::Reporter* reporter, sk_sp<SkSurface> s) { in checkImage() argument
361 [reporter](int x, int y, const float diffs[4]) { in checkImage()
363 ERRORF(reporter, "mismatch at %d, %d (%f, %f, %f %f)", in checkImage()
370 bool checkImage(skiatest::Reporter* reporter) { in checkImage() argument
371 return this->checkImage(reporter, fDst); in checkImage()
374 bool checkImage(skiatest::Reporter* reporter, sk_sp<SkDeferredDisplayList> ddl) { in checkImage() argument
386 return this->checkImage(reporter, std::move(tmp)); in checkImage()
739 static void test_1(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_1() argument
746 REPORTER_ASSERT(reporter, (helper.*check)(helper.ddlCanvas1(), kImageWH, in test_1()
750 REPORTER_ASSERT(reporter, (helpe in test_1()
772 test_2(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_2() argument
809 test_3(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_3() argument
842 test_4(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_4() argument
876 test_4_5(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_4_5() argument
917 test_4_75(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_4_75() argument
956 test_5(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_5() argument
994 test_6(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_6() argument
1037 test_7(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_7() argument
1082 test_8(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_8() argument
1127 test_9(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_9() argument
1172 test_10(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_10() argument
1249 test_11(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_11() argument
1293 test_12(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_12() argument
1341 test_13(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check) test_13() argument
1422 test_15(GrDirectContext* dContext, skiatest::Reporter* reporter, TestHelper::addAccessFP addAccess, TestHelper::checkFP check, void (*create_key)(GrUniqueKey*, int wh, int id)) test_15() argument
[all...]
H A DPointTest.cpp13 static void test_casts(skiatest::Reporter* reporter) { in test_casts() argument
20 REPORTER_ASSERT(reporter, SkPointPriv::AsScalars(p) == pPtr); in test_casts()
21 REPORTER_ASSERT(reporter, r.asScalars() == rPtr); in test_casts()
25 static void test_Normalize(skiatest::Reporter* reporter, in test_Normalize() argument
32 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength)); in test_Normalize()
33 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1)); in test_Normalize()
36 static void test_normalize_cannormalize_consistent(skiatest::Reporter* reporter) { in test_normalize_cannormalize_consistent() argument
48 REPORTER_ASSERT(reporter, can == nor); in test_normalize_cannormalize_consistent()
56 static void test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y, in test_length() argument
64 REPORTER_ASSERT(reporter, SkScalarNearlyEqua in test_length()
77 get_value(skiatest::Reporter* reporter, T value) get_value() argument
88 force_as_float(skiatest::Reporter* reporter, float value) force_as_float() argument
103 test_overflow(skiatest::Reporter* reporter) test_overflow() argument
[all...]
H A DPoint3Test.cpp14 static void test_eq_ops(skiatest::Reporter* reporter) { in test_eq_ops() argument
19 REPORTER_ASSERT(reporter, p0 != p1); in test_eq_ops()
20 REPORTER_ASSERT(reporter, p1 == p2); in test_eq_ops()
23 static void test_ops(skiatest::Reporter* reporter) { in test_ops() argument
26 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(v.length(), SK_Scalar1)); in test_ops()
30 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.length(), 3.0f)); in test_ops()
33 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.length(), SK_Scalar1)); in test_ops()
40 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.x(), 0.0f)); in test_ops()
41 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.y(), 0.0f)); in test_ops()
42 REPORTER_ASSERT(reporter, SkScalarNearlyEqua in test_ops()
51 test_dot(skiatest::Reporter* reporter) test_dot() argument
80 test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y, SkScalar z, SkScalar expectedLen) test_length() argument
91 test_normalize(skiatest::Reporter* reporter, SkScalar x, SkScalar y, SkScalar z, SkScalar expectedLen) test_normalize() argument
[all...]
H A DShaderOpacityTest.cpp17 static void test_bitmap(skiatest::Reporter* reporter) { in test_bitmap() argument
25 REPORTER_ASSERT(reporter, shader); in test_bitmap()
26 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
33 REPORTER_ASSERT(reporter, shader); in test_bitmap()
34 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
39 REPORTER_ASSERT(reporter, shader); in test_bitmap()
40 REPORTER_ASSERT(reporter, shader->isOpaque()); in test_bitmap()
45 REPORTER_ASSERT(reporter, shader); in test_bitmap()
46 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
49 static void test_gradient(skiatest::Reporter* reporter) { in test_gradient() argument
87 test_color(skiatest::Reporter* reporter) test_color() argument
[all...]
H A DMetaDataTest.cpp12 DEF_TEST(MetaData, reporter) { in DEF_TEST()
15 REPORTER_ASSERT(reporter, !m1.findS32("int")); in DEF_TEST()
16 REPORTER_ASSERT(reporter, !m1.findScalar("scalar")); in DEF_TEST()
17 REPORTER_ASSERT(reporter, !m1.removeS32("int")); in DEF_TEST()
18 REPORTER_ASSERT(reporter, !m1.removeScalar("scalar")); in DEF_TEST()
31 REPORTER_ASSERT(reporter, m1.findS32("int", &n) && n == 12345); in DEF_TEST()
32 REPORTER_ASSERT(reporter, m1.findScalar("scalar", &s) && s == SK_Scalar1/2); in DEF_TEST()
33 REPORTER_ASSERT(reporter, m1.hasBool("true", true)); in DEF_TEST()
34 REPORTER_ASSERT(reporter, m1.hasBool("false", false)); in DEF_TEST()
62 REPORTER_ASSERT(reporter, gElem in DEF_TEST()
[all...]
H A DSizeTest.cpp12 DEF_TEST(ISize, reporter) { in DEF_TEST()
16 REPORTER_ASSERT(reporter, a.isEmpty()); in DEF_TEST()
18 REPORTER_ASSERT(reporter, a.isEmpty()); in DEF_TEST()
20 REPORTER_ASSERT(reporter, a.isEmpty()); in DEF_TEST()
22 REPORTER_ASSERT(reporter, a == b); in DEF_TEST()
25 REPORTER_ASSERT(reporter, !a.isEmpty()); in DEF_TEST()
27 REPORTER_ASSERT(reporter, !b.isEmpty()); in DEF_TEST()
28 REPORTER_ASSERT(reporter, a == b); in DEF_TEST()
29 REPORTER_ASSERT(reporter, !(a != b)); in DEF_TEST()
30 REPORTER_ASSERT(reporter, in DEF_TEST()
[all...]
H A DGrMipMappedTest.cpp43 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrWrappedMipMappedTest, reporter, ctxInfo) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
63 ERRORF(reporter, "Could not make texture."); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
92 REPORTER_ASSERT(reporter, (mipmapped == GrMipmapped::kYes) == image->hasMipmaps()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
95 REPORTER_ASSERT(reporter, proxy); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
100 REPORTER_ASSERT(reporter, proxy->isInstantiated()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
103 REPORTER_ASSERT(reporter, texture); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
109 REPORTER_ASSERT(reporter, GrMipmapped::kYes == texture->mipmapped()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
111 REPORTER_ASSERT(reporter, texture->mipmapsAreDirty()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
113 REPORTER_ASSERT(reporter, !texture->mipmapsAreDirty()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
116 REPORTER_ASSERT(reporter, GrMipmappe in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all...]
H A DTextBlobTest.cpp22 static void TestBuilder(skiatest::Reporter* reporter) { in TestBuilder() argument
26 RunBuilderTest(reporter, builder, nullptr, 0, nullptr, 0); in TestBuilder()
31 RunBuilderTest(reporter, builder, set1, SK_ARRAY_COUNT(set1), set1, SK_ARRAY_COUNT(set1)); in TestBuilder()
36 RunBuilderTest(reporter, builder, set2, SK_ARRAY_COUNT(set2), set2, SK_ARRAY_COUNT(set2)); in TestBuilder()
41 RunBuilderTest(reporter, builder, set3, SK_ARRAY_COUNT(set3), set3, SK_ARRAY_COUNT(set3)); in TestBuilder()
48 RunBuilderTest(reporter, builder, set4, SK_ARRAY_COUNT(set4), set4, SK_ARRAY_COUNT(set4)); in TestBuilder()
59 RunBuilderTest(reporter, builder, set5, SK_ARRAY_COUNT(set5), mergedSet5, in TestBuilder()
70 RunBuilderTest(reporter, builder, set6, SK_ARRAY_COUNT(set6), mergedSet6, in TestBuilder()
98 RunBuilderTest(reporter, builder, set7, SK_ARRAY_COUNT(set7), mergedSet7, in TestBuilder()
103 static void TestBounds(skiatest::Reporter* reporter) { in TestBounds() argument
173 TestPaintProps(skiatest::Reporter* reporter) TestPaintProps() argument
225 RunBuilderTest(skiatest::Reporter* reporter, SkTextBlobBuilder& builder, const RunDef in[], unsigned inCount, const RunDef out[], unsigned outCount) RunBuilderTest() argument
[all...]
H A DRegionTest.cpp18 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect))
19 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect))
20 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect))
24 static void test_fromchrome(skiatest::Reporter* reporter) { in test_fromchrome() argument
81 static void test_empties(skiatest::Reporter* reporter) { in test_empties() argument
85 REPORTER_ASSERT(reporter, empty.isEmpty()); in test_empties()
86 REPORTER_ASSERT(reporter, !valid.isEmpty()); in test_empties()
89 REPORTER_ASSERT(reporter, !empty.intersects(empty2)); in test_empties()
90 REPORTER_ASSERT(reporter, !valid.intersects(empty)); in test_empties()
93 REPORTER_ASSERT(reporter, !empt in test_empties()
142 test_contains_iter(skiatest::Reporter* reporter, const SkRegion& rgn) test_contains_iter() argument
153 contains_proc(skiatest::Reporter* reporter, const SkRegion& a, const SkRegion& b) contains_proc() argument
171 test_intersects_iter(skiatest::Reporter* reporter, const SkRegion& rgn) test_intersects_iter() argument
182 intersects_proc(skiatest::Reporter* reporter, const SkRegion& a, const SkRegion& b) intersects_proc() argument
192 test_proc(skiatest::Reporter* reporter, void (*proc)(skiatest::Reporter*, const SkRegion& a, const SkRegion&)) test_proc() argument
[all...]
H A DTypefaceTest.cpp30 static void TypefaceStyle_test(skiatest::Reporter* reporter, in TypefaceStyle_test() argument
72 REPORTER_ASSERT(reporter, in TypefaceStyle_test()
82 REPORTER_ASSERT(reporter, in TypefaceStyle_test()
86 DEF_TEST(TypefaceStyle, reporter) { in DEF_TEST()
89 REPORT_FAILURE(reporter, "fonts/Em.ttf", SkString("Cannot load resource")); in DEF_TEST()
96 TypefaceStyle_test(reporter, weight, 5, data.get()); in DEF_TEST()
99 TypefaceStyle_test(reporter, 400, width, data.get()); in DEF_TEST()
103 DEF_TEST(TypefacePostScriptName, reporter) { in DEF_TEST()
113 REPORTER_ASSERT(reporter, hasName == hasName2); in DEF_TEST()
115 REPORTER_ASSERT(reporter, postScriptNam in DEF_TEST()
476 count(skiatest::Reporter* reporter, const SkTypefaceCache& cache) count() argument
504 check_serialize_behaviors(sk_sp<SkTypeface> tf, bool isLocalData, skiatest::Reporter* reporter) check_serialize_behaviors() argument
523 check_serialize_behaviors(SkTypeface::MakeDefault(), false, reporter); DEF_TEST() local
[all...]
H A DSpecialImageTest.cpp58 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter, in test_image() argument
61 REPORTER_ASSERT(reporter, kPad == subset.left()); in test_image()
62 REPORTER_ASSERT(reporter, kPad == subset.top()); in test_image()
63 REPORTER_ASSERT(reporter, kSmallerSize == subset.width()); in test_image()
64 REPORTER_ASSERT(reporter, kSmallerSize == subset.height()); in test_image()
68 REPORTER_ASSERT(reporter, isGPUBacked == img->isTextureBacked()); in test_image()
74 REPORTER_ASSERT(reporter, view.asTextureProxy()); in test_image()
81 REPORTER_ASSERT(reporter, img->getROPixels(&bitmap)); in test_image()
82 REPORTER_ASSERT(reporter, kSmallerSize == bitmap.width()); in test_image()
83 REPORTER_ASSERT(reporter, kSmallerSiz in test_image()
159 test_specialimage_image(skiatest::Reporter* reporter) test_specialimage_image() argument
[all...]
H A DPathOpsLineIntersectionTest.cpp87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
96 REPORTER_ASSERT(reporter, ts.used() != 1); in check_results()
101 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2)); in check_results()
102 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint())); in check_results()
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne() argument
114 REPORTER_ASSERT(reporter, pts); in testOne()
115 REPORTER_ASSERT(reporter, pts == i.used()); in testOne()
116 check_results(reporter, line1, line2, i, nearAllowed); in testOne()
125 check_results(reporter, line2, line1, ts, nearAllowed); in testOne()
132 check_results(reporter, line in testOne()
151 testOneCoincident(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) testOneCoincident() argument
[all...]
H A DVkHardwareBufferTest.cpp47 virtual bool init(skiatest::Reporter* reporter) = 0;
52 virtual sk_sp<SkImage> importHardwareBufferForRead(skiatest::Reporter* reporter,
54 virtual sk_sp<SkSurface> importHardwareBufferForWrite(skiatest::Reporter* reporter,
58 virtual bool flushSurfaceAndSignalSemaphore(skiatest::Reporter* reporter, sk_sp<SkSurface>) = 0;
59 virtual bool importAndWaitOnSemaphore(skiatest::Reporter* reporter, int fdHandle,
100 bool init(skiatest::Reporter* reporter) override;
102 sk_sp<SkImage> importHardwareBufferForRead(skiatest::Reporter* reporter,
104 sk_sp<SkSurface> importHardwareBufferForWrite(skiatest::Reporter* reporter,
108 bool flushSurfaceAndSignalSemaphore(skiatest::Reporter* reporter, sk_sp<SkSurface>) override;
109 bool importAndWaitOnSemaphore(skiatest::Reporter* reporter, in
143 init(skiatest::Reporter* reporter) init() argument
220 importHardwareBuffer(skiatest::Reporter* reporter, AHardwareBuffer* buffer) importHardwareBuffer() argument
256 importHardwareBufferForRead(skiatest::Reporter* reporter, AHardwareBuffer* buffer) importHardwareBufferForRead() argument
284 importHardwareBufferForWrite(skiatest::Reporter* reporter, AHardwareBuffer* buffer) importHardwareBufferForWrite() argument
312 flushSurfaceAndSignalSemaphore(skiatest::Reporter* reporter, sk_sp<SkSurface> surface) flushSurfaceAndSignalSemaphore() argument
334 importAndWaitOnSemaphore(skiatest::Reporter* reporter, int fdHandle, sk_sp<SkSurface> surface) importAndWaitOnSemaphore() argument
509 init(skiatest::Reporter* reporter) init() argument
589 checkOptimalHardwareBuffer(skiatest::Reporter* reporter) checkOptimalHardwareBuffer() argument
649 importHardwareBuffer(skiatest::Reporter* reporter, AHardwareBuffer* buffer, bool forWrite, GrVkImageInfo* outImageInfo) importHardwareBuffer() argument
804 importHardwareBufferForRead(skiatest::Reporter* reporter, AHardwareBuffer* buffer) importHardwareBufferForRead() argument
828 flushSurfaceAndSignalSemaphore(skiatest::Reporter* reporter, sk_sp<SkSurface> surface) flushSurfaceAndSignalSemaphore() argument
852 setupSemaphoreForSignaling(skiatest::Reporter* reporter, GrBackendSemaphore* beSemaphore) setupSemaphoreForSignaling() argument
905 exportSemaphore(skiatest::Reporter* reporter, const GrBackendSemaphore& beSemaphore) exportSemaphore() argument
928 importAndWaitOnSemaphore(skiatest::Reporter* reporter, int fdHandle, sk_sp<SkSurface> surface) importAndWaitOnSemaphore() argument
966 importHardwareBufferForWrite(skiatest::Reporter* reporter, AHardwareBuffer* buffer) importHardwareBufferForWrite() argument
1036 check_read(skiatest::Reporter* reporter, const SkBitmap& srcBitmap, const SkBitmap& dstBitmap) check_read() argument
1081 run_test(skiatest::Reporter* reporter, const GrContextOptions& options, SrcType srcType, DstType dstType, bool shareSyncs) run_test() argument
[all...]
H A DTextureProxyTest.cpp40 static sk_sp<GrTextureProxy> deferred_tex(skiatest::Reporter* reporter, in deferred_tex() argument
52 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_tex()
56 static sk_sp<GrTextureProxy> deferred_texRT(skiatest::Reporter* reporter, in deferred_texRT() argument
68 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_texRT()
72 static sk_sp<GrTextureProxy> wrapped(skiatest::Reporter* reporter, GrRecordingContext*, in wrapped() argument
77 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in wrapped()
81 static sk_sp<GrTextureProxy> wrapped_with_key(skiatest::Reporter* reporter, GrRecordingContext*, in wrapped_with_key() argument
96 REPORTER_ASSERT(reporter, proxy->getUniqueKey().isValid()); in wrapped_with_key()
123 skiatest::Reporter* reporter, in basic_test()
142 REPORTER_ASSERT(reporter, !proxyProvide in basic_test()
122 basic_test(GrDirectContext* dContext, skiatest::Reporter* reporter, sk_sp<GrTextureProxy> proxy, int cacheEntriesPerProxy) basic_test() argument
219 invalidation_test(GrDirectContext* dContext, skiatest::Reporter* reporter, int cacheEntriesPerProxy) invalidation_test() argument
286 invalidation_and_instantiation_test(GrDirectContext* dContext, skiatest::Reporter* reporter, int cacheEntriesPerProxy) invalidation_and_instantiation_test() argument
[all...]
H A DSkResourceCacheTest.cpp32 static void check_data(skiatest::Reporter* reporter, const SkCachedData* data, in check_data() argument
34 REPORTER_ASSERT(reporter, data->testing_only_getRefCnt() == refcnt); in check_data()
35 REPORTER_ASSERT(reporter, data->testing_only_isInCache() == (kInCache == cacheState)); in check_data()
37 REPORTER_ASSERT(reporter, isLocked == (lockedState == kLocked)); in check_data()
40 static void test_mipmapcache(skiatest::Reporter* reporter, SkResourceCache* cache) { in test_mipmapcache() argument
50 REPORTER_ASSERT(reporter, nullptr == mipmap); in test_mipmapcache()
53 REPORTER_ASSERT(reporter, mipmap); in test_mipmapcache()
57 REPORTER_ASSERT(reporter, mm); in test_mipmapcache()
58 REPORTER_ASSERT(reporter, mm == mipmap); in test_mipmapcache()
62 check_data(reporter, mipma in test_mipmapcache()
79 test_mipmap_notify(skiatest::Reporter* reporter, SkResourceCache* cache) test_mipmap_notify() argument
121 testBitmapCache_discarded_bitmap(skiatest::Reporter* reporter, SkResourceCache* cache, SkResourceCache::DiscardableFactory factory) testBitmapCache_discarded_bitmap() argument
143 test_discarded_image(skiatest::Reporter* reporter, const SkMatrix& transform, sk_sp<SkImage> (*buildImage)()) test_discarded_image() argument
242 test_duplicate_add(SkResourceCache* cache, skiatest::Reporter* reporter, bool purgable) test_duplicate_add() argument
[all...]
H A DGLBackendSurfaceTest.cpp54 DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(GLTextureParameters, reporter, ctxInfo) { in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
60 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
63 REPORTER_ASSERT(reporter, backendTex.getGLTextureInfo(&info)); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
66 REPORTER_ASSERT(reporter, backendTexCopy.isSameTexture(backendTex)); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
71 REPORTER_ASSERT(reporter, wrappedImage); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
74 REPORTER_ASSERT(reporter, proxy); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
75 REPORTER_ASSERT(reporter, proxy->isInstantiated()); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
77 REPORTER_ASSERT(reporter, texture); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
79 REPORTER_ASSERT(reporter, parameters); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
88 REPORTER_ASSERT(reporter, sur in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
[all...]
/third_party/skia/modules/skottie/src/
H A DSkottieTest.cpp28 DEF_TEST(Skottie_OssFuzz8956, reporter) { in DEF_TEST()
40 DEF_TEST(Skottie_Properties, reporter) { in DEF_TEST()
42 REPORTER_ASSERT(reporter, test_typeface); in DEF_TEST()
259 REPORTER_ASSERT(reporter, animation); in DEF_TEST()
262 REPORTER_ASSERT(reporter, colors.size() == 2); in DEF_TEST()
263 REPORTER_ASSERT(reporter, colors[0].node_name.equals("fill_0")); in DEF_TEST()
264 REPORTER_ASSERT(reporter, colors[0].handle->get() == 0xffff0000); in DEF_TEST()
265 REPORTER_ASSERT(reporter, colors[1].node_name.equals("fill_effect_0")); in DEF_TEST()
266 REPORTER_ASSERT(reporter, colors[1].handle->get() == 0xff00ff00); in DEF_TEST()
269 REPORTER_ASSERT(reporter, colorsWithFullKeypat in DEF_TEST()
[all...]

Completed in 15 milliseconds

12345678910>>...17