This source file includes following definitions.
- CreateWebKitImageDecoder
- TEST_F
- TEST_F
#include "content/test/image_decoder_test.h"
#include "third_party/WebKit/public/web/WebImageDecoder.h"
class BMPImageDecoderTest : public ImageDecoderTest {
public:
BMPImageDecoderTest() : ImageDecoderTest("bmp") { }
protected:
virtual blink::WebImageDecoder* CreateWebKitImageDecoder() const OVERRIDE {
return new blink::WebImageDecoder(blink::WebImageDecoder::TypeBMP);
}
static const int64 kThresholdSize = 10240;
};
TEST_F(BMPImageDecoderTest, DecodingFast) {
TestDecoding(TEST_SMALLER, kThresholdSize);
}
#if defined(THREAD_SANITIZER)
#define MAYBE_DecodingSlow DISABLED_DecodingSlow
#else
#define MAYBE_DecodingSlow DecodingSlow
#endif
TEST_F(BMPImageDecoderTest, MAYBE_DecodingSlow) {
TestDecoding(TEST_BIGGER, kThresholdSize);
}