#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/platform/image-decoders/gif/gif_image_decoder.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/web_data.h"
#include "third_party/blink/renderer/platform/image-decoders/image_decoder_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace blink {
namespace {
const char kWebTestsResourcesDir[] = …;
std::unique_ptr<ImageDecoder> CreateDecoder() { … }
void TestRepetitionCount(const char* dir,
const char* file,
int expected_repetition_count) { … }
}
TEST(GIFImageDecoderTest, decodeTwoFrames) { … }
TEST(GIFImageDecoderTest, crbug779261) { … }
TEST(GIFImageDecoderTest, parseAndDecode) { … }
TEST(GIFImageDecoderTest, parseByteByByte) { … }
TEST(GIFImageDecoderTest, parseAndDecodeByteByByte) { … }
TEST(GIFImageDecoderTest, brokenSecondFrame) { … }
TEST(GIFImageDecoderTest, progressiveDecode) { … }
TEST(GIFImageDecoderTest, allDataReceivedTruncation) { … }
TEST(GIFImageDecoderTest, frameIsComplete) { … }
TEST(GIFImageDecoderTest, frameIsCompleteLoading) { … }
TEST(GIFImageDecoderTest, badTerminator) { … }
TEST(GIFImageDecoderTest, updateRequiredPreviousFrameAfterFirstDecode) { … }
TEST(GIFImageDecoderTest, randomFrameDecode) { … }
TEST(GIFImageDecoderTest, randomDecodeAfterClearFrameBufferCache) { … }
TEST(GIFImageDecoderTest, badInitialCode) { … }
TEST(GIFImageDecoderTest, badCode) { … }
TEST(GIFImageDecoderTest, invalidDisposalMethod) { … }
TEST(GIFImageDecoderTest, firstFrameHasGreaterSizeThanScreenSize) { … }
TEST(GIFImageDecoderTest, verifyRepetitionCount) { … }
TEST(GIFImageDecoderTest, repetitionCountChangesWhenSeen) { … }
TEST(GIFImageDecoderTest, bitmapAlphaType) { … }
namespace {
class Allocator final : public SkBitmap::Allocator { … };
}
TEST(GIFImageDecoderTest, externalAllocator) { … }
TEST(GIFImageDecoderTest, recursiveDecodeFailure) { … }
TEST(GIFImageDecoderTest, errorFrame) { … }
}