Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

30 static void test_empty_back_and_pop(skiatest::Reporter* reporter) {
39 REPORTER_ASSERT(reporter, recorder.empty());
43 REPORTER_ASSERT(reporter, i == *GrNEW_APPEND_TO_RECORDER(recorder,
46 REPORTER_ASSERT(reporter, i ==
51 REPORTER_ASSERT(reporter, !recorder.empty());
52 REPORTER_ASSERT(reporter, i == recorder.back());
56 REPORTER_ASSERT(reporter, !recorder.empty());
57 REPORTER_ASSERT(reporter, i-1 == recorder.back());
62 REPORTER_ASSERT(reporter, !recorder.empty());
64 REPORTER_ASSERT(reporter, recorder.empty());
88 static void test_extra_data(skiatest::Reporter* reporter) {
93 REPORTER_ASSERT(reporter, 100 == activeRecorderItems);
97 REPORTER_ASSERT(reporter, iter.next());
98 REPORTER_ASSERT(reporter, i == iter->fData);
100 REPORTER_ASSERT(reporter, i == iter->extraData()[j]);
103 REPORTER_ASSERT(reporter, !iter.next());
107 REPORTER_ASSERT(reporter, i == reverseIter->fData);
109 REPORTER_ASSERT(reporter, i == reverseIter->extraData()[j]);
111 REPORTER_ASSERT(reporter, reverseIter.previous() == !!i);
115 REPORTER_ASSERT(reporter, 0 == activeRecorderItems);
141 virtual void validate(skiatest::Reporter* reporter) const {
142 REPORTER_ASSERT(reporter, fMatrix.isIdentity());
155 virtual void validate(skiatest::Reporter* reporter) const {
156 Base::validate(reporter);
157 REPORTER_ASSERT(reporter, !strcmp("Lorem ipsum dolor sit amet", fString.c_str()));
170 virtual void validate(skiatest::Reporter* reporter) const {
171 Subclass::validate(reporter);
172 REPORTER_ASSERT(reporter, 1234 == fInt);
173 REPORTER_ASSERT(reporter, 1.234f == fFloat);
192 virtual void validate(skiatest::Reporter* reporter) const {
193 Base::validate(reporter);
196 REPORTER_ASSERT(reporter, ValueAt(i) == data[i]);
221 static void test_subclasses_iters(skiatest::Reporter*, Order&, Base::Recorder::Iter&,
223 static void test_subclasses(skiatest::Reporter* reporter) {
250 ERRORF(reporter, "Invalid class type");
254 REPORTER_ASSERT(reporter, 1000 == activeRecorderItems);
260 test_subclasses_iters(reporter, order, iter, reverseIter);
262 REPORTER_ASSERT(reporter, !iter.next());
266 static void test_subclasses_iters(skiatest::Reporter* reporter, Order& order,
275 REPORTER_ASSERT(reporter, iter.next());
276 REPORTER_ASSERT(reporter, classType == iter->getType());
277 iter->validate(reporter);
279 test_subclasses_iters(reporter, order, iter, reverseIter, i + 1);
281 REPORTER_ASSERT(reporter, classType == reverseIter->getType());
282 reverseIter->validate(reporter);
283 REPORTER_ASSERT(reporter, reverseIter.previous() == !!i);
286 DEF_GPUTEST(GrTRecorder, reporter, factory) {
287 test_empty_back_and_pop(reporter);
289 test_extra_data(reporter);
290 REPORTER_ASSERT(reporter, 0 == activeRecorderItems); // test_extra_data should call reset().
292 test_subclasses(reporter);
293 REPORTER_ASSERT(reporter, 0 == activeRecorderItems); // Ensure ~GrTRecorder invokes dtors.