37 doc->beginPage(612.0f, 792.0f);
40 static const char* expectations[] = {
46 "/Producer (Skia/PDF ",
50 const uint8_t* bytes =
data->bytes();
51 for (
const char* expectation : expectations) {
52 size_t len = strlen(expectation);
55 for (
size_t i = 0; i <
N; ++i) {
56 if (0 == memcmp(bytes + i, expectation, len)) {
62 ERRORF(r,
"expectation missing: '%s'.", expectation);
#define DEF_TEST(name, reporter)
#define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER)
void GetDateTime(SkPDF::DateTime *)
SK_API sk_sp< SkDocument > MakeDocument(SkWStream *stream, const Metadata &metadata)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data