Lines Matching refs:aTestCase
22 static void CheckDecoderState(const ImageTestCase& aTestCase, in CheckDecoderState() argument
28 DecoderFactory::GetDecoderType(aTestCase.mMimeType)); in CheckDecoderState()
36 EXPECT_FALSE(bool(aTestCase.mFlags & TEST_CASE_HAS_ERROR)); in CheckDecoderState()
41 EXPECT_EQ(bool(aTestCase.mFlags & TEST_CASE_IS_TRANSPARENT), in CheckDecoderState()
43 EXPECT_EQ(bool(aTestCase.mFlags & TEST_CASE_IS_ANIMATED), in CheckDecoderState()
48 EXPECT_EQ(aTestCase.mSize.width, size.width); in CheckDecoderState()
49 EXPECT_EQ(aTestCase.mSize.height, size.height); in CheckDecoderState()
64 static void WithSingleChunkDecode(const ImageTestCase& aTestCase, in WithSingleChunkDecode() argument
71 DecoderType decoderType = DecoderFactory::GetDecoderType(aTestCase.mMimeType); in WithSingleChunkDecode()
74 aTestCase.mSurfaceFlags); in WithSingleChunkDecode()
86 static void CheckDecode(const ImageTestCase& aTestCase, in CheckDecode() argument
89 aTestCase, aSourceBuffer, Nothing(), [&](image::Decoder* aDecoder) { in CheckDecode()
90 CheckDecoderState(aTestCase, aDecoder, aTestCase.mSize); in CheckDecode()
94 static void CheckDownscaleDuringDecode(const ImageTestCase& aTestCase, in CheckDownscaleDuringDecode() argument
97 WithSingleChunkDecode(aTestCase, aSourceBuffer, Some(outputSize), in CheckDownscaleDuringDecode()
99 CheckDecoderState(aTestCase, aDecoder, outputSize); in CheckDownscaleDuringDecode()