/external/skia/tests/ |
D | Test.h | 19 namespace skiatest { 37 virtual void reportFailed(const skiatest::Failure&) = 0; 43 reporter->reportFailed(skiatest::Failure(__FILE__, __LINE__, cond, message)) 45 typedef void (*TestProc)(skiatest::Reporter*, GrContextFactory*); 117 static void test_##name(skiatest::Reporter*, GrContextFactory*); \ 118 skiatest::TestRegistry name##TestRegistry( \ 119 skiatest::Test(#name, false, test_##name)); \ 120 void test_##name(skiatest::Reporter* reporter, GrContextFactory*) 133 static void test_##name(skiatest::Reporter*, GrContextFactory*); \ 134 skiatest::TestRegistry name##TestRegistry( \ [all …]
|
D | PathOpsSimplifyTest.cpp | 11 static void testLine1(skiatest::Reporter* reporter, const char* filename) { in testLine1() 20 static void testLine1x(skiatest::Reporter* reporter, const char* filename) { in testLine1x() 58 static void testLine2(skiatest::Reporter* reporter, const char* filename) { in testLine2() 65 static void testLine2x(skiatest::Reporter* reporter, const char* filename) { in testLine2x() 73 static void testLine3(skiatest::Reporter* reporter, const char* filename) { in testLine3() 80 static void testLine3x(skiatest::Reporter* reporter, const char* filename) { in testLine3x() 88 static void testLine3a(skiatest::Reporter* reporter, const char* filename) { in testLine3a() 95 static void testLine3ax(skiatest::Reporter* reporter, const char* filename) { in testLine3ax() 103 static void testLine3b(skiatest::Reporter* reporter, const char* filename) { in testLine3b() 110 static void testLine3bx(skiatest::Reporter* reporter, const char* filename) { in testLine3bx() [all …]
|
D | PathOpsExtendedTest.h | 23 void (*fun)(skiatest::Reporter*, const char* filename); 28 extern int comparePaths(skiatest::Reporter* reporter, const char* filename, 31 inline int comparePaths(skiatest::Reporter* reporter, const char* filename, in comparePaths() 39 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 41 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 43 extern bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 45 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 49 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename); 50 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, 53 void initializeTests(skiatest::Reporter* reporter, const char* testName); [all …]
|
D | PathOpsOpTest.cpp | 32 static void cubicOp1d(skiatest::Reporter* reporter, const char* filename) { in cubicOp1d() 45 static void cubicOp2d(skiatest::Reporter* reporter, const char* filename) { in cubicOp2d() 58 static void cubicOp3d(skiatest::Reporter* reporter, const char* filename) { in cubicOp3d() 71 static void cubicOp5d(skiatest::Reporter* reporter, const char* filename) { in cubicOp5d() 84 static void cubicOp6d(skiatest::Reporter* reporter, const char* filename) { in cubicOp6d() 97 static void cubicOp7d(skiatest::Reporter* reporter, const char* filename) { in cubicOp7d() 110 static void cubicOp8d(skiatest::Reporter* reporter, const char* filename) { in cubicOp8d() 123 static void cubicOp9d(skiatest::Reporter* reporter, const char* filename) { in cubicOp9d() 136 static void quadOp9d(skiatest::Reporter* reporter, const char* filename) { in quadOp9d() 151 static void lineOp9d(skiatest::Reporter* reporter, const char* filename) { in lineOp9d() [all …]
|
D | RRectInPathTest.cpp | 15 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path) { in path_contains_rrect() 28 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in) { in inner_path_contains_rrect() 42 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in) { in path_contains_rrect_check() 50 static void path_contains_rrect_nocheck(skiatest::Reporter* reporter, const SkRRect& in) { in path_contains_rrect_nocheck() 57 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRect& r, in path_contains_rrect_check() 71 static void force_path_contains_rrect(skiatest::Reporter* reporter, SkPath& path) { in force_path_contains_rrect() 76 static void test_undetected_paths(skiatest::Reporter* reporter) { in test_undetected_paths() 133 static void test_tricky_radii(skiatest::Reporter* reporter) { in test_tricky_radii() 156 static void test_empty_crbug_458524(skiatest::Reporter* reporter) { in test_empty_crbug_458524() 170 static void test_inset(skiatest::Reporter* reporter) { in test_inset() [all …]
|
D | Test.cpp | 17 void skiatest::Reporter::bumpTestCount() {} in bumpTestCount() 19 bool skiatest::Reporter::allowExtendedTest() const { return false; } in allowExtendedTest() 21 bool skiatest::Reporter::verbose() const { return false; } in verbose() 23 SkString skiatest::Failure::toString() const { in toString() 35 SkString skiatest::GetTmpDir() { in GetTmpDir()
|
D | GradientTest.cpp | 19 static void test_big_grad(skiatest::Reporter* reporter) { in test_big_grad() 48 void gradCheck(skiatest::Reporter* reporter, SkShader* shader, in gradCheck() 69 static void none_gradproc(skiatest::Reporter* reporter, const GradRec&) { in none_gradproc() 74 static void color_gradproc(skiatest::Reporter* reporter, const GradRec& rec) { in color_gradproc() 85 static void linear_gradproc(skiatest::Reporter* reporter, const GradRec& rec) { in linear_gradproc() 97 static void radial_gradproc(skiatest::Reporter* reporter, const GradRec& rec) { in radial_gradproc() 111 static void sweep_gradproc(skiatest::Reporter* reporter, const GradRec& rec) { in sweep_gradproc() 123 static void conical_gradproc(skiatest::Reporter* reporter, const GradRec& rec) { in conical_gradproc() 140 static void TestConstantGradient(skiatest::Reporter*) { in TestConstantGradient() 167 typedef void (*GradProc)(skiatest::Reporter* reporter, const GradRec&); [all …]
|
D | DataRefTest.cpp | 16 static void test_is_equal(skiatest::Reporter* reporter, in test_is_equal() 28 static void test_datatable_is_empty(skiatest::Reporter* reporter, in test_datatable_is_empty() 34 static void test_emptytable(skiatest::Reporter* reporter) { in test_emptytable() 51 static void test_simpletable(skiatest::Reporter* reporter) { in test_simpletable() 66 static void test_vartable(skiatest::Reporter* reporter) { in test_vartable() 92 static void test_tablebuilder(skiatest::Reporter* reporter) { in test_tablebuilder() 118 static void test_globaltable(skiatest::Reporter* reporter) { in test_globaltable() 152 static void assert_len(skiatest::Reporter* reporter, SkData* ref, size_t len) { in assert_len() 156 static void assert_data(skiatest::Reporter* reporter, SkData* ref, in assert_data() 162 static void test_cstring(skiatest::Reporter* reporter) { in test_cstring() [all …]
|
D | FrontBufferedStreamTest.cpp | 16 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read() 26 static void test_rewind(skiatest::Reporter* reporter, in test_rewind() 36 static void test_hasLength(skiatest::Reporter* reporter, in test_hasLength() 53 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { in test_incremental_buffering() 84 static void test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_perfectly_sized_buffer() 103 static void test_skipping(skiatest::Reporter* reporter, size_t bufferSize) { in test_skipping() 153 static void test_read_beyond_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_read_beyond_buffer() 201 static void test_length_combos(skiatest::Reporter* reporter, size_t bufferSize) { in test_length_combos() 213 static void test_initial_offset(skiatest::Reporter* reporter, size_t bufferSize) { in test_initial_offset() 243 static void test_buffers(skiatest::Reporter* reporter, size_t bufferSize) { in test_buffers()
|
D | CanvasTest.cpp | 203 static void test_clipVisitor(skiatest::Reporter* reporter, SkCanvas* canvas) { in test_clipVisitor() 216 static void test_clipstack(skiatest::Reporter* reporter) { in test_clipstack() 262 virtual void draw(SkCanvas*, const TestData&, skiatest::Reporter*) = 0; 289 skiatest::Reporter* reporter) { \ 301 skiatest::Reporter* reporter) { \ 310 skiatest::Reporter*, CanvasTestStep*) { \ 317 skiatest::Reporter*, CanvasTestStep* testStep) { \ 343 skiatest::Reporter* reporter, CanvasTestStep* testStep) { in SaveMatrixClipStep() 358 skiatest::Reporter* reporter, CanvasTestStep* testStep) { in SaveLayerStep() 368 skiatest::Reporter* reporter, CanvasTestStep* testStep) { in BoundedSaveLayerStep() [all …]
|
D | MathTest.cpp | 18 static void test_clz(skiatest::Reporter* reporter) { in test_clz() 52 static void test_floor_value(skiatest::Reporter* reporter, float value) { in test_floor_value() 61 static void test_floor(skiatest::Reporter* reporter) { in test_floor() 75 static void test_muldivround(skiatest::Reporter* reporter) { in test_muldivround() 168 static void test_blend(skiatest::Reporter* reporter) { in test_blend() 189 static void check_length(skiatest::Reporter* reporter, in check_length() 223 static void assert_float_equal(skiatest::Reporter* reporter, const char op[], in assert_float_equal() 231 static void test_float_cast(skiatest::Reporter* reporter, float x) { in test_float_cast() 237 static void test_float_floor(skiatest::Reporter* reporter, float x) { in test_float_floor() 243 static void test_float_round(skiatest::Reporter* reporter, float x) { in test_float_round() [all …]
|
D | PointTest.cpp | 14 static void test_casts(skiatest::Reporter* reporter) { in test_casts() 26 static void test_Normalize(skiatest::Reporter* reporter, in test_Normalize() 39 static void test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y, in test_length() 60 template <typename T> T get_value(skiatest::Reporter* reporter, T value) { in get_value() 71 static float force_as_float(skiatest::Reporter* reporter, float value) { in force_as_float() 86 static void test_overflow(skiatest::Reporter* reporter) { in test_overflow() 109 static void test_underflow(skiatest::Reporter* reporter) { in test_underflow()
|
D | PDFDocumentTest.cpp | 16 static void test_empty(skiatest::Reporter* reporter) { in test_empty() 26 static void test_abort(skiatest::Reporter* reporter) { in test_abort() 39 static void test_abortWithFile(skiatest::Reporter* reporter) { in test_abortWithFile() 40 SkString tmpDir = skiatest::GetTmpDir(); in test_abortWithFile() 68 static void test_file(skiatest::Reporter* reporter) { in test_file() 69 SkString tmpDir = skiatest::GetTmpDir(); in test_file() 94 static void test_close(skiatest::Reporter* reporter) { in test_close()
|
D | GrTRecorderTest.cpp | 30 static void test_empty_back_and_pop(skiatest::Reporter* reporter) { in test_empty_back_and_pop() 88 static void test_extra_data(skiatest::Reporter* reporter) { in test_extra_data() 141 virtual void validate(skiatest::Reporter* reporter) const { in validate() 155 virtual void validate(skiatest::Reporter* reporter) const { in validate() 170 virtual void validate(skiatest::Reporter* reporter) const { in validate() 192 virtual void validate(skiatest::Reporter* reporter) const { in validate() 221 static void test_subclasses_iters(skiatest::Reporter*, Order&, Base::Recorder::Iter&, 223 static void test_subclasses(skiatest::Reporter* reporter) { in test_subclasses() 266 static void test_subclasses_iters(skiatest::Reporter* reporter, Order& order, in test_subclasses_iters()
|
D | MemsetTest.cpp | 12 static void check_alloc(skiatest::Reporter* reporter, const SkChunkAlloc& alloc, in check_alloc() 19 static void* simple_alloc(skiatest::Reporter* reporter, SkChunkAlloc* alloc, size_t size) { in simple_alloc() 26 static void test_chunkalloc(skiatest::Reporter* reporter) { in test_chunkalloc() 98 static void compare16(skiatest::Reporter* r, const uint16_t base[], in compare16() 108 static void compare32(skiatest::Reporter* r, const uint32_t base[], in compare32() 118 static void test_16(skiatest::Reporter* reporter) { in test_16() 135 static void test_32(skiatest::Reporter* reporter) { in test_32()
|
D | PathOpsSkpTest.cpp | 11 static void skpcheeseandburger_com225(skiatest::Reporter* reporter, const char* filename) { in skpcheeseandburger_com225() 372 static void skpeverytechpro_blogspot_com100(skiatest::Reporter* reporter, const char* filename) { in skpeverytechpro_blogspot_com100() 406 static void skpflite_com41(skiatest::Reporter* reporter, const char* filename) { in skpflite_com41() 429 static void skpilkoora_com37(skiatest::Reporter* reporter, const char* filename) { in skpilkoora_com37() 461 static void skpmm4everfriends_com43(skiatest::Reporter* reporter, const char* filename) { in skpmm4everfriends_com43() 484 static void skpmtrk_uz27(skiatest::Reporter* reporter, const char* filename) { in skpmtrk_uz27() 511 static void skpfrauen_magazin_com83(skiatest::Reporter* reporter, const char* filename) { in skpfrauen_magazin_com83() 535 static void skpi_gino_com16(skiatest::Reporter* reporter, const char* filename) { in skpi_gino_com16() 560 static void skppchappy_com_au102(skiatest::Reporter* reporter, const char* filename) { in skppchappy_com_au102() 588 static void skpsciality_com161(skiatest::Reporter* reporter, const char* filename) { in skpsciality_com161() [all …]
|
D | GeometryTest.cpp | 16 static void testChopCubic(skiatest::Reporter* reporter) { in testChopCubic() 37 static void check_pairs(skiatest::Reporter* reporter, int index, SkScalar t, const char name[], in check_pairs() 47 static void test_evalquadat(skiatest::Reporter* reporter) { in test_evalquadat() 72 static void test_conic_eval_pos(skiatest::Reporter* reporter, const SkConic& conic, SkScalar t) { in test_conic_eval_pos() 79 static void test_conic_eval_tan(skiatest::Reporter* reporter, const SkConic& conic, SkScalar t) { in test_conic_eval_tan() 86 static void test_conic(skiatest::Reporter* reporter) { in test_conic() 108 static void test_quad_tangents(skiatest::Reporter* reporter) { in test_quad_tangents() 128 static void test_conic_tangents(skiatest::Reporter* reporter) { in test_conic_tangents() 148 static void test_cubic_tangents(skiatest::Reporter* reporter) { in test_cubic_tangents()
|
D | FontHostTest.cpp | 34 static void test_unitsPerEm(skiatest::Reporter* reporter, SkTypeface* face) { in test_unitsPerEm() 53 static void test_countGlyphs(skiatest::Reporter* reporter, SkTypeface* face) { in test_countGlyphs() 89 static void test_charsToGlyphs(skiatest::Reporter* reporter, SkTypeface* face) { in test_charsToGlyphs() 114 static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) { in test_fontstream() 140 static void test_fontstream(skiatest::Reporter* reporter) { in test_fontstream() 156 static void test_symbolfont(skiatest::Reporter* reporter) { in test_symbolfont() 172 static void test_tables(skiatest::Reporter* reporter, SkTypeface* face) { in test_tables() 215 static void test_tables(skiatest::Reporter* reporter) { in test_tables() 243 static void test_advances(skiatest::Reporter* reporter) { in test_advances()
|
D | GpuRectanizerTest.cpp | 21 static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) { in test_rectanizer_basic() 33 static void test_rectanizer_inserts(skiatest::Reporter*, in test_rectanizer_inserts() 47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_skyline() 54 static void test_pow2(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_pow2()
|
D | Writer32Test.cpp | 13 static void check_contents(skiatest::Reporter* reporter, const SkWriter32& writer, in check_contents() 22 static void test_reserve(skiatest::Reporter* reporter) { in test_reserve() 30 static void test_string_null(skiatest::Reporter* reporter) { in test_string_null() 40 static void test_rewind(skiatest::Reporter* reporter) { in test_rewind() 72 static void test_ptr(skiatest::Reporter* reporter) { in test_ptr() 100 static void test1(skiatest::Reporter* reporter, SkWriter32* writer) { in test1() 114 static void test2(skiatest::Reporter* reporter, SkWriter32* writer) { in test2() 145 static void testWritePad(skiatest::Reporter* reporter, SkWriter32* writer) { in testWritePad() 184 static void testOverwriteT(skiatest::Reporter* reporter, SkWriter32* writer) { in testOverwriteT()
|
D | PathOpsThreadedCommon.h | 17 namespace skiatest { 29 skiatest::Reporter* fReporter; 35 PathOpsThreadedTestRunner(skiatest::Reporter* reporter) : fReporter(reporter) {} in PathOpsThreadedTestRunner() 43 skiatest::Reporter* fReporter;
|
D | RegionTest.cpp | 23 static void test_fromchrome(skiatest::Reporter* reporter) { in test_fromchrome() 80 static void test_empties(skiatest::Reporter* reporter) { in test_empties() 141 static void test_contains_iter(skiatest::Reporter* reporter, const SkRegion& rgn) { in test_contains_iter() 152 static void contains_proc(skiatest::Reporter* reporter, in contains_proc() 170 static void test_intersects_iter(skiatest::Reporter* reporter, const SkRegion& rgn) { in test_intersects_iter() 181 static void intersects_proc(skiatest::Reporter* reporter, in intersects_proc() 191 static void test_proc(skiatest::Reporter* reporter, in test_proc() 192 void (*proc)(skiatest::Reporter*, in test_proc() 268 static void test_write(const SkRegion& region, skiatest::Reporter* r) { in test_write()
|
D | RandomTest.cpp | 59 static void test_random_byte(skiatest::Reporter* reporter, int shift) { in test_random_byte() 71 static void test_random_float(skiatest::Reporter* reporter) { in test_random_float() 102 static double test_single_gorilla(skiatest::Reporter* reporter, int shift) { in test_single_gorilla() 152 static void test_gorilla(skiatest::Reporter* reporter) { in test_gorilla() 162 static void test_range(skiatest::Reporter* reporter) { in test_range()
|
D | PathOpsCubicIntersectionTest.cpp | 19 static void standardTestCases(skiatest::Reporter* reporter) { in standardTestCases() 381 static void oneOff(skiatest::Reporter* reporter, const SkDCubic& cubic1, const SkDCubic& cubic2, in oneOff() 428 static void oneOff(skiatest::Reporter* reporter, int outer, int inner) { in oneOff() 434 static void newOneOff(skiatest::Reporter* reporter, int outer, int inner) { in newOneOff() 440 static void testsOneOff(skiatest::Reporter* reporter, int index) { in testsOneOff() 446 static void oneOffTests(skiatest::Reporter* reporter) { in oneOffTests() 461 static void CubicIntersection_RandTest(skiatest::Reporter* reporter) { in CubicIntersection_RandTest() 627 static void selfOneOff(skiatest::Reporter* reporter, int index) { in selfOneOff() 655 static void cubicIntersectionSelfTest(skiatest::Reporter* reporter) { in cubicIntersectionSelfTest() 683 static void coinOneOff(skiatest::Reporter* reporter, int index) { in coinOneOff() [all …]
|
D | PathOpsBattles.cpp | 12 static void issue414409(skiatest::Reporter* reporter, const char* filename) { in issue414409() 42 static void issue414409b(skiatest::Reporter* reporter, const char* filename) { in issue414409b() 65 static void issue414409c(skiatest::Reporter* reporter, const char* filename) { in issue414409c() 91 static void battleOp1(skiatest::Reporter* reporter, const char* filename) { in battleOp1() 116 static void battleOp2(skiatest::Reporter* reporter, const char* filename) { in battleOp2() 138 static void battleOp3(skiatest::Reporter* reporter, const char* filename) { in battleOp3() 163 static void battleOp4(skiatest::Reporter* reporter, const char* filename) { in battleOp4() 191 static void battleOp5(skiatest::Reporter* reporter, const char* filename) { in battleOp5() 216 static void battleOp6(skiatest::Reporter* reporter, const char* filename) { in battleOp6() 247 static void battleOp7(skiatest::Reporter* reporter, const char* filename) { in battleOp7() [all …]
|