HomeSort by relevance Sort by last modified time
    Searched refs:Reporter (Results 201 - 225 of 379) sorted by null

1 2 3 4 5 6 7 891011>>

  /external/skia/tests/
StrokeTest.cpp 21 static void test_strokerect(skiatest::Reporter* reporter) {
44 REPORTER_ASSERT(reporter, equal(outer, fillPath.getBounds()));
48 REPORTER_ASSERT(reporter, fillPath.isNestedRects(nested) == isMiter);
52 REPORTER_ASSERT(reporter, equal(nested[0], outer));
53 REPORTER_ASSERT(reporter, equal(nested[1], inner));
58 DEF_TEST(Stroke, reporter) {
59 test_strokerect(reporter);
TArrayTest.cpp 14 static void TestTSet_basic(skiatest::Reporter* reporter) {
18 REPORTER_ASSERT(reporter, a.empty());
19 REPORTER_ASSERT(reporter, a.count() == 0);
23 REPORTER_ASSERT(reporter, !a.empty());
24 REPORTER_ASSERT(reporter, a.count() == 1);
28 REPORTER_ASSERT(reporter, a.empty());
29 REPORTER_ASSERT(reporter, a.count() == 0);
33 REPORTER_ASSERT(reporter, a.push_back() = 1);
35 REPORTER_ASSERT(reporter, !a.empty())
    [all...]
UtilsTest.cpp 28 static void test_autounref(skiatest::Reporter* reporter) {
30 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
33 REPORTER_ASSERT(reporter, &obj == tmp.get());
34 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
36 REPORTER_ASSERT(reporter, &obj == tmp.detach());
37 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
38 REPORTER_ASSERT(reporter, NULL == tmp.detach());
39 REPORTER_ASSERT(reporter, NULL == tmp.get());
42 REPORTER_ASSERT(reporter, 2 == obj.getRefCnt())
    [all...]
PathOpsCubicIntersectionTest.cpp 16 static void standardTestCases(skiatest::Reporter* reporter) {
60 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
62 reporter->bumpTestCount();
310 static void oneOff(skiatest::Reporter* reporter, const SkDCubic& cubic1, const SkDCubic& cubic2,
345 REPORTER_ASSERT(reporter, !coin || intersections.used() == 2);
359 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(iPt));
360 REPORTER_ASSERT(reporter, xy2.approximatelyEqual(iPt));
361 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2))
    [all...]
CanvasStateTest.cpp 18 static void test_complex_layers(skiatest::Reporter* reporter) {
38 REPORTER_ASSERT(reporter, sizeof(layerAlpha) == sizeof(flags));
60 REPORTER_ASSERT(reporter, state);
62 REPORTER_ASSERT(reporter, tmpCanvas);
86 REPORTER_ASSERT(reporter, bitmaps[0].getSize() == bitmaps[1].getSize());
87 REPORTER_ASSERT(reporter, !memcmp(bitmaps[0].getPixels(),
96 static void test_complex_clips(skiatest::Reporter* reporter) {
128 REPORTER_ASSERT(reporter, sizeof(clipOps) == sizeof(flags))
    [all...]
DrawBitmapRectTest.cpp 40 static void test_faulty_pixelref(skiatest::Reporter* reporter) {
46 REPORTER_ASSERT(reporter, installSuccess);
95 static void test_treatAsSprite(skiatest::Reporter* reporter) {
107 REPORTER_ASSERT(reporter, treat_as_sprite(mat, size, 0));
116 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, 0));
117 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits));
125 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits));
127 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits))
    [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...]
PathOpsSkpTest.cpp 11 static void skpcheeseandburger_com225(skiatest::Reporter* reporter, const char* filename) {
369 testPathOp(reporter, path, pathB, kIntersect_PathOp, filename);
372 static void skpeverytechpro_blogspot_com100(skiatest::Reporter* reporter, const char* filename) {
403 testPathOp(reporter, path, pathB, kIntersect_PathOp, filename);
406 static void skpflite_com41(skiatest::Reporter* reporter, const char* filename) {
426 testPathOp(reporter, path, pathB, kIntersect_PathOp, filename);
429 static void skpilkoora_com37(skiatest::Reporter* reporter, const char* filename)
    [all...]
SurfaceTest.cpp 69 static void test_image(skiatest::Reporter* reporter) {
76 REPORTER_ASSERT(reporter, 1 == data->getRefCnt());
78 REPORTER_ASSERT(reporter, 2 == data->getRefCnt());
80 REPORTER_ASSERT(reporter, 1 == data->getRefCnt());
115 static void test_imagepeek(skiatest::Reporter* reporter) {
139 REPORTER_ASSERT(reporter, gRec[i].fPeekShouldSucceed == success);
141 REPORTER_ASSERT(reporter, 10 == info.fWidth);
142 REPORTER_ASSERT(reporter, 10 == info.fHeight)
    [all...]
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...]
SerializationTest.cpp 23 static void TestAlignment(T* testObj, skiatest::Reporter* reporter) {
27 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory);
29 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory);
134 static void TestObjectSerializationNoAlign(T* testObj, skiatest::Reporter* reporter) {
138 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten);
149 REPORTER_ASSERT(reporter, !buffer.isValid());
158 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid);
161 REPORTER_ASSERT(reporter, static_cast<size_t>(peekAfter - peekBefore) == bytesWritten)
    [all...]
DeferredCanvasTest.cpp 52 static void TestDeferredCanvasBitmapAccess(skiatest::Reporter* reporter) {
61 REPORTER_ASSERT(reporter, 0xFFFFFFFF == read_pixel(surface, 0, 0));
66 REPORTER_ASSERT(reporter, 0 == read_pixel(surface, 0, 0));
105 static void TestDeferredCanvasWritePixelsToSurface(skiatest::Reporter* reporter) {
117 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
118 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
122 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
123 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount)
    [all...]
  /external/chromium_org/third_party/skia/tests/
CachedDecodingPixelRefTest.cpp 53 static void compare_bitmaps(skiatest::Reporter* reporter,
56 REPORTER_ASSERT(reporter, b1.empty() == b2.empty());
57 REPORTER_ASSERT(reporter, b1.width() == b2.width());
58 REPORTER_ASSERT(reporter, b1.height() == b2.height());
59 REPORTER_ASSERT(reporter, b1.isNull() == b2.isNull());
62 REPORTER_ASSERT(reporter, b1.isNull() == b2.isNull());
66 REPORTER_ASSERT(reporter, b1.getPixels());
67 REPORTER_ASSERT(reporter, b2.getPixels());
87 REPORTER_ASSERT(reporter, 0 == pixelErrors)
    [all...]
PathOpsCubicIntersectionTest.cpp 16 static void standardTestCases(skiatest::Reporter* reporter) {
60 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
62 reporter->bumpTestCount();
310 static void oneOff(skiatest::Reporter* reporter, const SkDCubic& cubic1, const SkDCubic& cubic2,
345 REPORTER_ASSERT(reporter, !coin || intersections.used() == 2);
359 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(iPt));
360 REPORTER_ASSERT(reporter, xy2.approximatelyEqual(iPt));
361 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2))
    [all...]
SerializationTest.cpp 26 static void TestAlignment(T* testObj, skiatest::Reporter* reporter) {
30 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory);
32 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory);
137 static void TestObjectSerializationNoAlign(T* testObj, skiatest::Reporter* reporter) {
141 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten);
152 REPORTER_ASSERT(reporter, !buffer.isValid());
161 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid);
164 REPORTER_ASSERT(reporter, static_cast<size_t>(peekAfter - peekBefore) == bytesWritten)
    [all...]
DrawBitmapRectTest.cpp 37 static void test_faulty_pixelref(skiatest::Reporter* reporter) {
43 REPORTER_ASSERT(reporter, installSuccess);
92 static void test_treatAsSprite(skiatest::Reporter* reporter) {
104 REPORTER_ASSERT(reporter, treat_as_sprite(mat, size, 0));
113 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, 0));
114 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits));
122 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits));
124 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits))
    [all...]
