/third_party/skia/tests/ |
H A D | GrFinishedFlushTest.cpp | 25 skiatest::Reporter* reporter) { in busy_wait_for_callback() 34 ERRORF(reporter, "Expected count failed to reach %d within 1 second of busy waiting.", in busy_wait_for_callback() 39 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(FlushFinishedProcTest, reporter, ctxInfo) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 61 REPORTER_ASSERT(reporter, count == 0 || count == 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 63 busy_wait_for_callback(&count, 1, dContext, reporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 80 REPORTER_ASSERT(reporter, count == 1 || count == 2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 82 REPORTER_ASSERT(reporter, count == 2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 86 REPORTER_ASSERT(reporter, count == 2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 95 REPORTER_ASSERT(reporter, count == 2 || count == 3); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 97 REPORTER_ASSERT(reporter, coun in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 24 busy_wait_for_callback(int* count, int expectedValue, GrDirectContext* dContext, skiatest::Reporter* reporter) busy_wait_for_callback() argument [all...] |
H A D | PathOpsCubicIntersectionTest.cpp | 21 static void standardTestCases(skiatest::Reporter* reporter) { in standardTestCases() argument 68 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in standardTestCases() 70 reporter->bumpTestCount(); in standardTestCases() 390 static void oneOff(skiatest::Reporter* reporter, const CubicPts& cubic1, const CubicPts& cubic2, in oneOff() argument 416 REPORTER_ASSERT(reporter, !coin || intersections.used() >= 2); in oneOff() 430 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(iPt)); in oneOff() 431 REPORTER_ASSERT(reporter, xy2.approximatelyEqual(iPt)); in oneOff() 432 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in oneOff() 434 reporter->bumpTestCount(); in oneOff() 437 static void oneOff(skiatest::Reporter* reporter, in argument 443 newOneOff(skiatest::Reporter* reporter, int outer, int inner) newOneOff() argument 449 testsOneOff(skiatest::Reporter* reporter, int index) testsOneOff() argument 455 oneOffTests(skiatest::Reporter* reporter) oneOffTests() argument 470 CubicIntersection_RandTest(skiatest::Reporter* reporter) CubicIntersection_RandTest() argument 642 selfOneOff(skiatest::Reporter* reporter, int setIdx) selfOneOff() argument [all...] |
H A D | SurfaceTest.cpp | 85 DEF_TEST(SurfaceEmpty, reporter) { in DEF_TEST() 87 REPORTER_ASSERT(reporter, nullptr == SkSurface::MakeRaster(info)); in DEF_TEST() 88 REPORTER_ASSERT(reporter, nullptr == SkSurface::MakeRasterDirect(info, nullptr, 0)); in DEF_TEST() 91 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SurfaceEmpty_Gpu, reporter, ctxInfo) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 93 REPORTER_ASSERT(reporter, nullptr == in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 97 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrContext_colorTypeSupportedAsSurface, reporter, ctxInfo) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 109 REPORTER_ASSERT(reporter, can == SkToBool(surf), "ct: %d, can: %d, surf: %d", in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 117 REPORTER_ASSERT(reporter, can == SkToBool(surf), "ct: %d, can: %d, surf: %d", in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 128 REPORTER_ASSERT(reporter, can == SkToBool(surf), "ct: %d, can: %d, surf: %d", in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 133 REPORTER_ASSERT(reporter, ca in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 214 test_canvas_peek(skiatest::Reporter* reporter, sk_sp<SkSurface>& surface, const SkImageInfo& requestInfo, bool expectPeekSuccess) test_canvas_peek() argument 256 test_snapshot_alphatype(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, SkAlphaType expectedAlphaType) test_snapshot_alphatype() argument 285 test_backend_texture_access_copy_on_write( skiatest::Reporter* reporter, SkSurface* surface, SkSurface::BackendHandleAccess access) test_backend_texture_access_copy_on_write() argument 297 test_backend_rendertarget_access_copy_on_write( skiatest::Reporter* reporter, SkSurface* surface, SkSurface::BackendHandleAccess access) test_backend_rendertarget_access_copy_on_write() argument 332 test_backend_unique_id(skiatest::Reporter* reporter, SkSurface* surface) test_backend_unique_id() argument 412 test_copy_on_write(skiatest::Reporter* reporter, SkSurface* surface) test_copy_on_write() argument 478 test_writable_after_snapshot_release(skiatest::Reporter* reporter, SkSurface* surface) test_writable_after_snapshot_release() argument 498 test_crbug263329(skiatest::Reporter* reporter, SkSurface* surface1, SkSurface* surface2) test_crbug263329() argument 602 test_no_canvas1(skiatest::Reporter* reporter, SkSurface* surface, SkSurface::ContentChangeMode mode) test_no_canvas1() argument 608 test_no_canvas2(skiatest::Reporter* reporter, SkSurface* surface, SkSurface::ContentChangeMode mode) test_no_canvas2() argument 642 check_rowbytes_remain_consistent(SkSurface* surface, skiatest::Reporter* reporter) check_rowbytes_remain_consistent() argument 756 test_surface_context_clear(skiatest::Reporter* reporter, GrDirectContext* dContext, skgpu::SurfaceContext* surfaceContext, uint32_t expectedValue) test_surface_context_clear() argument 838 test_surface_draw_partially( skiatest::Reporter* reporter, sk_sp<SkSurface> surface, SkColor origColor) test_surface_draw_partially() argument [all...] |
H A D | PromiseImageTest.cpp | 27 skiatest::Reporter* reporter, in PromiseTextureChecker() 29 : fTexture(SkPromiseImageTexture::Make(tex)), fReporter(reporter), fShared(shared) {} in PromiseTextureChecker() 62 static void check_fulfill_and_release_cnts(skiatest::Reporter* reporter, in check_fulfill_and_release_cnts() argument 66 REPORTER_ASSERT(reporter, promiseChecker.fFulfillCount == expectedFulfillCnt); in check_fulfill_and_release_cnts() 69 REPORTER_ASSERT(reporter, !promiseChecker.fReleaseCount); in check_fulfill_and_release_cnts() 75 REPORTER_ASSERT(reporter, !releaseDiff); in check_fulfill_and_release_cnts() 78 REPORTER_ASSERT(reporter, releaseDiff == promiseChecker.fFulfillCount); in check_fulfill_and_release_cnts() 81 REPORTER_ASSERT(reporter, in check_fulfill_and_release_cnts() 85 REPORTER_ASSERT(reporter, releaseDiff == 1); in check_fulfill_and_release_cnts() 88 REPORTER_ASSERT(reporter, releaseDif in check_fulfill_and_release_cnts() 93 check_unfulfilled(const PromiseTextureChecker& promiseChecker, skiatest::Reporter* reporter) check_unfulfilled() argument 99 check_only_fulfilled(skiatest::Reporter* reporter, const PromiseTextureChecker& promiseChecker, int expectedFulfillCnt = 1) check_only_fulfilled() argument 106 check_all_flushed_but_not_synced(skiatest::Reporter* reporter, const PromiseTextureChecker& promiseChecker, GrBackendApi api, int expectedFulfillCnt = 1) check_all_flushed_but_not_synced() argument 121 check_all_done(skiatest::Reporter* reporter, const PromiseTextureChecker& promiseChecker, int expectedFulfillCnt = 1) check_all_done() argument [all...] |
H A D | ImageFilterCacheTest.cpp | 40 static void test_find_existing(skiatest::Reporter* reporter, in test_find_existing() argument 55 REPORTER_ASSERT(reporter, cache->get(key1, &foundImage)); in test_find_existing() 56 REPORTER_ASSERT(reporter, offset == SkIPoint(foundImage.layerOrigin())); in test_find_existing() 58 REPORTER_ASSERT(reporter, !cache->get(key2, &foundImage)); in test_find_existing() 63 static void test_dont_find_if_diff_key(skiatest::Reporter* reporter, in test_dont_find_if_diff_key() argument 83 REPORTER_ASSERT(reporter, !cache->get(key1, &foundImage)); in test_dont_find_if_diff_key() 84 REPORTER_ASSERT(reporter, !cache->get(key2, &foundImage)); in test_dont_find_if_diff_key() 85 REPORTER_ASSERT(reporter, !cache->get(key3, &foundImage)); in test_dont_find_if_diff_key() 86 REPORTER_ASSERT(reporter, !cache->get(key4, &foundImage)); in test_dont_find_if_diff_key() 90 static void test_internal_purge(skiatest::Reporter* reporter, cons argument 116 test_explicit_purging(skiatest::Reporter* reporter, const sk_sp<SkSpecialImage>& image, const sk_sp<SkSpecialImage>& subset) test_explicit_purging() argument 172 test_image_backed(skiatest::Reporter* reporter, GrRecordingContext* rContext, const sk_sp<SkImage>& srcImage) test_image_backed() argument [all...] |
H A D | PolyUtilsTest.cpp | 10 DEF_TEST(PolyUtils, reporter) { in DEF_TEST() 24 REPORTER_ASSERT(reporter, SkGetPolygonWinding(poly.begin(), poly.count()) < 0); in DEF_TEST() 25 REPORTER_ASSERT(reporter, SkIsConvexPolygon(poly.begin(), poly.count())); in DEF_TEST() 26 REPORTER_ASSERT(reporter, SkIsSimplePolygon(poly.begin(), poly.count())); in DEF_TEST() 27 REPORTER_ASSERT(reporter, SkTriangulateSimplePolygon(poly.begin(), indexMap, poly.count(), in DEF_TEST() 32 REPORTER_ASSERT(reporter, SkGetPolygonWinding(poly.begin(), poly.count()) > 0); in DEF_TEST() 33 REPORTER_ASSERT(reporter, SkIsConvexPolygon(poly.begin(), poly.count())); in DEF_TEST() 34 REPORTER_ASSERT(reporter, SkIsSimplePolygon(poly.begin(), poly.count())); in DEF_TEST() 36 REPORTER_ASSERT(reporter, SkTriangulateSimplePolygon(poly.begin(), indexMap, poly.count(), in DEF_TEST() 41 REPORTER_ASSERT(reporter, SkGetPolygonWindin in DEF_TEST() [all...] |
H A D | ImageFilterTest.cpp | 39 static sk_sp<SkImageFilter> Make(skiatest::Reporter* reporter, in Make() argument 41 return sk_sp<SkImageFilter>(new MatrixTestImageFilter(reporter, expectedMatrix)); in Make() 58 MatrixTestImageFilter(skiatest::Reporter* reporter, const SkMatrix& expectedMatrix) in MatrixTestImageFilter() argument 60 , fReporter(reporter) in MatrixTestImageFilter() 370 DEF_TEST(ImageFilter, reporter) { in DEF_TEST() 376 REPORTER_ASSERT(reporter, nullptr == halfBrightness->getInput(0)); in DEF_TEST() 378 REPORTER_ASSERT(reporter, halfBrightness->asColorFilter(&cf)); in DEF_TEST() 386 REPORTER_ASSERT(reporter, true == gray->asColorFilter(nullptr)); in DEF_TEST() 394 REPORTER_ASSERT(reporter, true == gray->asColorFilter(nullptr)); in DEF_TEST() 415 REPORTER_ASSERT(reporter, fals in DEF_TEST() 474 test_cropRects(skiatest::Reporter* reporter, GrRecordingContext* rContext) test_cropRects() argument 512 test_negative_blur_sigma(skiatest::Reporter* reporter, GrDirectContext* dContext) test_negative_blur_sigma() argument 598 test_morphology_radius_with_mirror_ctm(skiatest::Reporter* reporter, GrDirectContext* dContext) test_morphology_radius_with_mirror_ctm() argument 683 test_zero_blur_sigma(skiatest::Reporter* reporter, GrDirectContext* dContext) test_zero_blur_sigma() argument 728 test_fail_affects_transparent_black(skiatest::Reporter* reporter, GrDirectContext* dContext) test_fail_affects_transparent_black() argument 1006 test_imagefilter_merge_result_size(skiatest::Reporter* reporter, GrRecordingContext* rContext) test_imagefilter_merge_result_size() argument 1153 test_big_kernel(skiatest::Reporter* reporter, GrRecordingContext* rContext) test_big_kernel() argument 1228 test_clipped_picture_imagefilter(skiatest::Reporter* reporter, GrRecordingContext* rContext) test_clipped_picture_imagefilter() argument 1316 test_huge_blur(SkCanvas* canvas, skiatest::Reporter* reporter) test_huge_blur() argument 1368 test_xfermode_cropped_input(SkSurface* surf, skiatest::Reporter* reporter) test_xfermode_cropped_input() argument 1465 test_composed_imagefilter_offset(skiatest::Reporter* reporter, GrRecordingContext* rContext) test_composed_imagefilter_offset() argument 1493 test_composed_imagefilter_bounds(skiatest::Reporter* reporter, GrDirectContext* dContext) test_composed_imagefilter_bounds() argument 1630 test_large_blur_input(skiatest::Reporter* reporter, SkCanvas* canvas) test_large_blur_input() argument 1676 test_make_with_filter(skiatest::Reporter* reporter, GrRecordingContext* rContext) test_make_with_filter() argument 1873 test_arithmetic_bounds(skiatest::Reporter* reporter, float k1, float k2, float k3, float k4, sk_sp<SkImageFilter> background, sk_sp<SkImageFilter> foreground, const SkIRect* crop, const SkIRect& expected) test_arithmetic_bounds() argument 1885 test_arithmetic_combinations(skiatest::Reporter* reporter, float v) test_arithmetic_combinations() argument [all...] |
H A D | MallocPixelRefTest.cpp | 22 DEF_TEST(MallocPixelRef, reporter) { in DEF_TEST() 23 REPORTER_ASSERT(reporter, true); in DEF_TEST() 29 REPORTER_ASSERT(reporter, nullptr == pr.get()); in DEF_TEST() 38 REPORTER_ASSERT(reporter, nullptr == pr.get()); in DEF_TEST() 47 REPORTER_ASSERT(reporter, nullptr == pr.get()); in DEF_TEST() 54 REPORTER_ASSERT(reporter, pr.get() != nullptr); in DEF_TEST() 55 REPORTER_ASSERT(reporter, memory.get() == pr->pixels()); in DEF_TEST() 60 REPORTER_ASSERT(reporter, pr.get() != nullptr); in DEF_TEST() 61 REPORTER_ASSERT(reporter, pr->pixels()); in DEF_TEST() 68 REPORTER_ASSERT(reporter, p in DEF_TEST() [all...] |
H A D | GpuRectanizerTest.cpp | 19 static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) { in test_rectanizer_basic() argument 20 REPORTER_ASSERT(reporter, kWidth == rectanizer->width()); in test_rectanizer_basic() 21 REPORTER_ASSERT(reporter, kHeight == rectanizer->height()); in test_rectanizer_basic() 25 REPORTER_ASSERT(reporter, rectanizer->addRect(50, 50, &loc)); in test_rectanizer_basic() 26 REPORTER_ASSERT(reporter, rectanizer->percentFull() > 0.0f); in test_rectanizer_basic() 28 REPORTER_ASSERT(reporter, rectanizer->percentFull() == 0.0f); in test_rectanizer_basic() 45 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_skyline() argument 48 test_rectanizer_basic(reporter, &skylineRectanizer); in test_skyline() 49 test_rectanizer_inserts(reporter, &skylineRectanizer, rects); in test_skyline() 52 static void test_pow2(skiatest::Reporter* reporter, cons argument [all...] |
H A D | FontMgrAndroidParserTest.cpp | 47 skiatest::Reporter* reporter) { in ValidateLoadedFonts() 48 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5); in ValidateLoadedFonts() 49 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif")); in ValidateLoadedFonts() 50 REPORTER_ASSERT(reporter, in ValidateLoadedFonts() 52 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont); in ValidateLoadedFonts() 60 REPORTER_ASSERT(reporter, isALPHA(c) || isDIGIT(c) || '-' == c); in ValidateLoadedFonts() 72 REPORTER_ASSERT(reporter, !file.fFileName.isEmpty() && in ValidateLoadedFonts() 128 template <int N, typename T> static double test_parse_fixed_r(skiatest::Reporter* reporter, in test_parse_fixed_r() argument 145 REPORTER_ASSERT(reporter, error <= SK_FixedEpsilon_double); in test_parse_fixed_r() 148 REPORTER_ASSERT(reporter, in test_parse_fixed_r() 46 ValidateLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* firstExpectedFile, skiatest::Reporter* reporter) ValidateLoadedFonts() argument 156 test_parse_fixed(skiatest::Reporter* reporter) test_parse_fixed() argument [all...] |
H A D | PathOpsTightBoundsTest.cpp | 35 DEF_TEST(PathOpsTightBoundsLines, reporter) { in DEF_TEST() 36 initializeTests(reporter, "tightBoundsLines"); in DEF_TEST() 37 PathOpsThreadedTestRunner testRunner(reporter); in DEF_TEST() 38 int outerCount = reporter->allowExtendedTest() ? 100 : 1; in DEF_TEST() 110 DEF_TEST(PathOpsTightBoundsQuads, reporter) { in DEF_TEST() 111 initializeTests(reporter, "tightBoundsQuads"); in DEF_TEST() 112 PathOpsThreadedTestRunner testRunner(reporter); in DEF_TEST() 113 int outerCount = reporter->allowExtendedTest() ? 100 : 1; in DEF_TEST() 123 DEF_TEST(PathOpsTightBoundsMove, reporter) { in DEF_TEST() 135 REPORTER_ASSERT(reporter, TightBound in DEF_TEST() [all...] |
H A D | GrContextFactoryTest.cpp | 19 DEF_GPUTEST(GrContextFactory_abandon, reporter, options) { in DEF_GPUTEST() 27 REPORTER_ASSERT(reporter, info1.testContext()); in DEF_GPUTEST() 34 REPORTER_ASSERT(reporter, info2.directContext()); in DEF_GPUTEST() 35 REPORTER_ASSERT(reporter, info2.testContext()); in DEF_GPUTEST() 37 REPORTER_ASSERT(reporter, info1.directContext() != info2.directContext()); in DEF_GPUTEST() 44 DEF_GPUTEST(GrContextFactory_sharedContexts, reporter, options) { in DEF_GPUTEST() 59 REPORTER_ASSERT(reporter, !info2.directContext()); in DEF_GPUTEST() 70 REPORTER_ASSERT(reporter, info3.directContext() != info4.directContext()); in DEF_GPUTEST() 71 REPORTER_ASSERT(reporter, info3.testContext() != info4.testContext()); in DEF_GPUTEST() 75 REPORTER_ASSERT(reporter, info in DEF_GPUTEST() [all...] |
H A D | CachedDataTest.cpp | 29 static void check_data(skiatest::Reporter* reporter, SkCachedData* data, in check_data() argument 31 REPORTER_ASSERT(reporter, data->testing_only_getRefCnt() == refcnt); in check_data() 32 REPORTER_ASSERT(reporter, data->testing_only_isInCache() == (kInCache == cacheState)); in check_data() 33 REPORTER_ASSERT(reporter, data->testing_only_isLocked() == (lockedState == kLocked)); in check_data() 48 static SkCachedData* test_locking(skiatest::Reporter* reporter, in test_locking() argument 54 check_data(reporter, data, 1, kNotInCache, kLocked); in test_locking() 57 check_data(reporter, data, 2, kNotInCache, kLocked); in test_locking() 59 check_data(reporter, data, 1, kNotInCache, kLocked); in test_locking() 62 check_data(reporter, data, 2, kInCache, kLocked); in test_locking() 65 check_data(reporter, dat in test_locking() [all...] |
H A D | ExtendedSkColorTypeTests.cpp | 77 static void raster_tests(skiatest::Reporter* reporter, const TestCase& test) { in raster_tests() argument 84 REPORTER_ASSERT(reporter, test.fChannels == actualChannels); in raster_tests() 89 REPORTER_ASSERT(reporter, SkToBool(s)); in raster_tests() 99 REPORTER_ASSERT(reporter, expected.toSkColor() == actual); in raster_tests() 109 REPORTER_ASSERT(reporter, expected.toSkColor() == actual); in raster_tests() 118 REPORTER_ASSERT(reporter, SkToBool(i)); in raster_tests() 124 REPORTER_ASSERT(reporter, i->readPixels(nullptr, readbackPM, 0, 0)); in raster_tests() 128 REPORTER_ASSERT(reporter, expected == actual); in raster_tests() 137 REPORTER_ASSERT(reporter, SkToBool(i)); in raster_tests() 140 REPORTER_ASSERT(reporter, SkToBoo in raster_tests() 159 compare_pixmaps(skiatest::Reporter* reporter, const SkPixmap& expected, const SkPixmap& actual, SkColorType ct, const char* label) compare_pixmaps() argument 175 gpu_tests(GrDirectContext* dContext, skiatest::Reporter* reporter, const TestCase& test) gpu_tests() argument [all...] |
H A D | CanvasTest.cpp | 93 DEF_TEST(canvas_clipbounds, reporter) { in DEF_TEST() 99 REPORTER_ASSERT(reporter, irect == SkIRect::MakeWH(10, 10)); in DEF_TEST() 100 REPORTER_ASSERT(reporter, canvas.getDeviceClipBounds(&irect2)); in DEF_TEST() 101 REPORTER_ASSERT(reporter, irect == irect2); in DEF_TEST() 105 REPORTER_ASSERT(reporter, rect.contains(SkRect::MakeWH(10, 10))); in DEF_TEST() 106 REPORTER_ASSERT(reporter, canvas.getLocalClipBounds(&rect2)); in DEF_TEST() 107 REPORTER_ASSERT(reporter, rect == rect2); in DEF_TEST() 112 REPORTER_ASSERT(reporter, irect == SkIRect::MakeEmpty()); in DEF_TEST() 113 REPORTER_ASSERT(reporter, !canvas.getDeviceClipBounds(&irect2)); in DEF_TEST() 114 REPORTER_ASSERT(reporter, irec in DEF_TEST() 144 test_restriction(skiatest::Reporter* reporter, SkCanvas* canvas) test_restriction() argument [all...] |
H A D | YUVTest.cpp | 16 static void codec_yuv(skiatest::Reporter* reporter, in codec_yuv() argument 24 REPORTER_ASSERT(reporter, codec); in codec_yuv() 37 REPORTER_ASSERT(reporter, !success); in codec_yuv() 40 REPORTER_ASSERT(reporter, !success); in codec_yuv() 43 REPORTER_ASSERT(reporter, SkToBool(expectedInfo) == success); in codec_yuv() 47 REPORTER_ASSERT(reporter, *expectedInfo == yuvaPixmapInfo.yuvaInfo()); in codec_yuv() 50 REPORTER_ASSERT(reporter, numPlanes <= SkYUVAInfo::kMaxPlanes); in codec_yuv() 54 REPORTER_ASSERT(reporter, !planeInfo.isEmpty()); in codec_yuv() 55 REPORTER_ASSERT(reporter, planeCT != kUnknown_SkColorType); in codec_yuv() 56 REPORTER_ASSERT(reporter, planeInf in codec_yuv() [all...] |
H A D | SpecialSurfaceTest.cpp | 33 skiatest::Reporter* reporter, in test_surface() 37 REPORTER_ASSERT(reporter, offset == surfSubset.fLeft); in test_surface() 38 REPORTER_ASSERT(reporter, offset == surfSubset.fTop); in test_surface() 39 REPORTER_ASSERT(reporter, kSmallerSize == surfSubset.width()); in test_surface() 40 REPORTER_ASSERT(reporter, kSmallerSize == surfSubset.height()); in test_surface() 48 REPORTER_ASSERT(reporter, img); in test_surface() 51 REPORTER_ASSERT(reporter, surfSubset == imgSubset); in test_surface() 54 REPORTER_ASSERT(reporter, !surf->getCanvas()); in test_surface() 57 DEF_TEST(SpecialSurface_Raster, reporter) { in DEF_TEST() 62 test_surface(surf, reporter, in DEF_TEST() 32 test_surface(const sk_sp<SkSpecialSurface>& surf, skiatest::Reporter* reporter, int offset) test_surface() argument [all...] |
H A D | AsADashTest.cpp | 16 DEF_TEST(AsADashTest_noneDash, reporter) { in DEF_TEST() 21 REPORTER_ASSERT(reporter, SkPathEffect::kNone_DashType == dashType); in DEF_TEST() 24 DEF_TEST(AsADashTest_nullInfo, reporter) { in DEF_TEST() 30 REPORTER_ASSERT(reporter, SkPathEffect::kDash_DashType == dashType); in DEF_TEST() 33 DEF_TEST(AsADashTest_usingDash, reporter) { in DEF_TEST() 43 REPORTER_ASSERT(reporter, SkPathEffect::kDash_DashType == dashType); in DEF_TEST() 44 REPORTER_ASSERT(reporter, 4 == info.fCount); in DEF_TEST() 45 REPORTER_ASSERT(reporter, SkScalarMod(phase, totalIntSum) == info.fPhase); in DEF_TEST() 51 REPORTER_ASSERT(reporter, inIntervals[0] == info.fIntervals[0]); in DEF_TEST() 52 REPORTER_ASSERT(reporter, inInterval in DEF_TEST() [all...] |
H A D | OSPathTest.cpp | 16 * @param reporter Reporter for test conditions. 22 static void test_dir_with_file(skiatest::Reporter* reporter, SkString dir, in test_dir_with_file() argument 38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize); in test_dir_with_file() 44 REPORTER_ASSERT(reporter, basename.equals(filename)); in test_dir_with_file() 55 REPORTER_ASSERT(reporter, dirname.equals(strippedDir)); in test_dir_with_file() 58 REPORTER_ASSERT(reporter, !basename.contains(SkOSPath::SEPARATOR)); in test_dir_with_file() 62 REPORTER_ASSERT(reporter, basename.equals(filename)); in test_dir_with_file() 65 DEF_TEST(OSPath, reporter) { in DEF_TEST() 68 test_dir_with_file(reporter, dir, filename); in DEF_TEST() 72 test_dir_with_file(reporter, di in DEF_TEST() [all...] |
H A D | HighContrastFilterTest.cpp | 13 DEF_TEST(HighContrastFilter_FilterImage, reporter) { in DEF_TEST() 42 reporter, filterColor == in DEF_TEST() 48 DEF_TEST(HighContrastFilter_SmokeTest, reporter) { in DEF_TEST() 52 REPORTER_ASSERT(reporter, filter->isAlphaUnchanged()); in DEF_TEST() 55 REPORTER_ASSERT(reporter, white_inverted == SK_ColorBLACK); in DEF_TEST() 58 REPORTER_ASSERT(reporter, black_inverted == SK_ColorWHITE); in DEF_TEST() 61 DEF_TEST(HighContrastFilter_InvalidInputs, reporter) { in DEF_TEST() 63 REPORTER_ASSERT(reporter, config.isValid()); in DEF_TEST() 67 REPORTER_ASSERT(reporter, config.isValid()); in DEF_TEST() 69 REPORTER_ASSERT(reporter, confi in DEF_TEST() [all...] |
H A D | FontHostTest.cpp | 36 static void test_unitsPerEm(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { in test_unitsPerEm() argument 49 REPORTER_ASSERT(reporter, tableUPEM == nativeUPEM); in test_unitsPerEm() 55 static void test_countGlyphs(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { in test_countGlyphs() argument 68 REPORTER_ASSERT(reporter, tableGlyphs == nativeGlyphs); in test_countGlyphs() 72 static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) { in test_fontstream() argument 77 REPORTER_ASSERT(reporter, n == n2); in test_fontstream() 92 REPORTER_ASSERT(reporter, gKnownTableSizes[j].fSize == size); in test_fontstream() 98 static void test_fontstream(skiatest::Reporter* reporter) { in test_fontstream() argument 110 test_fontstream(reporter, stream.get(), i); in test_fontstream() 115 static void test_symbolfont(skiatest::Reporter* reporter) { in test_symbolfont() argument 127 test_tables(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) test_tables() argument 173 test_tables(skiatest::Reporter* reporter) test_tables() argument 200 test_advances(skiatest::Reporter* reporter) test_advances() argument [all...] |
H A D | PathOpsBuilderTest.cpp | 13 DEF_TEST(PathOpsBuilder, reporter) { in DEF_TEST() 16 REPORTER_ASSERT(reporter, builder.resolve(&result)); in DEF_TEST() 17 REPORTER_ASSERT(reporter, result.isEmpty()); in DEF_TEST() 20 REPORTER_ASSERT(reporter, builder.resolve(&result)); in DEF_TEST() 21 REPORTER_ASSERT(reporter, result.isEmpty()); in DEF_TEST() 24 REPORTER_ASSERT(reporter, builder.resolve(&result)); in DEF_TEST() 25 REPORTER_ASSERT(reporter, result.isEmpty()); in DEF_TEST() 31 REPORTER_ASSERT(reporter, builder.resolve(&result)); in DEF_TEST() 34 REPORTER_ASSERT(reporter, result.isRect(nullptr, &closed, &dir)); in DEF_TEST() 35 REPORTER_ASSERT(reporter, close in DEF_TEST() [all...] |
/third_party/skia/modules/skunicode/tests/ |
H A D | SkUnicodeTest.cpp | 21 UNIX_ONLY_TEST(SkUnicode_Client, reporter) { in UNIX_ONLY_TEST() 30 REPORTER_ASSERT(reporter, !SkUnicode::isPartOfWhiteSpaceBreak(flag)); in UNIX_ONLY_TEST() 35 UNIX_ONLY_TEST(SkUnicode_Native, reporter) { in UNIX_ONLY_TEST() 42 REPORTER_ASSERT(reporter, !SkUnicode::isPartOfWhiteSpaceBreak(flag)); in UNIX_ONLY_TEST() 46 UNIX_ONLY_TEST(SkUnicode_GetWords, reporter) { in UNIX_ONLY_TEST() 52 REPORTER_ASSERT(reporter, result); in UNIX_ONLY_TEST() 53 REPORTER_ASSERT(reporter, results.size() == expected.size()); in UNIX_ONLY_TEST() 55 REPORTER_ASSERT(reporter, results[i] == expected[i]); in UNIX_ONLY_TEST() 59 UNIX_ONLY_TEST(SkUnicode_GetBidiRegionsLTR, reporter) { in UNIX_ONLY_TEST() 67 REPORTER_ASSERT(reporter, resul in UNIX_ONLY_TEST() [all...] |
/third_party/skia/experimental/skrive/tests/ |
H A D | BinaryReader.cpp | 13 DEF_TEST(SkRive_BinaryReader, reporter) { in DEF_TEST() 42 REPORTER_ASSERT(reporter, sr); in DEF_TEST() 43 REPORTER_ASSERT(reporter, sr->readUInt32("version") == 18); in DEF_TEST() 46 REPORTER_ASSERT(reporter, ab.type() == StreamReader::BlockType::kArtboards); in DEF_TEST() 47 REPORTER_ASSERT(reporter, sr->readLength16() == 1); in DEF_TEST() 51 REPORTER_ASSERT(reporter, ab.type() == StreamReader::BlockType::kActorArtboard); in DEF_TEST() 52 REPORTER_ASSERT(reporter, sr->readString("name").equals("Fooo")); in DEF_TEST() 53 REPORTER_ASSERT(reporter, sr->readV2("translation") == (SkV2{0,0})); in DEF_TEST() 54 REPORTER_ASSERT(reporter, sr->readFloat("width" ) == 863); in DEF_TEST() 55 REPORTER_ASSERT(reporter, s in DEF_TEST() [all...] |
/third_party/skia/experimental/sktext/tests/ |
H A D | WrappedText.cpp | 92 UNIX_ONLY_TEST(SkText_WrappedText_Spaces, reporter) { in UNIX_ONLY_TEST() 108 REPORTER_ASSERT(reporter, testVisitor.fTestLines.size() == 5); in UNIX_ONLY_TEST() 109 REPORTER_ASSERT(reporter, testVisitor.fTestRuns.size() == 5); in UNIX_ONLY_TEST() 111 REPORTER_ASSERT(reporter, testVisitor.fTestLines[0].trailingSpaces.width() == 0); in UNIX_ONLY_TEST() 112 REPORTER_ASSERT(reporter, testVisitor.fTestLines[1].trailingSpaces.width() == 4); in UNIX_ONLY_TEST() 113 REPORTER_ASSERT(reporter, testVisitor.fTestLines[2].trailingSpaces.width() == 6); in UNIX_ONLY_TEST() 114 REPORTER_ASSERT(reporter, testVisitor.fTestLines[3].trailingSpaces.width() == 1); in UNIX_ONLY_TEST() 115 REPORTER_ASSERT(reporter, testVisitor.fTestLines[4].trailingSpaces.width() == 0); in UNIX_ONLY_TEST() 120 REPORTER_ASSERT(reporter, testVisitor.fTestLines[0].lineText.width() == break1); in UNIX_ONLY_TEST() 121 REPORTER_ASSERT(reporter, testVisito in UNIX_ONLY_TEST() [all...] |