/external/chromium_org/third_party/skia/tests/ |
LayerRasterizerTest.cpp | 49 DEF_TEST(LayerRasterizer_destructor, reporter) { 53 REPORTER_ASSERT(reporter, DummyRasterizer::GetCount() == 1); 58 REPORTER_ASSERT(reporter, DummyRasterizer::GetCount() == 0); 82 DEF_TEST(LayerRasterizer_copy, reporter) { 84 REPORTER_ASSERT(reporter, NULL == builder.snapshotRasterizer()); 105 REPORTER_ASSERT(reporter, largerCount == LayerRasterizerTester::CountLayers(*detached.get())); 106 REPORTER_ASSERT(reporter, smallerCount == largerCount - 1); 119 REPORTER_ASSERT(reporter, layersFirstCopy.elemSize() == sizeof(SkLayerRasterizer_Rec)); 120 REPORTER_ASSERT(reporter, layersOneLarger.elemSize() == sizeof(SkLayerRasterizer_Rec)); 121 REPORTER_ASSERT(reporter, layersDetached.elemSize() == sizeof(SkLayerRasterizer_Rec)) [all...] |
PathUtilsTest.cpp | 79 static bool test_bmp(skiatest::Reporter* reporter, 84 REPORTER_ASSERT( reporter, *bmp1->getAddr32(x,y) == *bmp2->getAddr32(x,y) ); 90 static void test_path_eq(skiatest::Reporter* reporter, const SkPath* path, 106 test_bmp(reporter, truth, &bmp, w, h); 109 static void test_path(skiatest::Reporter* reporter, const SkBitmap* truth, 116 test_path_eq(reporter, &path, truth, w, h); 119 static void test_region(skiatest::Reporter* reporter, const SkBitmap* truth [all...] |
BBoxHierarchyTest.cpp | 75 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, DataRect rects[], 81 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); 86 skiatest::Reporter* reporter) { 89 REPORTER_ASSERT(reporter, NULL != tree); 120 run_queries(reporter, rand, rects, *tree); 121 REPORTER_ASSERT(reporter, NUM_RECTS == tree->getCount()); 122 REPORTER_ASSERT(reporter, 126 REPORTER_ASSERT(reporter, 0 == tree->getCount()) [all...] |
FontHostTest.cpp | 35 static void test_unitsPerEm(skiatest::Reporter* reporter, SkTypeface* face) { 48 REPORTER_ASSERT(reporter, tableUPEM == nativeUPEM); 54 static void test_countGlyphs(skiatest::Reporter* reporter, SkTypeface* face) { 67 REPORTER_ASSERT(reporter, tableGlyphs == nativeGlyphs); 89 static void test_charsToGlyphs(skiatest::Reporter* reporter, SkTypeface* face) { 109 REPORTER_ASSERT_MESSAGE(reporter, paintGlyphIds[i] == faceGlyphIds[i], a.c_str()); 114 static void test_fontstream(skiatest::Reporter* reporter [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...] |
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...] |
PathOpsDLineTest.cpp | 31 DEF_TEST(PathOpsLineUtilities, reporter) { 38 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); 44 REPORTER_ASSERT(reporter, 0); 47 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); 49 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); 51 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX)); 52 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
|
PathOpsQuadReduceOrderTest.cpp | 20 static void oneOffTest(skiatest::Reporter* reporter) { 29 static void standardTestCases(skiatest::Reporter* reporter) { 65 DEF_TEST(PathOpsReduceOrderQuad, reporter) { 66 oneOffTest(reporter); 67 standardTestCases(reporter);
|
RTreeTest.cpp | 70 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, DataRect rects[], 76 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); 80 static void rtree_test_main(SkRTree* rtree, skiatest::Reporter* reporter) { 83 REPORTER_ASSERT(reporter, NULL != rtree); 110 run_queries(reporter, rand, rects, *rtree); 111 REPORTER_ASSERT(reporter, NUM_RECTS == rtree->getCount()); 112 REPORTER_ASSERT(reporter, expectedDepthMin <= rtree->getDepth() && 115 REPORTER_ASSERT(reporter, 0 == rtree->getCount()) [all...] |
ImageCacheTest.cpp | 19 static void test_cache(skiatest::Reporter* reporter, SkScaledImageCache& cache, 34 REPORTER_ASSERT(reporter, NULL == id); 38 REPORTER_ASSERT(reporter, NULL != id); 43 REPORTER_ASSERT(reporter, id == id2); 44 REPORTER_ASSERT(reporter, tmp.pixelRef() == tmp2.pixelRef()); 45 REPORTER_ASSERT(reporter, tmp.width() == tmp2.width()); 46 REPORTER_ASSERT(reporter, tmp.height() == tmp2.height()); 63 REPORTER_ASSERT(reporter, NULL != id); 88 DEF_TEST(ImageCache, reporter) { [all...] |
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);
|
Test.cpp | 27 Reporter::Reporter() : fTestCount(0) { 30 void Reporter::startTest(Test* test) { 34 void Reporter::reportFailed(const SkString& desc) { 38 void Reporter::endTest(Test* test) { 50 void Test::setReporter(Reporter* r) { 61 class LocalReporter : public Reporter { 63 explicit LocalReporter(Reporter* reporterToMimic) : fReporter(reporterToMimic) {} 91 Reporter* fReporter; // Unowned.
|
/external/skia/tests/ |
LayerRasterizerTest.cpp | 49 DEF_TEST(LayerRasterizer_destructor, reporter) { 53 REPORTER_ASSERT(reporter, DummyRasterizer::GetCount() == 1); 58 REPORTER_ASSERT(reporter, DummyRasterizer::GetCount() == 0); 82 DEF_TEST(LayerRasterizer_copy, reporter) { 84 REPORTER_ASSERT(reporter, NULL == builder.snapshotRasterizer()); 105 REPORTER_ASSERT(reporter, largerCount == LayerRasterizerTester::CountLayers(*detached.get())); 106 REPORTER_ASSERT(reporter, smallerCount == largerCount - 1); 119 REPORTER_ASSERT(reporter, layersFirstCopy.elemSize() == sizeof(SkLayerRasterizer_Rec)); 120 REPORTER_ASSERT(reporter, layersOneLarger.elemSize() == sizeof(SkLayerRasterizer_Rec)); 121 REPORTER_ASSERT(reporter, layersDetached.elemSize() == sizeof(SkLayerRasterizer_Rec)) [all...] |
PathUtilsTest.cpp | 79 static bool test_bmp(skiatest::Reporter* reporter, 84 REPORTER_ASSERT( reporter, *bmp1->getAddr32(x,y) == *bmp2->getAddr32(x,y) ); 90 static void test_path_eq(skiatest::Reporter* reporter, const SkPath* path, 106 test_bmp(reporter, truth, &bmp, w, h); 109 static void test_path(skiatest::Reporter* reporter, const SkBitmap* truth, 116 test_path_eq(reporter, &path, truth, w, h); 119 static void test_region(skiatest::Reporter* reporter, const SkBitmap* truth [all...] |
BBoxHierarchyTest.cpp | 75 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, DataRect rects[], 81 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); 86 skiatest::Reporter* reporter) { 89 REPORTER_ASSERT(reporter, NULL != tree); 120 run_queries(reporter, rand, rects, *tree); 121 REPORTER_ASSERT(reporter, NUM_RECTS == tree->getCount()); 122 REPORTER_ASSERT(reporter, 126 REPORTER_ASSERT(reporter, 0 == tree->getCount()) [all...] |
FontHostTest.cpp | 35 static void test_unitsPerEm(skiatest::Reporter* reporter, SkTypeface* face) { 48 REPORTER_ASSERT(reporter, tableUPEM == nativeUPEM); 54 static void test_countGlyphs(skiatest::Reporter* reporter, SkTypeface* face) { 67 REPORTER_ASSERT(reporter, tableGlyphs == nativeGlyphs); 89 static void test_charsToGlyphs(skiatest::Reporter* reporter, SkTypeface* face) { 109 REPORTER_ASSERT_MESSAGE(reporter, paintGlyphIds[i] == faceGlyphIds[i], a.c_str()); 114 static void test_fontstream(skiatest::Reporter* reporter [all...] |
BitmapCopyTest.cpp | 21 static void report_opaqueness(skiatest::Reporter* reporter, const SkBitmap& src, 23 ERRORF(reporter, "src %s opaque:%d, dst %s opaque:%d", 33 static void test_isOpaque(skiatest::Reporter* reporter, 39 REPORTER_ASSERT(reporter, srcPremul.copyTo(&dst, dstColorType)); 40 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType); 42 report_opaqueness(reporter, srcPremul, dst); 46 REPORTER_ASSERT(reporter, srcOpaque.copyTo(&dst, dstColorType)); 47 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType) [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...] |
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...] |
PathOpsDLineTest.cpp | 31 DEF_TEST(PathOpsLineUtilities, reporter) { 38 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); 44 REPORTER_ASSERT(reporter, 0); 47 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); 49 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); 51 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX)); 52 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
|
PathOpsQuadReduceOrderTest.cpp | 20 static void oneOffTest(skiatest::Reporter* reporter) { 29 static void standardTestCases(skiatest::Reporter* reporter) { 65 DEF_TEST(PathOpsReduceOrderQuad, reporter) { 66 oneOffTest(reporter); 67 standardTestCases(reporter);
|
RTreeTest.cpp | 70 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, DataRect rects[], 76 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); 80 static void rtree_test_main(SkRTree* rtree, skiatest::Reporter* reporter) { 83 REPORTER_ASSERT(reporter, NULL != rtree); 110 run_queries(reporter, rand, rects, *rtree); 111 REPORTER_ASSERT(reporter, NUM_RECTS == rtree->getCount()); 112 REPORTER_ASSERT(reporter, expectedDepthMin <= rtree->getDepth() && 115 REPORTER_ASSERT(reporter, 0 == rtree->getCount()) [all...] |
ImageCacheTest.cpp | 19 static void test_cache(skiatest::Reporter* reporter, SkScaledImageCache& cache, 34 REPORTER_ASSERT(reporter, NULL == id); 38 REPORTER_ASSERT(reporter, NULL != id); 43 REPORTER_ASSERT(reporter, id == id2); 44 REPORTER_ASSERT(reporter, tmp.pixelRef() == tmp2.pixelRef()); 45 REPORTER_ASSERT(reporter, tmp.width() == tmp2.width()); 46 REPORTER_ASSERT(reporter, tmp.height() == tmp2.height()); 63 REPORTER_ASSERT(reporter, NULL != id); 88 DEF_TEST(ImageCache, reporter) { [all...] |
/external/chromium_org/third_party/skia/dm/ |
DMTask.cpp | 12 Task::Task(Reporter* reporter, TaskRunner* taskRunner) 13 : fReporter(reporter) 50 CpuTask::CpuTask(Reporter* reporter, TaskRunner* taskRunner) : Task(reporter, taskRunner) {} 69 GpuTask::GpuTask(Reporter* reporter, TaskRunner* taskRunner) : Task(reporter, taskRunner) {}
|
/external/skia/dm/ |
DMTask.cpp | 12 Task::Task(Reporter* reporter, TaskRunner* taskRunner) 13 : fReporter(reporter) 50 CpuTask::CpuTask(Reporter* reporter, TaskRunner* taskRunner) : Task(reporter, taskRunner) {} 69 GpuTask::GpuTask(Reporter* reporter, TaskRunner* taskRunner) : Task(reporter, taskRunner) {}
|