PathTest.cpp 71 static void make_path_crbugskia2820(SkPath* path, skiatest::Reporter* reporter) {
84 static void test_path_crbugskia2820(skiatest::Reporter* reporter) {//GrContext* context) {
86 make_path_crbugskia2820(&path, reporter);
117 static void test_path_to_region(skiatest::Reporter* reporter) {
143 static void test_path_close_issue1474(skiatest::Reporter* reporter) {
156 REPORTER_ASSERT(reporter, 50 == last.fX)
    [all...]
SurfaceTest.cpp 74 static void test_image(skiatest::Reporter* reporter) {
80 REPORTER_ASSERT(reporter, 1 == data->getRefCnt());
82 REPORTER_ASSERT(reporter, 2 == data->getRefCnt());
84 REPORTER_ASSERT(reporter, 1 == data->getRefCnt());
120 static void test_imagepeek(skiatest::Reporter* reporter) {
144 REPORTER_ASSERT(reporter, gRec[i].fPeekShouldSucceed == success);
146 REPORTER_ASSERT(reporter, 10 == info.width());
147 REPORTER_ASSERT(reporter, 10 == info.height())
    [all...]
DeferredCanvasTest.cpp 88 static void TestDeferredCanvasWritePixelsToSurface(skiatest::Reporter* reporter) {
100 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
101 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
105 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
106 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
112 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
113 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
117 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
118 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount)
    [all...]
AAClipTest.cpp 132 static void test_rgn(skiatest::Reporter* reporter) {
137 REPORTER_ASSERT(reporter, equalsAAClip(rgn));
145 REPORTER_ASSERT(reporter, equalsAAClip(rgn));
153 REPORTER_ASSERT(reporter, equalsAAClip(rgn));
180 static void test_path_bounds(skiatest::Reporter* reporter) {
187 REPORTER_ASSERT(reporter, sheight == path.getBounds().height());
189 REPORTER_ASSERT(reporter, height == clip.getBounds().height());
201 REPORTER_ASSERT(reporter, sheight == path.getBounds().height())
    [all...]
DeviceLooperTest.cpp 40 static void test_simple(skiatest::Reporter* reporter) {
52 REPORTER_ASSERT(reporter, valid);
54 REPORTER_ASSERT(reporter, looper.getBitmap().width() == bitmap.width());
55 REPORTER_ASSERT(reporter, looper.getBitmap().height() == bitmap.height());
56 REPORTER_ASSERT(reporter, equal(looper.getRC(), rc));
58 REPORTER_ASSERT(reporter, !looper.next());
66 REPORTER_ASSERT(reporter, !looper.next());
95 static void test_complex(skiatest::Reporter* reporter) {
    [all...]
FontObjTest.cpp 25 static void test_cachedfont(skiatest::Reporter* reporter, const SkPaint& paint) {
30 REPORTER_ASSERT(reporter, font->getTypeface() == paint.getTypeface());
32 REPORTER_ASSERT(reporter, font->getSize() == paint.getTextSize());
33 REPORTER_ASSERT(reporter, font->getScaleX() == paint.getTextScaleX());
34 REPORTER_ASSERT(reporter, font->getSkewX() == paint.getTextSkewX());
36 REPORTER_ASSERT(reporter, font->isVertical() == paint.isVerticalText());
37 REPORTER_ASSERT(reporter, font->isEmbolden() == paint.isFakeBoldText());
39 REPORTER_ASSERT(reporter, font->isUseNonLinearMetrics() == is_use_nonlinear_metrics(paint));
40 REPORTER_ASSERT(reporter, font->isEnableAutoHints() == is_enable_auto_hints(paint))
    [all...]
PathCoverageTest.cpp 112 skiatest::Reporter* reporter) {
139 ERRORF(reporter, "Curve from %.2f %.2f through %.2f %.2f to "
152 static void TestQuadPointCount(skiatest::Reporter* reporter) {
153 one_d_pe(gXY, SK_ARRAY_COUNT(gXY), reporter);
154 one_d_pe(gSawtooth, SK_ARRAY_COUNT(gSawtooth), reporter);
155 one_d_pe(gOvalish, SK_ARRAY_COUNT(gOvalish), reporter);
156 one_d_pe(gSharpSawtooth, SK_ARRAY_COUNT(gSharpSawtooth), reporter);
157 one_d_pe(gRibbon, SK_ARRAY_COUNT(gRibbon), reporter);
    [all...]
PathOpsSimplifyFailTest.cpp 40 static void failOne(skiatest::Reporter* reporter, int index) {
63 REPORTER_ASSERT(reporter, !success);
64 REPORTER_ASSERT(reporter, result.isEmpty());
65 REPORTER_ASSERT(reporter, result.getFillType() == SkPath::kWinding_FillType);
66 reporter->bumpTestCount();
69 static void dontFailOne(skiatest::Reporter* reporter, int index) {
92 REPORTER_ASSERT(reporter, success || index == 13);
93 REPORTER_ASSERT(reporter, result.getFillType() != SkPath::kWinding_FillType)
    [all...]
  /external/skia/dm/
DM.cpp 99 DM::Reporter* reporter,
103 tasks->add(SkNEW_ARGS(DM::type, (name, reporter, tasks, gms[i], ## __VA_ARGS__))); \
126 DM::Reporter* reporter,
130 tasks->add(SkNEW_ARGS(DM::type, (name, reporter, tasks, benches[i], ## __VA_ARGS__))); \
152 DM::Reporter* reporter,
157 tasks->add(SkNEW_ARGS(DM::GpuTestTask, (reporter, tasks, tests[i])));
159 tasks->add(SkNEW_ARGS(DM::CpuTestTask, (reporter, tasks, tests[i])))
262 DM::Reporter reporter; local
    [all...]

Completed in 2412 milliseconds

1 2 3 4 5 6 7 891011>>