#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/platform/graphics/deferred_image_decoder.h"
#include <memory>
#include "base/memory/scoped_refptr.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.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"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/core/SkSurface.h"
namespace blink {
namespace {
sk_sp<SkImage> CreateFrameAtIndex(DeferredImageDecoder* decoder, size_t index) { … }
}
static void MixImages(const char* file_name,
size_t bytes_for_first_frame,
size_t later_frame) { … }
TEST(DeferredImageDecoderTestWoPlatform, mixImagesGif) { … }
TEST(DeferredImageDecoderTestWoPlatform, mixImagesPng) { … }
TEST(DeferredImageDecoderTestWoPlatform, mixImagesJpg) { … }
TEST(DeferredImageDecoderTestWoPlatform, mixImagesWebp) { … }
TEST(DeferredImageDecoderTestWoPlatform, mixImagesBmp) { … }
TEST(DeferredImageDecoderTestWoPlatform, mixImagesIco) { … }
TEST(DeferredImageDecoderTestWoPlatform, fragmentedSignature) { … }
}