| Index: tests/CodecTest.cpp
|
| diff --git a/tests/CodecTest.cpp b/tests/CodecTest.cpp
|
| index 738e0cc91dd7e5da9128474718d414487e581415..38e78944bf0e5e7e9a7eada1f67a98d758d32617 100644
|
| --- a/tests/CodecTest.cpp
|
| +++ b/tests/CodecTest.cpp
|
| @@ -1278,9 +1278,14 @@ DEF_TEST(Codec_skipFullParse, r) {
|
| REPORTER_ASSERT(r, finalPosition > positionAfterThirdFrame);
|
|
|
| // There may be more data in the stream.
|
| - auto frameInfo = codec->getFrameInfo();
|
| - REPORTER_ASSERT(r, frameInfo.size() == 4);
|
| - REPORTER_ASSERT(r, stream->getPosition() >= finalPosition);
|
| + std::vector<SkCodec::FrameInfo> frameInfo;
|
| + const bool animated = codec->getFrameInfo(&frameInfo, nullptr);
|
| + if (animated) {
|
| + REPORTER_ASSERT(r, frameInfo.size() == 4);
|
| + REPORTER_ASSERT(r, stream->getPosition() >= finalPosition);
|
| + } else {
|
| + ERRORF(r, "Image should be animated!\n");
|
| + }
|
| }
|
|
|
| // Only rewinds up to a limit.
|
|
|