HomeSort by relevance Sort by last modified time
    Searched refs:reporter (Results 126 - 150 of 541) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/skia/tests/
PathTest.cpp 90 static void test_path_to_region(skiatest::Reporter* reporter) {
116 static void test_path_close_issue1474(skiatest::Reporter* reporter) {
129 REPORTER_ASSERT(reporter, 50 == last.fX);
130 REPORTER_ASSERT(reporter, 50 == last.fY);
140 REPORTER_ASSERT(reporter, 75 == last.fX);
141 REPORTER_ASSERT(reporter, 75 == last.fY);
151 REPORTER_ASSERT(reporter, 85 == last.fX);
152 REPORTER_ASSERT(reporter, 85 == last.fY)
    [all...]
GrRedBlackTreeTest.cpp 17 DEF_TEST(GrRedBlackTreeTest, reporter) {
27 REPORTER_ASSERT(reporter, *xi == x);
35 REPORTER_ASSERT(reporter, *tree.begin() == 0);
36 REPORTER_ASSERT(reporter, *tree.last() == 99);
37 REPORTER_ASSERT(reporter, --(++tree.begin()) == tree.begin());
38 REPORTER_ASSERT(reporter, --tree.end() == tree.last());
39 REPORTER_ASSERT(reporter, tree.count() == 10002);
48 REPORTER_ASSERT(reporter, b == tree.end() || *a <= *b);
50 REPORTER_ASSERT(reporter, c == tree.count());
58 REPORTER_ASSERT(reporter, c == count[i])
    [all...]
LayerDrawLooperTest.cpp 44 static void test_frontToBack(skiatest::Reporter* reporter) {
66 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
67 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrc_Mode));
69 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX());
70 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY());
74 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
75 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode));
77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX());
78 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY())
    [all...]
RoundRectTest.cpp 15 static void test_inset(skiatest::Reporter* reporter) {
21 REPORTER_ASSERT(reporter, rr2.isRect());
24 REPORTER_ASSERT(reporter, rr2.isRect());
27 REPORTER_ASSERT(reporter, rr2.isEmpty());
31 REPORTER_ASSERT(reporter, rr2.isSimple());
33 REPORTER_ASSERT(reporter, rr2.isRect());
37 static void test_round_rect_basic(skiatest::Reporter* reporter) {
44 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type())
    [all...]
InfRectTest.cpp 21 static void test_center(skiatest::Reporter* reporter) {
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,
53 REPORTER_ASSERT(reporter, !rect.isFinite());
58 DEF_TEST(InfRect, reporter) {
    [all...]
ClipCacheTest.cpp 44 static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) {
84 REPORTER_ASSERT(reporter, screen == devStackBounds);
85 REPORTER_ASSERT(reporter, isIntersectionOfRects);
97 REPORTER_ASSERT(reporter, intScreen == devGrClipDataBound);
98 REPORTER_ASSERT(reporter, isIntersectionOfRects);
103 static void check_state(skiatest::Reporter* reporter,
108 REPORTER_ASSERT(reporter, clip.getTopmostGenID() == cache.getLastClipGenID());
110 REPORTER_ASSERT(reporter, mask == cache.getLastMask())
    [all...]
MatrixTest.cpp 29 static bool are_equal(skiatest::Reporter* reporter,
45 REPORTER_ASSERT(reporter, aVal == bVal && aValI == aValI);
48 REPORTER_ASSERT(reporter, foundZeroSignDiff);
59 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI);
62 REPORTER_ASSERT(reporter, foundNaN);
74 static void test_matrix_recttorect(skiatest::Reporter* reporter) {
81 REPORTER_ASSERT(reporter, SkMatrix::kIdentity_Mask == matrix.getType());
82 REPORTER_ASSERT(reporter, matrix.rectStaysRect())
    [all...]
Matrix44Test.cpp 30 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[],
35 REPORTER_ASSERT(reporter, data[0] == m0);
36 REPORTER_ASSERT(reporter, data[1] == m1);
37 REPORTER_ASSERT(reporter, data[2] == m2);
38 REPORTER_ASSERT(reporter, data[3] == m3);
40 REPORTER_ASSERT(reporter, data[4] == m4);
41 REPORTER_ASSERT(reporter, data[5] == m5);
42 REPORTER_ASSERT(reporter, data[6] == m6);
43 REPORTER_ASSERT(reporter, data[7] == m7)
    [all...]
PathOpsDCubicTest.cpp 19 DEF_TEST(PathOpsDCubic, reporter) {
26 REPORTER_ASSERT(reporter, 0);
PathOpsTypesTest.cpp 16 DEF_TEST(PathOpsRoughly, reporter) {
19 REPORTER_ASSERT(reporter, equal);
QuickRejectTest.cpp 52 static void test_drawBitmap(skiatest::Reporter* reporter) {
65 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
69 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5));
73 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
77 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
85 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5));
88 DEF_TEST(QuickReject, reporter) {
89 test_drawBitmap(reporter);
PathOpsBoundsTest.cpp 49 DEF_TEST(PathOpsBounds, reporter) {
56 REPORTER_ASSERT(reporter, touches);
64 REPORTER_ASSERT(reporter, !touches);
71 REPORTER_ASSERT(reporter, bounds == expected);
76 REPORTER_ASSERT(reporter, bounds == expected);
81 REPORTER_ASSERT(reporter, bounds == expected);
86 REPORTER_ASSERT(reporter, empty);
92 REPORTER_ASSERT(reporter, !empty);
97 REPORTER_ASSERT(reporter, bounds == expected);
99 REPORTER_ASSERT(reporter, bounds == expected)
    [all...]
PathOpsLineIntersectionTest.cpp 77 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2,
83 REPORTER_ASSERT(reporter, ts.used() != 1);
88 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2));
89 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint()));
94 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) {
99 REPORTER_ASSERT(reporter, pts);
100 REPORTER_ASSERT(reporter, pts == i.used());
101 check_results(reporter, line1, line2, i)
    [all...]
  /external/chromium_org/third_party/skia/tests/
Matrix44Test.cpp 30 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[],
35 REPORTER_ASSERT(reporter, data[0] == m0);
36 REPORTER_ASSERT(reporter, data[1] == m1);
37 REPORTER_ASSERT(reporter, data[2] == m2);
38 REPORTER_ASSERT(reporter, data[3] == m3);
40 REPORTER_ASSERT(reporter, data[4] == m4);
41 REPORTER_ASSERT(reporter, data[5] == m5);
42 REPORTER_ASSERT(reporter, data[6] == m6);
43 REPORTER_ASSERT(reporter, data[7] == m7)
    [all...]
GrRedBlackTreeTest.cpp 17 DEF_TEST(GrRedBlackTree, reporter) {
27 REPORTER_ASSERT(reporter, *xi == x);
35 REPORTER_ASSERT(reporter, *tree.begin() == 0);
36 REPORTER_ASSERT(reporter, *tree.last() == 99);
37 REPORTER_ASSERT(reporter, --(++tree.begin()) == tree.begin());
38 REPORTER_ASSERT(reporter, --tree.end() == tree.last());
39 REPORTER_ASSERT(reporter, tree.count() == 10002);
48 REPORTER_ASSERT(reporter, b == tree.end() || *a <= *b);
50 REPORTER_ASSERT(reporter, c == tree.count());
58 REPORTER_ASSERT(reporter, c == count[i])
    [all...]
LayerDrawLooperTest.cpp 44 static void test_frontToBack(skiatest::Reporter* reporter) {
66 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
67 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrc_Mode));
69 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX());
70 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY());
74 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
75 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode));
77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX());
78 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY())
    [all...]
