diff options
author | Brian Salomon <bsalomon@google.com> | 2018-01-29 09:50:47 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-29 15:17:09 +0000 |
commit | 1c80e99dd5b23ebc3f10c768857a21887ab9f090 (patch) | |
tree | 491fa16698ffb07569718ef49cbb7ac8f9562374 /tests/ImageFilterTest.cpp | |
parent | 5effc281c70e111b3c5e9da9882c1981699af26f (diff) |
Allow printf style var args for messages in REPORTER_ASSERT.
Remove REPORTER_ASSERT_MESSAGE.
Change-Id: I6d00715901159c93e22d182fe24aac92b5fdbcf4
Reviewed-on: https://skia-review.googlesource.com/100361
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tests/ImageFilterTest.cpp')
-rw-r--r-- | tests/ImageFilterTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp index 8aa3190bcd..1d9b585128 100644 --- a/tests/ImageFilterTest.cpp +++ b/tests/ImageFilterTest.cpp @@ -570,8 +570,8 @@ static void test_crop_rects(skiatest::Reporter* reporter, SkImageFilter::OutputProperties noColorSpace(nullptr); SkImageFilter::Context ctx(SkMatrix::I(), SkIRect::MakeWH(100, 100), nullptr, noColorSpace); sk_sp<SkSpecialImage> resultImg(filter->filterImage(srcImg.get(), ctx, &offset)); - REPORTER_ASSERT_MESSAGE(reporter, resultImg, filters.getName(i)); - REPORTER_ASSERT_MESSAGE(reporter, offset.fX == 20 && offset.fY == 30, filters.getName(i)); + REPORTER_ASSERT(reporter, resultImg, filters.getName(i)); + REPORTER_ASSERT(reporter, offset.fX == 20 && offset.fY == 30, filters.getName(i)); } } @@ -776,7 +776,7 @@ DEF_TEST(ImageFilterDrawTiled, reporter) { untiledCanvas.flush(); tiledCanvas.flush(); if (!sk_tool_utils::equal_pixels(untiledResult, tiledResult, 1)) { - REPORTER_ASSERT_MESSAGE(reporter, false, filters.getName(i)); + REPORTER_ASSERT(reporter, false, filters.getName(i)); break; } } |