Home
last modified time | relevance | path

Searched refs:reporter (Results 1 - 25 of 366) sorted by relevance

12345678910>>...15

/third_party/skia/tests/
H A DTArrayTest.cpp16 static void TestTSet_basic(skiatest::Reporter* reporter) { in TestTSet_basic() argument
20 REPORTER_ASSERT(reporter, a.empty()); in TestTSet_basic()
21 REPORTER_ASSERT(reporter, a.count() == 0); in TestTSet_basic()
25 REPORTER_ASSERT(reporter, !a.empty()); in TestTSet_basic()
26 REPORTER_ASSERT(reporter, a.count() == 1); in TestTSet_basic()
30 REPORTER_ASSERT(reporter, a.empty()); in TestTSet_basic()
31 REPORTER_ASSERT(reporter, a.count() == 0); in TestTSet_basic()
35 REPORTER_ASSERT(reporter, a.push_back() = 1); in TestTSet_basic()
37 REPORTER_ASSERT(reporter, !a.empty()); in TestTSet_basic()
38 REPORTER_ASSERT(reporter, in TestTSet_basic()
63 test_construction(skiatest::Reporter* reporter) test_construction() argument
118 test_skstarray_compatibility(skiatest::Reporter* reporter) test_skstarray_compatibility() argument
169 test_swap(skiatest::Reporter* reporter, SkTArray<T>* (&arrays)[4], int (&sizes)[7]) test_swap() argument
203 test_swap(skiatest::Reporter* reporter) test_swap() argument
228 test_unnecessary_alloc(skiatest::Reporter* reporter) test_unnecessary_alloc() argument
286 test_self_assignment(skiatest::Reporter* reporter) test_self_assignment() argument
299 test_array_reserve(skiatest::Reporter* reporter, Array* array, int reserveCount) test_array_reserve() argument
318 test_reserve(skiatest::Reporter* reporter) test_reserve() argument
[all...]
H A DUtilsTest.cpp33 static void test_autounref(skiatest::Reporter* reporter) { in test_autounref() argument
35 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
38 REPORTER_ASSERT(reporter, &obj == tmp.get()); in test_autounref()
39 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
41 REPORTER_ASSERT(reporter, &obj == tmp.release()); in test_autounref()
42 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
43 REPORTER_ASSERT(reporter, nullptr == tmp.release()); in test_autounref()
44 REPORTER_ASSERT(reporter, nullptr == tmp.get()); in test_autounref()
47 REPORTER_ASSERT(reporter, !obj.unique()); in test_autounref()
51 REPORTER_ASSERT(reporter, ob in test_autounref()
54 test_autostarray(skiatest::Reporter* reporter) test_autostarray() argument
127 test_search(skiatest::Reporter* reporter) test_search() argument
[all...]
H A DBackendSurfaceMutableStateTest.cpp23 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkBackendSurfaceMutableStateTest, reporter, ctxInfo) { in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
30 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
33 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
41 REPORTER_ASSERT(reporter, backendTexCopy.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
42 REPORTER_ASSERT(reporter, initLayout == info.fImageLayout); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
43 REPORTER_ASSERT(reporter, initQueue == info.fCurrentQueueFamily); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
49 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
50 REPORTER_ASSERT(reporter, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL == info.fImageLayout); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
51 REPORTER_ASSERT(reporter, VK_QUEUE_FAMILY_IGNORED == info.fCurrentQueueFamily); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
53 REPORTER_ASSERT(reporter, backendTexCop in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
[all...]
H A DJSONTest.cpp17 DEF_TEST(JSON_Parse, reporter) { in DEF_TEST()
136 REPORTER_ASSERT(reporter, success == (tst.out != nullptr)); in DEF_TEST()
144 REPORTER_ASSERT(reporter, !strcmp(tst.out, static_cast<const char*>(data->data()))); in DEF_TEST()
150 static void check_primitive(skiatest::Reporter* reporter, const Value& v, T pv, in check_primitive() argument
153 REPORTER_ASSERT(reporter, v.is<VT>() == is_type); in check_primitive()
155 REPORTER_ASSERT(reporter, (cast_t != nullptr) == is_type); in check_primitive()
158 REPORTER_ASSERT(reporter, &v.as<VT>() == cast_t); in check_primitive()
159 REPORTER_ASSERT(reporter, *v.as<VT>() == pv); in check_primitive()
164 static void check_vector(skiatest::Reporter* reporter, const Value& v, size_t expected_size, in check_vector() argument
166 REPORTER_ASSERT(reporter, in check_vector()
179 check_string(skiatest::Reporter* reporter, const Value& v, const char* s) check_string() argument
323 check_value(skiatest::Reporter* reporter, const Value& v, const char* expected_string) check_value() argument
[all...]
H A DDequeTest.cpp11 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) { in assert_count() argument
13 REPORTER_ASSERT(reporter, deq.empty()); in assert_count()
14 REPORTER_ASSERT(reporter, 0 == deq.count()); in assert_count()
15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
16 REPORTER_ASSERT(reporter, nullptr == deq.front()); in assert_count()
17 REPORTER_ASSERT(reporter, nullptr == deq.back()); in assert_count()
19 REPORTER_ASSERT(reporter, !deq.empty()); in assert_count()
20 REPORTER_ASSERT(reporter, count == deq.count()); in assert_count()
21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
22 REPORTER_ASSERT(reporter, de in assert_count()
32 assert_iter(skiatest::Reporter* reporter, const SkDeque& deq, int max, int min) assert_iter() argument
83 assert_blocks(skiatest::Reporter* reporter, const SkDeque& deq, int allocCount) assert_blocks() argument
100 TestSub(skiatest::Reporter* reporter, int allocCount) TestSub() argument
[all...]
H A DRoundRectTest.cpp16 static void test_tricky_radii(skiatest::Reporter* reporter) { in test_tricky_radii() argument
35 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + in test_tricky_radii()
41 static void test_empty_crbug_458524(skiatest::Reporter* reporter) { in test_empty_crbug_458524() argument
51 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType()); in test_empty_crbug_458524()
56 static void test_empty(skiatest::Reporter* reporter) { in test_empty() argument
76 REPORTER_ASSERT(reporter, !r.isEmpty()); in test_empty()
77 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
80 REPORTER_ASSERT(reporter, !r.isEmpty()); in test_empty()
81 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
84 REPORTER_ASSERT(reporter, ! in test_empty()
127 test_inset(skiatest::Reporter* reporter) test_inset() argument
149 test_9patch_rrect(skiatest::Reporter* reporter, const SkRect& rect, SkScalar l, SkScalar t, SkScalar r, SkScalar b, bool checkRadii) test_9patch_rrect() argument
175 test_round_rect_basic(skiatest::Reporter* reporter) test_round_rect_basic() argument
282 test_round_rect_rects(skiatest::Reporter* reporter) test_round_rect_rects() argument
322 test_round_rect_ovals(skiatest::Reporter* reporter) test_round_rect_ovals() argument
335 test_round_rect_general(skiatest::Reporter* reporter) test_round_rect_general() argument
353 test_round_rect_iffy_parameters(skiatest::Reporter* reporter) test_round_rect_iffy_parameters() argument
384 test_direction(skiatest::Reporter* reporter, const SkRRect &rr, SkScalar initX, int stepX, SkScalar initY, int stepY, int numSteps, const bool* contains) test_direction() argument
402 test_round_rect_contains_rect(skiatest::Reporter* reporter) test_round_rect_contains_rect() argument
517 assert_transform_failure(skiatest::Reporter* reporter, const SkRRect& orig, const SkMatrix& matrix) assert_transform_failure() argument
547 test_transform_helper(skiatest::Reporter* reporter, const SkRRect& orig) test_transform_helper() argument
908 test_round_rect_transform(skiatest::Reporter* reporter) test_round_rect_transform() argument
931 test_issue_2696(skiatest::Reporter* reporter) test_issue_2696() argument
956 test_read_rrect(skiatest::Reporter* reporter, const SkRRect& rrect, bool shouldEqualSrc) test_read_rrect() argument
970 test_read(skiatest::Reporter* reporter) test_read() argument
1018 test_inner_bounds(skiatest::Reporter* reporter) test_inner_bounds() argument
1114 verify_success(skiatest::Reporter* reporter, const SkRRect& a, const SkRRect& b, CornerChoice tl, CornerChoice tr, CornerChoice br, CornerChoice bl) verify_success() argument
1160 verify_failure(skiatest::Reporter* reporter, const SkRRect& a, const SkRRect& b) verify_failure() argument
1169 test_conservative_intersection(skiatest::Reporter* reporter) test_conservative_intersection() argument
[all...]
H A DRefCntTest.cpp23 static void test_refCnt(skiatest::Reporter* reporter) { in test_refCnt() argument
32 REPORTER_ASSERT(reporter, ref->unique()); in test_refCnt()
53 static void test_weakRefCnt(skiatest::Reporter* reporter) { in test_weakRefCnt() argument
66 REPORTER_ASSERT(reporter, ref->unique()); in test_weakRefCnt()
67 SkDEBUGCODE(REPORTER_ASSERT(reporter, ref->getWeakCnt() == 1)); in test_weakRefCnt()
71 DEF_TEST(RefCnt, reporter) { in DEF_TEST()
72 test_refCnt(reporter); in DEF_TEST()
73 test_weakRefCnt(reporter); in DEF_TEST()
83 #define check(reporter, ref, unref, make, kill) \
84 REPORTER_ASSERT(reporter, gRefCounte
[all...]
H A DDataRefTest.cpp25 static void test_is_equal(skiatest::Reporter* reporter, in test_is_equal() argument
27 REPORTER_ASSERT(reporter, a->count() == b->count()); in test_is_equal()
32 REPORTER_ASSERT(reporter, sizea == sizeb); in test_is_equal()
33 REPORTER_ASSERT(reporter, !memcmp(mema, memb, sizea)); in test_is_equal()
37 static void test_datatable_is_empty(skiatest::Reporter* reporter, SkDataTable* table) { in test_datatable_is_empty() argument
38 REPORTER_ASSERT(reporter, table->isEmpty()); in test_datatable_is_empty()
39 REPORTER_ASSERT(reporter, 0 == table->count()); in test_datatable_is_empty()
42 static void test_emptytable(skiatest::Reporter* reporter) { in test_emptytable() argument
48 test_datatable_is_empty(reporter, table0.get()); in test_emptytable()
49 test_datatable_is_empty(reporter, table in test_emptytable()
58 test_simpletable(skiatest::Reporter* reporter) test_simpletable() argument
71 test_vartable(skiatest::Reporter* reporter) test_vartable() argument
96 test_globaltable(skiatest::Reporter* reporter) test_globaltable() argument
129 assert_len(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, size_t len) assert_len() argument
133 assert_data(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, const void* data, size_t len) assert_data() argument
139 test_cstring(skiatest::Reporter* reporter) test_cstring() argument
153 test_files(skiatest::Reporter* reporter) test_files() argument
[all...]
H A DResourceCacheTest.cpp35 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheCache, reporter, ctxInfo) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
72 REPORTER_ASSERT(reporter, curCacheSize <= maxCacheSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
108 DEF_GPUTEST_FOR_CONTEXTS(ResourceCacheStencilBuffers, &is_rendering_and_not_angle_es3, reporter, in DEF_GPUTEST_FOR_CONTEXTS()
123 REPORTER_ASSERT(reporter, smallRT0); in DEF_GPUTEST_FOR_CONTEXTS()
128 REPORTER_ASSERT(reporter, smallRT1); in DEF_GPUTEST_FOR_CONTEXTS()
130 REPORTER_ASSERT(reporter, get_SB(smallRT0.get()) == get_SB(smallRT1.get())); in DEF_GPUTEST_FOR_CONTEXTS()
136 REPORTER_ASSERT(reporter, smallRT2); in DEF_GPUTEST_FOR_CONTEXTS()
138 REPORTER_ASSERT(reporter, get_SB(smallRT0.get()) == get_SB(smallRT2.get())); in DEF_GPUTEST_FOR_CONTEXTS()
144 REPORTER_ASSERT(reporter, bigRT); in DEF_GPUTEST_FOR_CONTEXTS()
146 REPORTER_ASSERT(reporter, get_S in DEF_GPUTEST_FOR_CONTEXTS()
350 test_no_key(skiatest::Reporter* reporter) test_no_key() argument
403 test_purge_unlocked(skiatest::Reporter* reporter) test_purge_unlocked() argument
466 test_purge_command_buffer_usage(skiatest::Reporter* reporter) test_purge_command_buffer_usage() argument
534 test_budgeting(skiatest::Reporter* reporter) test_budgeting() argument
660 test_unbudgeted(skiatest::Reporter* reporter) test_unbudgeted() argument
732 test_unbudgeted_to_scratch(skiatest::Reporter* reporter) test_unbudgeted_to_scratch() argument
798 test_duplicate_scratch_key(skiatest::Reporter* reporter) test_duplicate_scratch_key() argument
845 test_remove_scratch_key(skiatest::Reporter* reporter) test_remove_scratch_key() argument
903 test_scratch_key_consistency(skiatest::Reporter* reporter) test_scratch_key_consistency() argument
962 test_duplicate_unique_key(skiatest::Reporter* reporter) test_duplicate_unique_key() argument
1054 test_purge_invalidated(skiatest::Reporter* reporter) test_purge_invalidated() argument
1123 test_cache_chained_purge(skiatest::Reporter* reporter) test_cache_chained_purge() argument
1160 test_timestamp_wrap(skiatest::Reporter* reporter) test_timestamp_wrap() argument
1224 test_time_purge(skiatest::Reporter* reporter) test_time_purge() argument
1357 test_partial_purge(skiatest::Reporter* reporter) test_partial_purge() argument
1461 test_custom_data(skiatest::Reporter* reporter) test_custom_data() argument
1475 test_abandoned(skiatest::Reporter* reporter) test_abandoned() argument
1504 test_tags(skiatest::Reporter* reporter) test_tags() argument
1545 test_free_texture_messages(skiatest::Reporter* reporter) test_free_texture_messages() argument
[all...]
H A DTemplatesTest.cpp12 static void test_automalloc_realloc(skiatest::Reporter* reporter) { in test_automalloc_realloc() argument
17 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
23 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
27 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
31 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
43 REPORTER_ASSERT(reporter, array[i] == 10 - i); in test_automalloc_realloc()
47 REPORTER_ASSERT(reporter, array[i] == 10 - i); in test_automalloc_realloc()
51 REPORTER_ASSERT(reporter, array[0] = 10); in test_automalloc_realloc()
59 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
65 REPORTER_ASSERT(reporter, arra in test_automalloc_realloc()
78 test_container_apis(skiatest::Reporter* reporter) test_container_apis() argument
116 test_realloc_to_zero(skiatest::Reporter* reporter) test_realloc_to_zero() argument
[all...]
H A DBitSetTest.cpp13 DEF_TEST(BitSet, reporter) { in DEF_TEST()
15 REPORTER_ASSERT(reporter, set0.size() == 65536); in DEF_TEST()
16 REPORTER_ASSERT(reporter, set0.test(0) == false); in DEF_TEST()
17 REPORTER_ASSERT(reporter, set0.test(32767) == false); in DEF_TEST()
18 REPORTER_ASSERT(reporter, set0.test(65535) == false); in DEF_TEST()
19 REPORTER_ASSERT(reporter, !set0.findFirst()); in DEF_TEST()
22 REPORTER_ASSERT(reporter, set0.test(22) == true); in DEF_TEST()
23 REPORTER_ASSERT(reporter, set0.findFirst()); in DEF_TEST()
24 REPORTER_ASSERT(reporter, *set0.findFirst() == 22); in DEF_TEST()
26 REPORTER_ASSERT(reporter, set in DEF_TEST()
[all...]
H A DPathTest.cpp38 static void test_add_rrect(skiatest::Reporter* reporter, const SkRect& bounds, in test_add_rrect() argument
42 REPORTER_ASSERT(reporter, bounds == rrect.rect()); in test_add_rrect()
47 REPORTER_ASSERT(reporter, bounds == path.getBounds()); in test_add_rrect()
50 static void test_skbug_3469(skiatest::Reporter* reporter) { in test_skbug_3469() argument
55 REPORTER_ASSERT(reporter, !path.isConvex()); in test_skbug_3469()
58 static void test_skbug_3239(skiatest::Reporter* reporter) { in test_skbug_3239() argument
71 test_add_rrect(reporter, rectx, radii); in test_skbug_3239()
72 test_add_rrect(reporter, recty, radii); in test_skbug_3239()
231 static void make_path_crbugskia2820(SkPath* path, skiatest::Reporter* reporter) { in make_path_crbugskia2820() argument
244 static void test_path_crbugskia2820(skiatest::Reporter* reporter) { in test_path_crbugskia2820() argument
286 test_path_to_region(skiatest::Reporter* reporter) test_path_to_region() argument
312 test_path_close_issue1474(skiatest::Reporter* reporter) test_path_close_issue1474() argument
362 test_gen_id(skiatest::Reporter* reporter) test_gen_id() argument
540 test_tiny_path_convexity(skiatest::Reporter* reporter, const char* pathBug, SkScalar tx, SkScalar ty, SkScalar scale) test_tiny_path_convexity() argument
556 test_crbug_493450(skiatest::Reporter* reporter) test_crbug_493450() argument
575 test_crbug_495894(skiatest::Reporter* reporter) test_crbug_495894() argument
612 test_addrect(skiatest::Reporter* reporter) test_addrect() argument
640 test_addrect_isfinite(skiatest::Reporter* reporter) test_addrect_isfinite() argument
699 dump_if_ne(skiatest::Reporter* reporter, const SkRect& expected, const SkRect& bounds) dump_if_ne() argument
707 test_bounds_crbug_513799(skiatest::Reporter* reporter) test_bounds_crbug_513799() argument
737 test_fuzz_crbug_627414(skiatest::Reporter* reporter) test_fuzz_crbug_627414() argument
764 test_isfinite_after_transform(skiatest::Reporter* reporter) test_isfinite_after_transform() argument
834 test_arb_round_rect_is_convex(skiatest::Reporter* reporter) test_arb_round_rect_is_convex() argument
861 test_arb_zero_rad_round_rect_is_rect(skiatest::Reporter* reporter) test_arb_zero_rad_round_rect_is_rect() argument
886 test_rect_isfinite(skiatest::Reporter* reporter) test_rect_isfinite() argument
920 test_path_isfinite(skiatest::Reporter* reporter) test_path_isfinite() argument
944 test_isfinite(skiatest::Reporter* reporter) test_isfinite() argument
949 test_islastcontourclosed(skiatest::Reporter* reporter) test_islastcontourclosed() argument
973 test_poly(skiatest::Reporter* reporter, const SkPath& path, const SkPoint srcPts[], bool expectClose) test_poly() argument
1010 test_addPoly(skiatest::Reporter* reporter) test_addPoly() argument
1028 test_strokerec(skiatest::Reporter* reporter) test_strokerec() argument
1053 check_direction(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection expected) check_direction() argument
1067 test_direction(skiatest::Reporter* reporter) test_direction() argument
1162 test_bounds(skiatest::Reporter* reporter) test_bounds() argument
1215 check_close(skiatest::Reporter* reporter, const SkPath& path) check_close() argument
1244 test_close(skiatest::Reporter* reporter) test_close() argument
1311 check_convexity(skiatest::Reporter* reporter, const SkPath& path, bool expectedConvexity) check_convexity() argument
1319 test_path_crbug389050(skiatest::Reporter* reporter) test_path_crbug389050() argument
1346 test_convexity2(skiatest::Reporter* reporter) test_convexity2() argument
1499 test_convexity_doubleback(skiatest::Reporter* reporter) test_convexity_doubleback() argument
1522 check_convex_bounds(skiatest::Reporter* reporter, const SkPath& p, const SkRect& bounds) check_convex_bounds() argument
1556 test_convexity(skiatest::Reporter* reporter) test_convexity() argument
1737 test_isLine(skiatest::Reporter* reporter) test_isLine() argument
1787 test_conservativelyContains(skiatest::Reporter* reporter) test_conservativelyContains() argument
2017 test_isRect_open_close(skiatest::Reporter* reporter) test_isRect_open_close() argument
2030 test_isRect(skiatest::Reporter* reporter) test_isRect() argument
2214 check_simple_rect(skiatest::Reporter* reporter, const SkPath& path, bool isClosed, const SkRect& rect, SkPathDirection dir, unsigned start) check_simple_rect() argument
2227 test_is_closed_rect(skiatest::Reporter* reporter) test_is_closed_rect() argument
2356 test_isNestedFillRects(skiatest::Reporter* reporter) test_isNestedFillRects() argument
2580 write_and_read_back(skiatest::Reporter* reporter, const SkPath& p) write_and_read_back() argument
2621 test_flattening(skiatest::Reporter* reporter) test_flattening() argument
2671 test_transform(skiatest::Reporter* reporter) test_transform() argument
2792 test_zero_length_paths(skiatest::Reporter* reporter) test_zero_length_paths() argument
2870 test_segment_masks(skiatest::Reporter* reporter) test_segment_masks() argument
2895 test_iter(skiatest::Reporter* reporter) test_iter() argument
3040 test_range_iter(skiatest::Reporter* reporter) test_range_iter() argument
3291 check_for_circle(skiatest::Reporter* reporter, const SkPath& path, bool expectedCircle, SkPathFirstDirection expectedDir) check_for_circle() argument
3309 test_circle_skew(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_skew() argument
3327 test_circle_translate(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_translate() argument
3347 test_circle_rotate(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_rotate() argument
3367 test_circle_mirror_x(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_mirror_x() argument
3384 test_circle_mirror_y(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_mirror_y() argument
3403 test_circle_mirror_xy(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_mirror_xy() argument
3416 test_circle_with_direction(skiatest::Reporter* reporter, SkPathDirection inDir) test_circle_with_direction() argument
3458 test_circle_with_add_paths(skiatest::Reporter* reporter) test_circle_with_add_paths() argument
3494 test_circle(skiatest::Reporter* reporter) test_circle() argument
3524 test_oval(skiatest::Reporter* reporter) test_oval() argument
3587 test_empty(skiatest::Reporter* reporter, const SkPath& p) test_empty() argument
3601 test_rrect_is_convex(skiatest::Reporter* reporter, SkPath* path, SkPathDirection dir) test_rrect_is_convex() argument
3611 test_rrect_convexity_is_unknown(skiatest::Reporter* reporter, SkPath* path, SkPathDirection dir) test_rrect_convexity_is_unknown() argument
3621 test_rrect(skiatest::Reporter* reporter) test_rrect() argument
3687 test_arc(skiatest::Reporter* reporter) test_arc() argument
3743 check_oval_arc(skiatest::Reporter* reporter, SkScalar start, SkScalar sweep, const SkPath& path) check_oval_arc() argument
3757 test_arc_ovals(skiatest::Reporter* reporter) test_arc_ovals() argument
3782 check_move(skiatest::Reporter* reporter, SkPathPriv::RangeIter* iter, SkScalar x0, SkScalar y0) check_move() argument
3790 check_line(skiatest::Reporter* reporter, SkPathPriv::RangeIter* iter, SkScalar x1, SkScalar y1) check_line() argument
3798 check_quad(skiatest::Reporter* reporter, SkPathPriv::RangeIter* iter, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) check_quad() argument
3808 check_close(skiatest::Reporter* reporter, SkPathPriv::RangeIter* iter) check_close() argument
3813 check_done(skiatest::Reporter* reporter, SkPath* p, SkPathPriv::RangeIter* iter) check_done() argument
3817 check_done_and_reset(skiatest::Reporter* reporter, SkPath* p, SkPathPriv::RangeIter* iter) check_done_and_reset() argument
3823 check_path_is_move_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x0, SkScalar y0) check_path_is_move_and_reset() argument
3830 check_path_is_line_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1) check_path_is_line_and_reset() argument
3838 check_path_is_line(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1) check_path_is_line() argument
3846 check_path_is_line_pair_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) check_path_is_line_pair_and_reset() argument
3855 check_path_is_quad_and_reset(skiatest::Reporter* reporter, SkPath* p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) check_path_is_quad_and_reset() argument
3870 test_rMoveTo(skiatest::Reporter* reporter) test_rMoveTo() argument
3898 test_arcTo(skiatest::Reporter* reporter) test_arcTo() argument
3962 test_addPath(skiatest::Reporter* reporter) test_addPath() argument
3980 test_addPathMode(skiatest::Reporter* reporter, bool explicitMoveTo, bool extend) test_addPathMode() argument
4000 test_extendClosedPath(skiatest::Reporter* reporter) test_extendClosedPath() argument
4026 test_addEmptyPath(skiatest::Reporter* reporter, SkPath::AddPathMode mode) test_addEmptyPath() argument
4042 test_conicTo_special_case(skiatest::Reporter* reporter) test_conicTo_special_case() argument
4052 test_get_point(skiatest::Reporter* reporter) test_get_point() argument
4066 test_contains(skiatest::Reporter* reporter) test_contains() argument
4231 TestPathRef(skiatest::Reporter* reporter) TestPathRef() argument
4298 test_operatorEqual(skiatest::Reporter* reporter) test_operatorEqual() argument
4319 compare_dump(skiatest::Reporter* reporter, const SkPath& path, bool dumpAsHex, const char* str) compare_dump() argument
4332 test_dump(skiatest::Reporter* reporter) test_dump() argument
4397 TestPathTo(skiatest::Reporter* reporter) TestPathTo() argument
4415 TestPathrefListeners(skiatest::Reporter* reporter) TestPathrefListeners() argument
4472 test_crbug_629455(skiatest::Reporter* reporter) test_crbug_629455() argument
4483 test_fuzz_crbug_662952(skiatest::Reporter* reporter) test_fuzz_crbug_662952() argument
4522 test_fuzz_crbug_662730(skiatest::Reporter* reporter) test_fuzz_crbug_662730() argument
4755 test_interp(skiatest::Reporter* reporter) test_interp() argument
5548 survive(SkPath* path, const Xforms& x, bool isAxisAligned, skiatest::Reporter* reporter, ISA isa_proc) survive() argument
5671 assert_points(skiatest::Reporter* reporter, const SkPath& path, const std::initializer_list<SkPoint>& list) assert_points() argument
5695 test_addRect_and_trailing_lineTo(skiatest::Reporter* reporter) test_addRect_and_trailing_lineTo() argument
5757 test_addPath_and_injected_moveTo(skiatest::Reporter* reporter) test_addPath_and_injected_moveTo() argument
[all...]
H A DPDFPrimitivesTest.cpp55 static void assert_eql(skiatest::Reporter* reporter, in assert_eql() argument
60 REPORT_FAILURE(reporter, "", SkStringPrintf( in assert_eql()
65 static void assert_eq(skiatest::Reporter* reporter, in assert_eq() argument
68 assert_eql(reporter, skString, str, strlen(str)); in assert_eq()
73 static void assert_emit_eq(skiatest::Reporter* reporter, in assert_emit_eq() argument
77 assert_eq(reporter, result, string); in assert_emit_eq()
95 static void assert_emit_eq_number(skiatest::Reporter* reporter, float number) { in assert_emit_eq_number() argument
100 ERRORF(reporter, "%.9g != %s", number, result.c_str()); in assert_emit_eq_number()
105 static void TestPDFUnion(skiatest::Reporter* reporter) { in TestPDFUnion() argument
107 assert_emit_eq(reporter, boolTru in TestPDFUnion()
155 TestPDFArray(skiatest::Reporter* reporter) TestPDFArray() argument
194 TestPDFDict(skiatest::Reporter* reporter) TestPDFDict() argument
327 check_pdf_scalar_serialization( skiatest::Reporter* reporter, float inputFloat) check_pdf_scalar_serialization() argument
[all...]
H A DFrontBufferedStreamTest.cpp20 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read() argument
26 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read()
27 REPORTER_ASSERT(reporter, memcmp(storage.get(), expectations, bytesRead) == 0); in test_read()
30 static void test_rewind(skiatest::Reporter* reporter, in test_rewind() argument
33 REPORTER_ASSERT(reporter, success == shouldSucceed); in test_rewind()
40 static void test_hasLength(skiatest::Reporter* reporter, in test_hasLength() argument
44 REPORTER_ASSERT(reporter, bufferedStream.hasLength()); in test_hasLength()
46 REPORTER_ASSERT(reporter, !bufferedStream.hasLength()); in test_hasLength()
57 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { in test_incremental_buffering() argument
66 test_hasLength(reporter, *bufferedStrea in test_incremental_buffering()
90 test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) test_perfectly_sized_buffer() argument
110 test_skipping(skiatest::Reporter* reporter, size_t bufferSize) test_skipping() argument
161 test_read_beyond_buffer(skiatest::Reporter* reporter, size_t bufferSize) test_read_beyond_buffer() argument
210 test_length_combos(skiatest::Reporter* reporter, size_t bufferSize) test_length_combos() argument
223 test_initial_offset(skiatest::Reporter* reporter, size_t bufferSize) test_initial_offset() argument
254 test_buffers(skiatest::Reporter* reporter, size_t bufferSize) test_buffers() argument
[all...]
H A DSkTBlockListTest.cpp57 skiatest::Reporter* reporter) { in check_allocator_helper()
58 REPORTER_ASSERT(reporter, (0 == cnt) == allocator->empty()); in check_allocator_helper()
59 REPORTER_ASSERT(reporter, cnt == allocator->count()); in check_allocator_helper()
60 REPORTER_ASSERT(reporter, cnt == C::gInstCnt); in check_allocator_helper()
64 REPORTER_ASSERT(reporter, i == c.fID); in check_allocator_helper()
65 REPORTER_ASSERT(reporter, allocator->item(i).fID == i); in check_allocator_helper()
68 REPORTER_ASSERT(reporter, i == cnt); in check_allocator_helper()
71 REPORTER_ASSERT(reporter, cnt-1 == allocator->back().fID); in check_allocator_helper()
78 check_allocator_helper(allocator, cnt - popCnt, 0, reporter); in check_allocator_helper()
85 skiatest::Reporter* reporter) { in check_iterator_helper()
56 check_allocator_helper(SkTBlockList<C, N>* allocator, int cnt, int popCnt, skiatest::Reporter* reporter) check_allocator_helper() argument
83 check_iterator_helper(SkTBlockList<C, N>* allocator, const std::vector<C*>& expected, skiatest::Reporter* reporter) check_iterator_helper() argument
130 check_allocator(SkTBlockList<C, N>* allocator, int cnt, int popCnt, skiatest::Reporter* reporter) check_allocator() argument
172 run_allocator_test(SkTBlockList<C, N>* allocator, skiatest::Reporter* reporter) run_allocator_test() argument
183 run_concat_test(skiatest::Reporter* reporter, int aCount, int bCount) run_concat_test() argument
217 run_concat_trivial_test(skiatest::Reporter* reporter, int aCount, int bCount) run_concat_trivial_test() argument
248 run_reserve_test(skiatest::Reporter* reporter) run_reserve_test() argument
[all...]
H A DGeometryTest.cpp20 static void testChopCubic(skiatest::Reporter* reporter) { in testChopCubic() argument
37 REPORTER_ASSERT(reporter, count); in testChopCubic()
47 REPORTER_ASSERT(reporter, pts[i].fX == pts[i].fY); in testChopCubic()
48 REPORTER_ASSERT(reporter, pts[i].fX == i * .5f); in testChopCubic()
75 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(allChops[i].x(), expectedPt.x())); in testChopCubic()
76 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(allChops[i].y(), expectedPt.y())); in testChopCubic()
78 REPORTER_ASSERT(reporter, allChops[i] == pts[0]); in testChopCubic()
81 REPORTER_ASSERT(reporter, allChops[i] == pts[3]); in testChopCubic()
88 REPORTER_ASSERT(reporter, localChops[3] == localChops[4]); in testChopCubic()
89 REPORTER_ASSERT(reporter, localChop in testChopCubic()
119 check_pairs(skiatest::Reporter* reporter, int index, SkScalar t, const char name[], SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1) check_pairs() argument
129 test_evalquadat(skiatest::Reporter* reporter) test_evalquadat() argument
154 test_conic_eval_pos(skiatest::Reporter* reporter, const SkConic& conic, SkScalar t) test_conic_eval_pos() argument
161 test_conic_eval_tan(skiatest::Reporter* reporter, const SkConic& conic, SkScalar t) test_conic_eval_tan() argument
168 test_conic(skiatest::Reporter* reporter) test_conic() argument
190 test_quad_tangents(skiatest::Reporter* reporter) test_quad_tangents() argument
210 test_conic_tangents(skiatest::Reporter* reporter) test_conic_tangents() argument
245 test_conic_to_quads(skiatest::Reporter* reporter) test_conic_to_quads() argument
266 test_cubic_tangents(skiatest::Reporter* reporter) test_cubic_tangents() argument
287 check_cubic_type(skiatest::Reporter* reporter, const std::array<SkPoint, 4>& bezierPoints, SkCubicType expectedType, bool undefined = false) check_cubic_type() argument
297 check_cubic_around_rect(skiatest::Reporter* reporter, float x1, float y1, float x2, float y2, bool undefined = false) check_cubic_around_rect() argument
388 test_classify_cubic(skiatest::Reporter* reporter) test_classify_cubic() argument
436 test_cubic_cusps(skiatest::Reporter* reporter) test_cubic_cusps() argument
457 test_chop_quad_at_midtangent(skiatest::Reporter* reporter, const SkPoint pts[3]) test_chop_quad_at_midtangent() argument
472 test_chop_cubic_at_midtangent(skiatest::Reporter* reporter, const SkPoint pts[4], SkCubicType cubicType) test_chop_cubic_at_midtangent() argument
526 test_measure_rotation(skiatest::Reporter* reporter) test_measure_rotation() argument
576 test_chop_at_midtangent(skiatest::Reporter* reporter) test_chop_at_midtangent() argument
[all...]
H A DWriter32Test.cpp14 static void check_contents(skiatest::Reporter* reporter, const SkWriter32& writer, in check_contents() argument
17 REPORTER_ASSERT(reporter, writer.bytesWritten() == size); in check_contents()
19 REPORTER_ASSERT(reporter, !memcmp(storage.get(), expected, size)); in check_contents()
23 static void test_reserve(skiatest::Reporter* reporter) { in test_reserve() argument
31 static void test_string_null(skiatest::Reporter* reporter) { in test_string_null() argument
38 check_contents(reporter, writer, expected, sizeof(expected)); in test_string_null()
41 static void test_rewind(skiatest::Reporter* reporter) { in test_rewind() argument
45 REPORTER_ASSERT(reporter, 0 == swriter.bytesWritten()); in test_rewind()
49 check_contents(reporter, swriter, array, sizeof(array)); in test_rewind()
52 REPORTER_ASSERT(reporter, sizeo in test_rewind()
71 test1(skiatest::Reporter* reporter, SkWriter32* writer) test1() argument
85 testWritePad(skiatest::Reporter* reporter, SkWriter32* writer) testWritePad() argument
123 testOverwriteT(skiatest::Reporter* reporter, SkWriter32* writer) testOverwriteT() argument
[all...]
H A DVkProtectedContextTest.cpp27 skiatest::Reporter* reporter, in create_protected_sksurface()
54 ERRORF(reporter, "Could not create protected surface."); in create_protected_sksurface()
60 REPORTER_ASSERT(reporter, backendTex.isValid()); in create_protected_sksurface()
61 REPORTER_ASSERT(reporter, backendTex.isProtected()); in create_protected_sksurface()
65 REPORTER_ASSERT(reporter, backendRT.isValid()); in create_protected_sksurface()
66 REPORTER_ASSERT(reporter, backendRT.isProtected()); in create_protected_sksurface()
71 DEF_GPUTEST(VkProtectedContext_CreateNonprotectedContext, reporter, options) { in DEF_GPUTEST()
73 REPORTER_ASSERT(reporter, nonprotectedTestHelper->init()); in DEF_GPUTEST()
76 DEF_GPUTEST(VkProtectedContext_CreateProtectedContext, reporter, options) { in DEF_GPUTEST()
83 DEF_GPUTEST(VkProtectedContext_CreateProtectedSkSurface, reporter, option
26 create_protected_sksurface(GrDirectContext* dContext, skiatest::Reporter* reporter, bool textureable = true) create_protected_sksurface() argument
[all...]
H A DMathTest.cpp23 static void test_clz(skiatest::Reporter* reporter) { in test_clz() argument
24 REPORTER_ASSERT(reporter, 32 == SkCLZ(0)); in test_clz()
25 REPORTER_ASSERT(reporter, 31 == SkCLZ(1)); in test_clz()
26 REPORTER_ASSERT(reporter, 1 == SkCLZ(1 << 30)); in test_clz()
27 REPORTER_ASSERT(reporter, 1 == SkCLZ((1 << 30) | (1 << 24) | 1)); in test_clz()
28 REPORTER_ASSERT(reporter, 0 == SkCLZ(~0U)); in test_clz()
38 REPORTER_ASSERT(reporter, intri == porta, "mask:%d intri:%d porta:%d", mask, intri, porta); in test_clz()
42 static void test_ctz(skiatest::Reporter* reporter) { in test_ctz() argument
43 REPORTER_ASSERT(reporter, 32 == SkCTZ(0)); in test_ctz()
44 REPORTER_ASSERT(reporter, in test_ctz()
77 test_floor_value(skiatest::Reporter* reporter, float value) test_floor_value() argument
86 test_floor(skiatest::Reporter* reporter) test_floor() argument
167 check_length(skiatest::Reporter* reporter, const SkPoint& p, SkScalar targetLen) check_length() argument
178 unittest_isfinite(skiatest::Reporter* reporter) unittest_isfinite() argument
199 unittest_half(skiatest::Reporter* reporter) unittest_half() argument
255 test_rsqrt(skiatest::Reporter* reporter, RSqrtFn rsqrt) test_rsqrt() argument
331 test_muldiv255(skiatest::Reporter* reporter) test_muldiv255() argument
352 test_muldiv255ceiling(skiatest::Reporter* reporter) test_muldiv255ceiling() argument
365 test_copysign(skiatest::Reporter* reporter) test_copysign() argument
403 huge_vector_normalize(skiatest::Reporter* reporter) huge_vector_normalize() 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 DVkBackendSurfaceTest.cpp33 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkDRMModifierTest, reporter, ctxInfo) { in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
45 ERRORF(reporter, "Could not create backend texture."); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
50 REPORTER_ASSERT(reporter, mbet->texture().getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
59 REPORTER_ASSERT(reporter, drmFormat == drmBETex.getBackendFormat()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
60 REPORTER_ASSERT(reporter, drmBETex.textureType() == GrTextureType::kExternal); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
69 REPORTER_ASSERT(reporter, drmImage); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
71 REPORTER_ASSERT(reporter, in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
75 REPORTER_ASSERT(reporter, view); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
77 REPORTER_ASSERT(reporter, proxy); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
79 REPORTER_ASSERT(reporter, prox in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
[all...]
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...]
/third_party/skia/modules/skottie/tests/
H A DKeyframe.cpp46 DEF_TEST(Skottie_Keyframe, reporter) { in DEF_TEST()
49 REPORTER_ASSERT(reporter, !prop); in DEF_TEST()
53 REPORTER_ASSERT(reporter, !prop); in DEF_TEST()
65 REPORTER_ASSERT(reporter, prop); in DEF_TEST()
66 REPORTER_ASSERT(reporter, !prop.isStatic()); in DEF_TEST()
67 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop( -1), 1)); in DEF_TEST()
68 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop( 0), 1)); in DEF_TEST()
69 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop( 1), 1)); in DEF_TEST()
70 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop(1.5), 1.5f)); in DEF_TEST()
71 REPORTER_ASSERT(reporter, SkScalarNearlyEqua in DEF_TEST()
[all...]
/third_party/skia/modules/skparagraph/tests/
H A DSkParagraphTest.cpp204 UNIX_ONLY_TEST(SkParagraph_SimpleParagraph, reporter) { in UNIX_ONLY_TEST()
223 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST()
226 REPORTER_ASSERT(reporter, impl->runs().size() == 1); in UNIX_ONLY_TEST()
227 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count in UNIX_ONLY_TEST()
228 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style)); in UNIX_ONLY_TEST()
233 [&index, reporter] in UNIX_ONLY_TEST()
235 REPORTER_ASSERT(reporter, index == 0); in UNIX_ONLY_TEST()
236 REPORTER_ASSERT(reporter, style.getColor() == SK_ColorBLACK); in UNIX_ONLY_TEST()
242 UNIX_ONLY_TEST(SkParagraph_Rounding_Off_LineBreaks, reporter) { in UNIX_ONLY_TEST()
267 REPORTER_ASSERT(reporter, paragrap in UNIX_ONLY_TEST()
6989 performGetRectsForRangeConcurrently(skiatest::Reporter* reporter) performGetRectsForRangeConcurrently() argument
[all...]
/third_party/skia/experimental/skrive/tests/
H A DDomTypes.cpp12 void check_type(skiatest::Reporter* reporter, const sk_sp<U>& node, bool expected) { in check_type() argument
13 REPORTER_ASSERT(reporter, node->template is<T>() == expected); in check_type()
14 REPORTER_ASSERT(reporter, !!static_cast<const T*>(*node.get()) == expected); in check_type()
17 DEF_TEST(SkRive_DomTypes, reporter) { in DEF_TEST()
21 check_type<skrive::Component >(reporter, node, true); in DEF_TEST()
22 check_type<skrive::TransformableComponent>(reporter, node, true); in DEF_TEST()
23 check_type<skrive::Node >(reporter, node, true); in DEF_TEST()
24 check_type<skrive::Drawable >(reporter, node, false); in DEF_TEST()
25 check_type<skrive::Shape >(reporter, node, false); in DEF_TEST()
31 check_type<skrive::Component >(reporter, nod in DEF_TEST()
[all...]

Completed in 35 milliseconds

12345678910>>...15