Home | History | Annotate | Download | only in test

Lines Matching refs:trim

255   fprintf(stderr, "read - trim = ");
256 for (int32_t trim = 0; trim < (rfd->Length() / 2) + 1;
257 trim += (rfd->Length() / 21) + 1) {
258 fprintf(stderr, "%d ", trim);
259 int32_t length = rfd->Length() - 2 * trim;
261 slice.Attach(down_cast<ReadableFontData*>(rfd->Slice(trim, length)));
262 EXPECT_TRUE(ReadComparison(trim, length, rfd, slice));
268 fprintf(stderr, "write - trim = ");
269 for (int32_t trim = 0; trim < (rfd->Length() / 2) + 1;
270 trim += (rfd->Length() / 21) + 1) {
271 fprintf(stderr, "%d ", trim);
272 int32_t length = rfd->Length() - 2 * trim;
277 w_slice.Attach(down_cast<WritableFontData*>(wfd->Slice(trim, length)));
278 r_slice.Attach(down_cast<ReadableFontData*>(rfd->Slice(trim, length)));
280 EXPECT_TRUE(ReadComparison(trim, length, rfd, w_slice));
286 w_slice.Attach(down_cast<WritableFontData*>(wfd->Slice(trim, length)));
287 r_slice.Attach(down_cast<ReadableFontData*>(rfd->Slice(trim, length)));
289 EXPECT_TRUE(ReadComparison(trim, length, rfd, w_slice));
294 w_slice.Attach(down_cast<WritableFontData*>(wfd->Slice(trim, length)));
295 r_slice.Attach(down_cast<ReadableFontData*>(rfd->Slice(trim, length)));
297 EXPECT_TRUE(ReadComparison(trim, length, rfd, w_slice));