#include "third_party/blink/renderer/platform/image-decoders/bmp/bmp_image_decoder.h"
#include <memory>
#include <string>
#include <tuple>
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "build/buildflag.h"
#include "build/chromecast_buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/image-decoders/image_decoder_base_test.h"
#include "third_party/blink/renderer/platform/image-decoders/image_decoder_test_helpers.h"
#include "third_party/blink/renderer/platform/image-decoders/png/png_image_decoder.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
#include "third_party/skia/include/core/SkAlphaType.h"
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
(BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CASTOS))
#include "ui/base/test/skia_gold_matching_algorithm.h"
#include "ui/base/test/skia_gold_pixel_diff.h"
#endif
namespace blink {
namespace {
std::unique_ptr<ImageDecoder> CreateBMPDecoder() { … }
}
TEST(BMPImageDecoderTest, isSizeAvailable) { … }
TEST(BMPImageDecoderTest, parseAndDecode) { … }
TEST(BMPImageDecoderTest, emptyImage) { … }
TEST(BMPImageDecoderTest, int32MinHeight) { … }
TEST(BMPImageDecoderTest, crbug752898) { … }
TEST(BMPImageDecoderTest, invalidBitmapOffset) { … }
TEST(BMPImageDecoderTest, allowEOFWhenPastEndOfImage) { … }
BMPSuiteEntry;
class BMPImageDecoderTest : public testing::TestWithParam<BMPSuiteEntry> { … };
TEST_P(BMPImageDecoderTest, VerifyBMPSuiteImage) { … }
INSTANTIATE_TEST_SUITE_P(…);
class BMPImageDecoderCorpusTest : public ImageDecoderBaseTest { … };
TEST_F(BMPImageDecoderCorpusTest, DecodingFast) { … }
#if defined(THREAD_SANITIZER)
#define MAYBE_DecodingSlow …
#else
#define MAYBE_DecodingSlow …
#endif
TEST_F(BMPImageDecoderCorpusTest, MAYBE_DecodingSlow) { … }
}