/external/chromium_org/third_party/skia/tests/ |
BlurTest.cpp | 101 static void test_blur_drawing(skiatest::Reporter* reporter) { 149 REPORTER_ASSERT(reporter, 328 static void test_sigma_range(skiatest::Reporter* reporter, GrContextFactory* factory) { 362 REPORTER_ASSERT(reporter, match(rectSpecialCaseResult, bruteForce1DResult, kSize, 5)); 363 REPORTER_ASSERT(reporter, match(generalCaseResult, bruteForce1DResult, kSize, 15)); 372 REPORTER_ASSERT(reporter, match(gpuResult, bruteForce1DResult, kSize, 10)); 376 REPORTER_ASSERT(reporter, match(groundTruthResult, bruteForce1DResult, kSize, 1)); 415 static void test_blurDrawLooper(skiatest::Reporter* reporter, SkScalar sigma [all...] |
PathOpsCubicLineIntersectionTest.cpp | 27 static void testFail(skiatest::Reporter* reporter, int iIndex) { 38 REPORTER_ASSERT(reporter, 0); 42 REPORTER_ASSERT(reporter, 0); 47 REPORTER_ASSERT(reporter, roots == 0); 119 static void testOne(skiatest::Reporter* reporter, int iIndex) { 130 REPORTER_ASSERT(reporter, 0); 134 REPORTER_ASSERT(reporter, 0); 148 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)) [all...] |
AnnotationTest.cpp | 27 DEF_TEST(Annotation_NoDraw, reporter) { 37 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); 39 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); 47 DEF_TEST(Annotation_PdfLink, reporter) { 69 REPORTER_ASSERT(reporter, 75 DEF_TEST(Annotation_NamedDestination, reporter) { 93 REPORTER_ASSERT(reporter,
|
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...] |
PathOpsOpTest.cpp | 12 static void cubicOp1d(skiatest::Reporter* reporter, const char* filename) { 22 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 25 static void cubicOp2d(skiatest::Reporter* reporter, const char* filename) { 35 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 38 static void cubicOp3d(skiatest::Reporter* reporter, const char* filename) { 48 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 51 static void cubicOp5d(skiatest::Reporter* reporter, const char* filename) [all...] |
PackBitsTest.cpp | 23 static void test_pack16(skiatest::Reporter* reporter) { 42 REPORTER_ASSERT(reporter, match); 53 REPORTER_ASSERT(reporter, maxSize >= dstSize); 56 REPORTER_ASSERT(reporter, size == srcCount); 58 REPORTER_ASSERT(reporter, match); 73 static void test_pack8(skiatest::Reporter* reporter) { 90 REPORTER_ASSERT(reporter, dstSize <= maxSize); 96 REPORTER_ASSERT(reporter, match) [all...] |
EmptyPathTest.cpp | 14 static void drawAndTest(skiatest::Reporter* reporter, const SkPath& path, 48 ERRORF(reporter, "%s style[%d] cap[%d] join[%d] antialias[%d]" 57 static void iter_paint(skiatest::Reporter* reporter, const SkPath& path, bool shouldDraw) { 84 drawAndTest(reporter, path, paint, shouldDraw); 86 drawAndTest(reporter, path, paint, shouldDraw); 113 static void test_emptydrawing(skiatest::Reporter* reporter) { 133 iter_paint(reporter, path, shouldDraw) [all...] |
DrawPathTest.cpp | 15 static void test_big_aa_rect(skiatest::Reporter* reporter) { 29 REPORTER_ASSERT(reporter, 0 == pixel[0]); 31 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 44 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]); 46 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 240 static void test_infinite_dash(skiatest::Reporter* reporter) { 255 REPORTER_ASSERT(reporter, true); 260 static void test_crbug_165432(skiatest::Reporter* reporter) [all...] |
DynamicHashTest.cpp | 36 #define ASSERT(x) REPORTER_ASSERT(reporter, x) 38 DEF_TEST(DynamicHash_growth, reporter) { 66 DEF_TEST(DynamicHash_add, reporter) { 78 DEF_TEST(DynamicHash_lookup, reporter) { 113 DEF_TEST(DynamicHash_remove, reporter) { 139 template<typename T> static void TestIter(skiatest::Reporter* reporter) { 187 DEF_TEST(DynamicHash_iterator, reporter) { 188 TestIter<Hash::Iter>(reporter); 189 TestIter<Hash::ConstIter>(reporter); [all...] |
Test.h | 23 class Reporter : public SkRefCnt { 25 SK_DECLARE_INST_COUNT(Reporter) 26 Reporter(); 54 Reporter* getReporter() const { return fReporter; } 55 void setReporter(Reporter*); 69 virtual void onRun(Reporter*) = 0; 72 Reporter* fReporter; 99 DEF_TEST(TestName, reporter) { 101 REPORTER_ASSERT(reporter, x == 15); 103 REPORTER_ASSERT_MESSAGE(reporter, x == 15, "x should be 15") [all...] |
/external/skia/tests/ |
BlurTest.cpp | 101 static void test_blur_drawing(skiatest::Reporter* reporter) { 149 REPORTER_ASSERT(reporter, 328 static void test_sigma_range(skiatest::Reporter* reporter, GrContextFactory* factory) { 362 REPORTER_ASSERT(reporter, match(rectSpecialCaseResult, bruteForce1DResult, kSize, 5)); 363 REPORTER_ASSERT(reporter, match(generalCaseResult, bruteForce1DResult, kSize, 15)); 372 REPORTER_ASSERT(reporter, match(gpuResult, bruteForce1DResult, kSize, 10)); 376 REPORTER_ASSERT(reporter, match(groundTruthResult, bruteForce1DResult, kSize, 1)); 415 static void test_blurDrawLooper(skiatest::Reporter* reporter, SkScalar sigma [all...] |
PathOpsCubicLineIntersectionTest.cpp | 27 static void testFail(skiatest::Reporter* reporter, int iIndex) { 38 REPORTER_ASSERT(reporter, 0); 42 REPORTER_ASSERT(reporter, 0); 47 REPORTER_ASSERT(reporter, roots == 0); 119 static void testOne(skiatest::Reporter* reporter, int iIndex) { 130 REPORTER_ASSERT(reporter, 0); 134 REPORTER_ASSERT(reporter, 0); 148 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)) [all...] |
ScaledImageCache.cpp | 32 DEF_TEST(ScaledImageCache_SingleAllocationByteLimit, reporter) { 44 REPORTER_ASSERT(reporter, size == test_scaled_image_cache_useage()); 50 REPORTER_ASSERT(reporter, size == test_scaled_image_cache_useage()); 56 REPORTER_ASSERT(reporter, 0 == test_scaled_image_cache_useage());
|
AnnotationTest.cpp | 27 DEF_TEST(Annotation_NoDraw, reporter) { 37 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); 39 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); 47 DEF_TEST(Annotation_PdfLink, reporter) { 69 REPORTER_ASSERT(reporter, 75 DEF_TEST(Annotation_NamedDestination, reporter) { 93 REPORTER_ASSERT(reporter,
|
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...] |
ARGBImageEncoderTest.cpp | 20 DEF_TEST(ARGBImageEncoder, reporter) { 40 REPORTER_ASSERT(reporter, success); 56 REPORTER_ASSERT(reporter, enc->encodeStream(&out, bitmap, SkImageEncoder::kDefaultQuality)); 59 REPORTER_ASSERT(reporter, bufferSize == sizeof(comparisonBuffer)); 60 REPORTER_ASSERT(reporter, memcmp(pixelBuffer, comparisonBuffer, bufferSize) == 0);
|
PackBitsTest.cpp | 23 static void test_pack16(skiatest::Reporter* reporter) { 42 REPORTER_ASSERT(reporter, match); 53 REPORTER_ASSERT(reporter, maxSize >= dstSize); 56 REPORTER_ASSERT(reporter, size == srcCount); 58 REPORTER_ASSERT(reporter, match); 73 static void test_pack8(skiatest::Reporter* reporter) { 90 REPORTER_ASSERT(reporter, dstSize <= maxSize); 96 REPORTER_ASSERT(reporter, match) [all...] |
PathOpsOpTest.cpp | 12 static void cubicOp1d(skiatest::Reporter* reporter, const char* filename) { 22 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 25 static void cubicOp2d(skiatest::Reporter* reporter, const char* filename) { 35 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 38 static void cubicOp3d(skiatest::Reporter* reporter, const char* filename) { 48 testPathOp(reporter, path, pathB, kDifference_PathOp, filename); 51 static void cubicOp5d(skiatest::Reporter* reporter, const char* filename) [all...] |
EmptyPathTest.cpp | 14 static void drawAndTest(skiatest::Reporter* reporter, const SkPath& path, 48 ERRORF(reporter, "%s style[%d] cap[%d] join[%d] antialias[%d]" 57 static void iter_paint(skiatest::Reporter* reporter, const SkPath& path, bool shouldDraw) { 84 drawAndTest(reporter, path, paint, shouldDraw); 86 drawAndTest(reporter, path, paint, shouldDraw); 113 static void test_emptydrawing(skiatest::Reporter* reporter) { 133 iter_paint(reporter, path, shouldDraw) [all...] |
DrawPathTest.cpp | 15 static void test_big_aa_rect(skiatest::Reporter* reporter) { 29 REPORTER_ASSERT(reporter, 0 == pixel[0]); 31 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 44 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]); 46 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 240 static void test_infinite_dash(skiatest::Reporter* reporter) { 255 REPORTER_ASSERT(reporter, true); 260 static void test_crbug_165432(skiatest::Reporter* reporter) [all...] |
Test.h | 23 class Reporter : public SkRefCnt { 25 SK_DECLARE_INST_COUNT(Reporter) 26 Reporter(); 55 Reporter* getReporter() const { return fReporter; } 56 void setReporter(Reporter*); 70 virtual void onRun(Reporter*) = 0; 73 Reporter* fReporter; 100 DEF_TEST(TestName, reporter) { 102 REPORTER_ASSERT(reporter, x == 15); 104 REPORTER_ASSERT_MESSAGE(reporter, x == 15, "x should be 15") [all...] |
/external/chromium_org/third_party/skia/dm/ |
DMTestTask.cpp | 19 CpuTestTask::CpuTestTask(Reporter* reporter, 22 : CpuTask(reporter, taskRunner) 26 GpuTestTask::GpuTestTask(Reporter* reporter, 29 : GpuTask(reporter, taskRunner)
|
DM.cpp | 75 DM::Reporter* reporter, 79 tasks->add(SkNEW_ARGS(DM::type, (name, reporter, tasks, gms[i], ## __VA_ARGS__))); \ 106 DM::Reporter* reporter, 111 tasks->add(SkNEW_ARGS(DM::GpuTestTask, (reporter, tasks, tests[i]))); 113 tasks->add(SkNEW_ARGS(DM::CpuTestTask, (reporter, tasks, tests[i]))); 133 DM::Reporter* reporter, 149 tasks->add(SkNEW_ARGS(DM::SKPTask, (reporter, tasks, pic, filename))) 221 DM::Reporter reporter; local [all...] |
/external/skia/dm/ |
DMTestTask.cpp | 25 CpuTestTask::CpuTestTask(Reporter* reporter, 28 : CpuTask(reporter, taskRunner) 32 GpuTestTask::GpuTestTask(Reporter* reporter, 35 : GpuTask(reporter, taskRunner)
|
DMBenchTask.cpp | 14 Reporter* reporter, 17 : CpuTask(reporter, tasks) 22 Reporter* reporter, 26 : CpuTask(reporter, tasks) 32 Reporter* reporter, 37 : GpuTask(reporter, tasks)
|