Lines Matching defs:reporter
13 static void test_bigalloc(skiatest::Reporter* reporter) {
19 REPORTER_ASSERT(reporter, !bm.tryAllocPixels(info));
22 REPORTER_ASSERT(reporter, !pr);
25 static void test_allocpixels(skiatest::Reporter* reporter) {
33 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
35 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
38 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
41 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
43 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
46 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
50 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
53 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
57 REPORTER_ASSERT(reporter, !success);
58 REPORTER_ASSERT(reporter, bm.isNull());
61 static void test_bigwidth(skiatest::Reporter* reporter) {
66 REPORTER_ASSERT(reporter, bm.setInfo(info));
67 REPORTER_ASSERT(reporter, bm.setInfo(info.makeColorType(kRGB_565_SkColorType)));
75 REPORTER_ASSERT(reporter, !bm.setInfo(info.makeColorType(kN32_SkColorType)));
81 DEF_TEST(Bitmap, reporter) {
87 REPORTER_ASSERT(reporter, setConf);
91 REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty());
95 test_bigwidth(reporter);
96 test_allocpixels(reporter);
97 test_bigalloc(reporter);