Lines Matching refs:reporter
49 static void CheckObjectOutput(skiatest::Reporter* reporter, SkPDFObject* obj, in CheckObjectOutput() argument
58 REPORTER_ASSERT(reporter, directSize == expectedSize); in CheckObjectOutput()
62 REPORTER_ASSERT(reporter, directSize == buffer.getOffset()); in CheckObjectOutput()
63 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedData, in CheckObjectOutput()
76 REPORTER_ASSERT(reporter, in CheckObjectOutput()
81 REPORTER_ASSERT(reporter, indirectSize == buffer.getOffset()); in CheckObjectOutput()
82 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, header, headerLen)); in CheckObjectOutput()
83 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen, expectedData, in CheckObjectOutput()
85 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen + directSize, in CheckObjectOutput()
90 static void SimpleCheckObjectOutput(skiatest::Reporter* reporter, in SimpleCheckObjectOutput() argument
93 CheckObjectOutput(reporter, obj, expectedResult.c_str(), in SimpleCheckObjectOutput()
97 static void TestPDFStream(skiatest::Reporter* reporter) { in TestPDFStream() argument
105 reporter, stream.get(), in TestPDFStream()
108 SimpleCheckObjectOutput(reporter, stream.get(), in TestPDFStream()
132 CheckObjectOutput(reporter, stream.get(), in TestPDFStream()
143 CheckObjectOutput(reporter, stream.get(), in TestPDFStream()
149 static void TestCatalog(skiatest::Reporter* reporter) { in TestCatalog() argument
163 REPORTER_ASSERT(reporter, catalog.getObjectNumberSize(int1.get()) == 3); in TestCatalog()
164 REPORTER_ASSERT(reporter, catalog.getObjectNumberSize(int2.get()) == 3); in TestCatalog()
165 REPORTER_ASSERT(reporter, catalog.getObjectNumberSize(int3.get()) == 3); in TestCatalog()
173 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedResult, in TestCatalog()
177 static void TestObjectRef(skiatest::Reporter* reporter) { in TestObjectRef() argument
188 REPORTER_ASSERT(reporter, catalog.getObjectNumberSize(int1.get()) == 3); in TestObjectRef()
189 REPORTER_ASSERT(reporter, catalog.getObjectNumberSize(int2.get()) == 3); in TestObjectRef()
194 REPORTER_ASSERT(reporter, buffer.getOffset() == strlen(expectedResult)); in TestObjectRef()
195 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedResult, in TestObjectRef()
199 static void TestSubstitute(skiatest::Reporter* reporter) { in TestSubstitute() argument
225 reporter, in TestSubstitute()
230 REPORTER_ASSERT(reporter, buffer.getOffset() == strlen(expectedResult)); in TestSubstitute()
231 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedResult, in TestSubstitute()
235 static void TestPDFPrimitives(skiatest::Reporter* reporter) { in TestPDFPrimitives() argument
238 SimpleCheckObjectOutput(reporter, int42.get(), "42"); in TestPDFPrimitives()
242 SimpleCheckObjectOutput(reporter, realHalf.get(), "0.5"); in TestPDFPrimitives()
248 SimpleCheckObjectOutput(reporter, bigScalar.get(), "111000"); in TestPDFPrimitives()
250 SimpleCheckObjectOutput(reporter, bigScalar.get(), "110999.75"); in TestPDFPrimitives()
254 SimpleCheckObjectOutput(reporter, biggerScalar.get(), "50000000"); in TestPDFPrimitives()
258 SimpleCheckObjectOutput(reporter, smallestScalar.get(), "0.00001526"); in TestPDFPrimitives()
264 SimpleCheckObjectOutput(reporter, stringSimple.get(), in TestPDFPrimitives()
269 SimpleCheckObjectOutput(reporter, stringComplex.get(), in TestPDFPrimitives()
275 CheckObjectOutput(reporter, name.get(), expectedResult, in TestPDFPrimitives()
280 SimpleCheckObjectOutput(reporter, array.get(), "[]"); in TestPDFPrimitives()
282 SimpleCheckObjectOutput(reporter, array.get(), "[42]"); in TestPDFPrimitives()
284 SimpleCheckObjectOutput(reporter, array.get(), "[42 0.5]"); in TestPDFPrimitives()
288 SimpleCheckObjectOutput(reporter, array.get(), "[42 0.5 0]"); in TestPDFPrimitives()
292 SimpleCheckObjectOutput(reporter, array.get(), "[1 0.5 0]"); in TestPDFPrimitives()
296 SimpleCheckObjectOutput(reporter, dict.get(), "<<>>"); in TestPDFPrimitives()
300 SimpleCheckObjectOutput(reporter, dict.get(), "<</n1 42\n>>"); in TestPDFPrimitives()
307 SimpleCheckObjectOutput(reporter, dict.get(), in TestPDFPrimitives()
310 TestPDFStream(reporter); in TestPDFPrimitives()
312 TestCatalog(reporter); in TestPDFPrimitives()
314 TestObjectRef(reporter); in TestPDFPrimitives()
316 TestSubstitute(reporter); in TestPDFPrimitives()