aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ImageFilterTest.cpp
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2016-04-11 11:58:39 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-11 11:58:39 -0700
commit21a465d7f4c5e639044e79971aeaa1194fc73078 (patch)
tree629aefe656a77e5935b655707f2c75f2963d6530 /tests/ImageFilterTest.cpp
parent1f50acff0dc09e50cc207846508d8e6459334b2a (diff)
Ensure all image filter tests have "ImageFilter" somewhere in the name.
This is for convenience, so that running out/Release/dm --match ImageFilter runs them all. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1879553004 Review URL: https://codereview.chromium.org/1879553004
Diffstat (limited to 'tests/ImageFilterTest.cpp')
-rw-r--r--tests/ImageFilterTest.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp
index 81f8a99938..a89cd4f609 100644
--- a/tests/ImageFilterTest.cpp
+++ b/tests/ImageFilterTest.cpp
@@ -661,12 +661,12 @@ static void run_gpu_test(skiatest::Reporter* reporter,
}
#endif
-DEF_TEST(TestNegativeBlurSigma, reporter) {
+DEF_TEST(ImageFilterNegativeBlurSigma, reporter) {
run_raster_test(reporter, 100, test_negative_blur_sigma);
}
#if SK_SUPPORT_GPU
-DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(TestNegativeBlurSigma_Gpu, reporter, ctxInfo) {
+DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ImageFilterNegativeBlurSigma_Gpu, reporter, ctxInfo) {
run_gpu_test(reporter, ctxInfo.fGrContext, 100, test_negative_blur_sigma);
}
#endif
@@ -707,12 +707,12 @@ static void test_zero_blur_sigma(SkImageFilter::Proxy* proxy,
}
}
-DEF_TEST(TestZeroBlurSigma, reporter) {
+DEF_TEST(ImageFilterZeroBlurSigma, reporter) {
run_raster_test(reporter, 100, test_zero_blur_sigma);
}
#if SK_SUPPORT_GPU
-DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(TestZeroBlurSigma_Gpu, reporter, ctxInfo) {
+DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ImageFilterZeroBlurSigma_Gpu, reporter, ctxInfo) {
run_gpu_test(reporter, ctxInfo.fGrContext, 100, test_zero_blur_sigma);
}
#endif
@@ -1298,7 +1298,7 @@ DEF_TEST(HugeBlurImageFilter, reporter) {
test_huge_blur(&canvas, reporter);
}
-DEF_TEST(MatrixConvolutionSanityTest, reporter) {
+DEF_TEST(ImageFilterMatrixConvolutionSanityTest, reporter) {
SkScalar kernel[1] = { 0 };
SkScalar gain = SK_Scalar1, bias = 0;
SkIPoint kernelOffset = SkIPoint::Make(1, 1);
@@ -1549,12 +1549,12 @@ static void test_partial_crop_rect(SkImageFilter::Proxy* proxy,
REPORTER_ASSERT(reporter, resultImg->height() == 30);
}
-DEF_TEST(PartialCropRect, reporter) {
+DEF_TEST(ImageFilterPartialCropRect, reporter) {
run_raster_test(reporter, 100, test_partial_crop_rect);
}
#if SK_SUPPORT_GPU
-DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(PartialCropRect_Gpu, reporter, ctxInfo) {
+DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ImageFilterPartialCropRect_Gpu, reporter, ctxInfo) {
run_gpu_test(reporter, ctxInfo.fGrContext, 100, test_partial_crop_rect);
}
#endif
@@ -1688,14 +1688,14 @@ static void test_large_blur_input(skiatest::Reporter* reporter, SkCanvas* canvas
canvas->drawRect(SkRect::MakeIWH(largeW, largeH), paint);
}
-DEF_TEST(BlurLargeImage, reporter) {
+DEF_TEST(ImageFilterBlurLargeImage, reporter) {
auto surface(SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(100, 100)));
test_large_blur_input(reporter, surface->getCanvas());
}
#if SK_SUPPORT_GPU
-DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(HugeBlurImageFilter_Gpu, reporter, ctxInfo) {
+DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ImageFilterHugeBlur_Gpu, reporter, ctxInfo) {
const SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType);
sk_sp<SkGpuDevice> device(SkGpuDevice::Create(ctxInfo.fGrContext,
@@ -1723,7 +1723,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(XfermodeImageFilterCroppedInput_Gpu, repor
test_xfermode_cropped_input(&canvas, reporter);
}
-DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(BlurLargeImage_Gpu, reporter, ctxInfo) {
+DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(ImageFilterBlurLargeImage_Gpu, reporter, ctxInfo) {
auto surface(SkSurface::MakeRenderTarget(ctxInfo.fGrContext, SkBudgeted::kYes,
SkImageInfo::MakeN32Premul(100, 100)));
test_large_blur_input(reporter, surface->getCanvas());