Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

35 static void assert_equal(skiatest::Reporter* reporter, SkImage* a, SkImage* b, int error) {
36 REPORTER_ASSERT(reporter, a->width() == b->width());
37 REPORTER_ASSERT(reporter, a->height() == b->height());
43 REPORTER_ASSERT(reporter, a->readPixels(pmapA, 0, 0));
44 REPORTER_ASSERT(reporter, b->readPixels(pmapB, 0, 0));
52 ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d)", ca, cb, x, y);
57 ERRORF(reporter, "Expected 0x%08x +-%d but got 0x%08x at (%d, %d)",
87 DEF_GPUTEST(CrossContextImage_SameContext, reporter, /*factory*/) {
108 REPORTER_ASSERT(reporter, ccid != nullptr);
111 REPORTER_ASSERT(reporter, image != nullptr);
114 assert_equal(reporter, testImage.get(), image.get(),
120 DEF_GPUTEST(CrossContextImage_SharedContextSameThread, reporter, /*factory*/) {
140 REPORTER_ASSERT(reporter, ccid != nullptr);
151 REPORTER_ASSERT(reporter, image != nullptr);
159 REPORTER_ASSERT(reporter, resourceCountAfter == resourceCountBefore + 1);
160 REPORTER_ASSERT(reporter, resourceBytesAfter > resourceBytesBefore);
164 assert_equal(reporter, testImage.get(), image.get(),
187 DEF_GPUTEST(CrossContextImage_SharedContextOtherThread, reporter, /*factory*/) {
229 REPORTER_ASSERT(reporter, image != nullptr);
232 assert_equal(reporter, testImage.get(), image.get(),