Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

23     class Reporter : public SkRefCnt {
25 SK_DECLARE_INST_COUNT(Reporter)
26 Reporter();
54 Reporter* getReporter() const { return fReporter; }
55 void setReporter(Reporter*);
69 virtual void onRun(Reporter*) = 0;
72 Reporter* fReporter;
99 DEF_TEST(TestName, reporter) {
101 REPORTER_ASSERT(reporter, x == 15);
103 REPORTER_ASSERT_MESSAGE(reporter, x == 15, "x should be 15");
106 ERRORF(reporter, "x should be 15, but is %d", x);
132 #define ERRORF(reporter, ...) \
137 (reporter)->reportFailed(desc); \
140 #define DEF_TEST(name, reporter) \
141 static void test_##name(skiatest::Reporter*); \
150 virtual void onRun(Reporter* r) SK_OVERRIDE { test_##name(r); } \
154 static void test_##name(skiatest::Reporter* reporter)
156 #define DEF_GPUTEST(name, reporter, factory) \
157 static void test_##name(skiatest::Reporter*, GrContextFactory*); \
166 virtual void onRun(Reporter* r) SK_OVERRIDE { \
172 static void test_##name(skiatest::Reporter* reporter, GrContextFactory* factory)