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/SurfaceTest.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/SurfaceTest.cpp')
-rw-r--r-- | tests/SurfaceTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index 9827bcf913..471953b373 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp @@ -856,14 +856,14 @@ static void test_surface_creation_and_snapshot_with_color_space( (f16Support || kRGBA_F16_SkColorType != testConfig.fColorType); auto surface(surfaceMaker(info)); - REPORTER_ASSERT_MESSAGE(reporter, SkToBool(surface) == shouldWork, fullTestName.c_str()); + REPORTER_ASSERT(reporter, SkToBool(surface) == shouldWork, fullTestName.c_str()); if (shouldWork && surface) { sk_sp<SkImage> image(surface->makeImageSnapshot()); - REPORTER_ASSERT_MESSAGE(reporter, image, testConfig.fDescription); + REPORTER_ASSERT(reporter, image, testConfig.fDescription); SkColorSpace* imageColorSpace = as_IB(image)->onImageInfo().colorSpace(); - REPORTER_ASSERT_MESSAGE(reporter, imageColorSpace == testConfig.fColorSpace.get(), - fullTestName.c_str()); + REPORTER_ASSERT(reporter, imageColorSpace == testConfig.fColorSpace.get(), + fullTestName.c_str()); } } } |