Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

54 static void test_gif_data_no_colormap(skiatest::Reporter* r,
67 static void test_gif_data(skiatest::Reporter* r, void* data, size_t size) {
86 static void test_gif_data_dims(skiatest::Reporter* r, void* data, size_t size, int width,
95 static void test_interlaced_gif_data(skiatest::Reporter* r,
127 static void test_gif_data_short(skiatest::Reporter* r,
151 DEF_TEST(Gif, reporter) {
153 test_gif_data(reporter, static_cast<void *>(gGIFData), sizeof(gGIFData));
154 test_interlaced_gif_data(reporter, static_cast<void *>(gInterlacedGIF),
161 test_gif_data(reporter, static_cast<void *>(badData), sizeof(gGIFData));
166 test_gif_data(reporter, static_cast<void *>(badData), sizeof(gGIFData));
171 test_gif_data_dims(reporter, static_cast<void *>(badData), sizeof(gGIFData), 4, 3);
175 test_gif_data_dims(reporter, static_cast<void *>(badData), sizeof(gGIFData), 3, 4);
180 test_gif_data_dims(reporter, static_cast<void *>(badData), sizeof(gGIFData), 3 + 0xFFFF, 3);
185 test_gif_data_dims(reporter, static_cast<void *>(badData), sizeof(gGIFData), 3, 3 + 0xFFFF);
187 test_gif_data_no_colormap(reporter, static_cast<void *>(gGIFDataNoColormap),
193 test_gif_data_no_colormap(reporter, static_cast<void *>(gGIFDataNoColormap), 31);
199 REPORTER_ASSERT(reporter, codec);
204 REPORTER_ASSERT(reporter, SkCodec::kSuccess == codec->startIncrementalDecode(
206 REPORTER_ASSERT(reporter, SkCodec::kSuccess == codec->incrementalDecode());
207 REPORTER_ASSERT(reporter, bm.width() == 1);
208 REPORTER_ASSERT(reporter, bm.height() == 1);
209 REPORTER_ASSERT(reporter, !(bm.empty()));
211 REPORTER_ASSERT(reporter, bm.getColor(0, 0) == 0x00000000);
217 test_gif_data_short(reporter, static_cast<void *>(gGIFData), 80);
220 test_interlaced_gif_data(reporter, static_cast<void *>(gInterlacedGIF),