Home | History | Annotate | Download | only in tests

Lines Matching refs:reporter

16 static void test_push(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) {
21 REPORTER_ASSERT(reporter, nester->count() == count + 1);
29 static void test_pop(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) {
37 REPORTER_ASSERT(reporter, top == value);
39 REPORTER_ASSERT(reporter, newCount == count - 1);
42 REPORTER_ASSERT(reporter, newCount == value);
51 static void test_nest(skiatest::Reporter* reporter, SkTDStackNester<int>* nester, int inc) {
58 REPORTER_ASSERT(reporter, nester->count() == 0);
59 REPORTER_ASSERT(reporter, nester->nestingLevel() == initialNesting + 1);
62 test_push(reporter, nester);
66 REPORTER_ASSERT(reporter, nester->count() == initialCount);
67 REPORTER_ASSERT(reporter, nester->nestingLevel() == initialNesting);
77 static void test_stack_nester(skiatest::Reporter* reporter) {
80 REPORTER_ASSERT(reporter, 0 == count);
81 REPORTER_ASSERT(reporter, nester.nestingLevel() == 0);
82 REPORTER_ASSERT(reporter, nester.empty());
85 test_nest(reporter, &nester, 3);
93 test_nest(reporter, &nester, 7);
96 test_nest(reporter, &nester, 6);
98 test_push(reporter, &nester);
104 test_pop(reporter, &nester);
108 DEF_TEST(TDStackNester, reporter) {
109 test_stack_nester(reporter);