163 {
165
167 pdfMetadata.
fTitle =
"test document";
168 pdfMetadata.
fCreation = {0, 1999, 12, 5, 31, 23, 59, 59};
169 pdfMetadata.
fPDFA =
true;
170
174 doc->close();
176
177 static const char* expectations[] = {
178 "sRGB IEC61966-2.1",
179 "<dc:title><rdf:Alt><rdf:li xml:lang=\"x-default\">test document",
180 "<xmp:CreateDate>1999-12-31T23:59:59+00:00</xmp:CreateDate>",
181 "/Subtype /XML",
182 "/CreationDate (D:19991231235959+00'00')>>",
183 };
184 for (const char* expectation : expectations) {
186 ERRORF(r,
"PDFA expectation missing: '%s'.", expectation);
187 }
188 }
189 pdfMetadata.
fProducer =
"phoney library";
190 pdfMetadata.
fPDFA =
true;
193 doc->close();
195
196 static const char* moreExpectations[] = {
197 "/Producer (phoney library)",
198 "<pdf:Producer>phoney library</pdf:Producer>",
199 };
200 for (const char* expectation : moreExpectations) {
202 ERRORF(r,
"PDFA expectation missing: '%s'.", expectation);
203 }
204 }
205}
static bool contains(const uint8_t *result, size_t size, const char expectation[])
constexpr SkColor SK_ColorRED
static const uint8_t buffer[]
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data