FontConfigParser.cpp 23 skiatest::Reporter* reporter) {
24 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5);
25 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif"));
26 REPORTER_ASSERT(reporter,
29 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont);
60 DEF_TEST(FontConfigParserAndroid, reporter) {
70 REPORTER_ASSERT(reporter, preV17FontFamilies.count() == 14);
71 REPORTER_ASSERT(reporter, CountFallbacks(preV17FontFamilies) == 10);
74 ValidateLoadedFonts(preV17FontFamilies, reporter);
    [all...]
InfRectTest.cpp 21 static void test_center(skiatest::Reporter* reporter) {
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,
53 REPORTER_ASSERT(reporter, !rect.isFinite());
58 DEF_TEST(InfRect, reporter) {
    [all...]
MallocPixelRefTest.cpp 23 DEF_TEST(MallocPixelRef, reporter) {
24 REPORTER_ASSERT(reporter, true);
30 REPORTER_ASSERT(reporter, NULL == pr.get());
39 REPORTER_ASSERT(reporter, NULL == pr.get());
48 REPORTER_ASSERT(reporter, NULL == pr.get());
56 REPORTER_ASSERT(reporter, pr.get() != NULL);
57 REPORTER_ASSERT(reporter, memory.get() == pr->pixels());
62 REPORTER_ASSERT(reporter, pr.get() != NULL);
63 REPORTER_ASSERT(reporter, pr->pixels());
70 REPORTER_ASSERT(reporter, pr.get() != NULL)
    [all...]
ImageIsOpaqueTest.cpp 17 static void check_isopaque(skiatest::Reporter* reporter, SkSurface* surface, bool expectedOpaque) {
19 REPORTER_ASSERT(reporter, image->isOpaque() == expectedOpaque);
22 DEF_TEST(ImageIsOpaqueTest, reporter) {
25 check_isopaque(reporter, surfaceTransparent, false);
29 check_isopaque(reporter, surfaceOpaque, true);
34 DEF_GPUTEST(ImageIsOpaqueTest_GPU, reporter, factory) {
50 check_isopaque(reporter, surfaceTransparent, false);
56 check_isopaque(reporter, surfaceOpaque, true);
PathOpsDCubicTest.cpp 19 DEF_TEST(PathOpsDCubic, reporter) {
26 REPORTER_ASSERT(reporter, 0);
PathOpsTypesTest.cpp 16 DEF_TEST(PathOpsRoughly, reporter) {
19 REPORTER_ASSERT(reporter, equal);
QuickRejectTest.cpp 52 static void test_drawBitmap(skiatest::Reporter* reporter) {
65 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
69 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5));
73 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
77 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
85 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5));
88 DEF_TEST(QuickReject, reporter) {
89 test_drawBitmap(reporter);
PathOpsBoundsTest.cpp 49 DEF_TEST(PathOpsBounds, reporter) {
56 REPORTER_ASSERT(reporter, touches);
64 REPORTER_ASSERT(reporter, !touches);
71 REPORTER_ASSERT(reporter, bounds == expected);
76 REPORTER_ASSERT(reporter, bounds == expected);
81 REPORTER_ASSERT(reporter, bounds == expected);
86 REPORTER_ASSERT(reporter, empty);
92 REPORTER_ASSERT(reporter, !empty);
97 REPORTER_ASSERT(reporter, bounds == expected);
99 REPORTER_ASSERT(reporter, bounds == expected)
    [all...]
PathOpsLineIntersectionTest.cpp 84 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2,
90 REPORTER_ASSERT(reporter, ts.used() != 1);
95 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2));
96 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint()));
101 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) {
106 REPORTER_ASSERT(reporter, pts);
107 REPORTER_ASSERT(reporter, pts == i.used());
108 check_results(reporter, line1, line2, i)
    [all...]

Completed in 556 milliseconds

1 2 3 4 56 7 8 91011>>