• Home
  • Raw
  • Download

Lines Matching full:page

36     ScopedEmbedderTestPage page = LoadScopedPage(1);  in TEST_F()  local
37 ASSERT_TRUE(page); in TEST_F()
40 EXPECT_TRUE(FPDFPage_GetMediaBox(page.get(), &mediabox.left, in TEST_F()
49 EXPECT_TRUE(FPDFPage_GetCropBox(page.get(), &cropbox.left, &cropbox.bottom, in TEST_F()
57 EXPECT_TRUE(FPDFPage_GetBleedBox(page.get(), &bleedbox.left, in TEST_F()
66 EXPECT_TRUE(FPDFPage_GetTrimBox(page.get(), &trimbox.left, &trimbox.bottom, in TEST_F()
74 EXPECT_TRUE(FPDFPage_GetArtBox(page.get(), &artbox.left, &artbox.bottom, in TEST_F()
83 ScopedEmbedderTestPage page = LoadScopedPage(3); in TEST_F() local
84 ASSERT_TRUE(page); in TEST_F()
87 EXPECT_TRUE(FPDFPage_GetMediaBox(page.get(), &mediabox.left, in TEST_F()
96 EXPECT_TRUE(FPDFPage_GetCropBox(page.get(), &cropbox.left, &cropbox.bottom, in TEST_F()
103 EXPECT_FALSE(FPDFPage_GetCropBox(page.get(), nullptr, &cropbox.bottom, in TEST_F()
105 EXPECT_FALSE(FPDFPage_GetCropBox(page.get(), &cropbox.left, nullptr, in TEST_F()
107 EXPECT_FALSE(FPDFPage_GetCropBox(page.get(), &cropbox.left, &cropbox.bottom, in TEST_F()
109 EXPECT_FALSE(FPDFPage_GetCropBox(page.get(), &cropbox.left, &cropbox.bottom, in TEST_F()
112 FPDFPage_GetCropBox(page.get(), nullptr, nullptr, nullptr, nullptr)); in TEST_F()
115 EXPECT_TRUE(FPDFPage_GetBleedBox(page.get(), &bleedbox.left, in TEST_F()
124 EXPECT_TRUE(FPDFPage_GetTrimBox(page.get(), &trimbox.left, &trimbox.bottom, in TEST_F()
132 EXPECT_TRUE(FPDFPage_GetArtBox(page.get(), &artbox.left, &artbox.bottom, in TEST_F()
145 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
146 ASSERT_TRUE(page); in TEST_F()
149 EXPECT_FALSE(FPDFPage_GetCropBox(page.get(), &cropbox.left, &cropbox.bottom, in TEST_F()
161 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
162 ASSERT_TRUE(page); in TEST_F()
165 EXPECT_FALSE(FPDFPage_GetBleedBox(page.get(), &bleedbox.left, in TEST_F()
178 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
179 ASSERT_TRUE(page); in TEST_F()
182 EXPECT_FALSE(FPDFPage_GetTrimBox(page.get(), &trimbox.left, &trimbox.bottom, in TEST_F()
194 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
195 ASSERT_TRUE(page); in TEST_F()
198 EXPECT_FALSE(FPDFPage_GetArtBox(page.get(), &artbox.left, &artbox.bottom, in TEST_F()
215 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
216 ASSERT_TRUE(page); in TEST_F()
219 // Render the page as is. in TEST_F()
221 EXPECT_FALSE(FPDFPage_GetCropBox(page.get(), &cropbox.left, in TEST_F()
224 const int page_width = static_cast<int>(FPDF_GetPageWidth(page.get())); in TEST_F()
225 const int page_height = static_cast<int>(FPDF_GetPageHeight(page.get())); in TEST_F()
228 ScopedFPDFBitmap bitmap = RenderLoadedPage(page.get()); in TEST_F()
233 FPDFPage_SetCropBox(page.get(), 10, 20, 100, 150); in TEST_F()
236 // Render the page after setting the CropBox. in TEST_F()
240 EXPECT_TRUE(FPDFPage_GetCropBox(page.get(), &cropbox.left, in TEST_F()
247 const int page_width = static_cast<int>(FPDF_GetPageWidth(page.get())); in TEST_F()
248 const int page_height = static_cast<int>(FPDF_GetPageHeight(page.get())); in TEST_F()
251 ScopedFPDFBitmap bitmap = RenderLoadedPage(page.get()); in TEST_F()
293 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
294 ASSERT_TRUE(page); in TEST_F()
297 // Render the page as is. in TEST_F()
299 EXPECT_FALSE(FPDFPage_GetMediaBox(page.get(), &mediabox.left, in TEST_F()
302 const int page_width = static_cast<int>(FPDF_GetPageWidth(page.get())); in TEST_F()
303 const int page_height = static_cast<int>(FPDF_GetPageHeight(page.get())); in TEST_F()
306 ScopedFPDFBitmap bitmap = RenderLoadedPage(page.get()); in TEST_F()
311 FPDFPage_SetMediaBox(page.get(), 20, 30, 100, 150); in TEST_F()
314 // Render the page after setting the MediaBox. in TEST_F()
318 EXPECT_TRUE(FPDFPage_GetMediaBox(page.get(), &mediabox.left, in TEST_F()
325 const int page_width = static_cast<int>(FPDF_GetPageWidth(page.get())); in TEST_F()
326 const int page_height = static_cast<int>(FPDF_GetPageHeight(page.get())); in TEST_F()
329 ScopedFPDFBitmap bitmap = RenderLoadedPage(page.get()); in TEST_F()
367 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
368 ASSERT_TRUE(page); in TEST_F()
377 FPDFPage_InsertClipPath(page.get(), clip.get()); in TEST_F()
379 // TODO(tsepez): test how inserting path affects page rendering. in TEST_F()
388 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
389 ASSERT_TRUE(page); in TEST_F()
395 EXPECT_FALSE(FPDFPage_TransFormWithClip(page.get(), nullptr, nullptr)); in TEST_F()
396 EXPECT_TRUE(FPDFPage_TransFormWithClip(page.get(), &half_matrix, nullptr)); in TEST_F()
397 EXPECT_TRUE(FPDFPage_TransFormWithClip(page.get(), nullptr, &clip_rect)); in TEST_F()
398 EXPECT_TRUE(FPDFPage_TransFormWithClip(page.get(), &half_matrix, &clip_rect)); in TEST_F()
407 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
408 ASSERT_TRUE(page); in TEST_F()
410 EXPECT_TRUE(FPDFPage_TransFormWithClip(page.get(), &half_matrix, nullptr)); in TEST_F()
411 EXPECT_TRUE(FPDFPage_TransFormWithClip(page.get(), nullptr, &clip_rect)); in TEST_F()
412 EXPECT_TRUE(FPDFPage_TransFormWithClip(page.get(), &half_matrix, &clip_rect)); in TEST_F()
418 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
419 ASSERT_TRUE(page); in TEST_F()
422 // Render the page as is. in TEST_F()
423 const int page_width = static_cast<int>(FPDF_GetPageWidth(page.get())); in TEST_F()
424 const int page_height = static_cast<int>(FPDF_GetPageHeight(page.get())); in TEST_F()
427 ScopedFPDFBitmap bitmap = RenderLoadedPage(page.get()); in TEST_F()
433 // Render the page after transforming. in TEST_F()
440 FPDFPage_TransFormWithClip(page.get(), &half_matrix, nullptr)); in TEST_F()
441 const int page_width = static_cast<int>(FPDF_GetPageWidth(page.get())); in TEST_F()
442 const int page_height = static_cast<int>(FPDF_GetPageHeight(page.get())); in TEST_F()
445 ScopedFPDFBitmap bitmap = RenderLoadedPage(page.get()); in TEST_F()
477 ScopedEmbedderTestPage page = LoadScopedPage(0); in TEST_F() local
478 ASSERT_TRUE(page); in TEST_F()
481 // Render the page as is. in TEST_F()
482 const int page_width = static_cast<int>(FPDF_GetPageWidth(page.get())); in TEST_F()
483 const int page_height = static_cast<int>(FPDF_GetPageHeight(page.get())); in TEST_F()
486 ScopedFPDFBitmap bitmap = RenderLoadedPage(page.get()); in TEST_F()
492 // Render the page after transforming. in TEST_F()
499 FPDFPage_TransFormWithClip(page.get(), &half_matrix, nullptr)); in TEST_F()
500 const int page_width = static_cast<int>(FPDF_GetPageWidth(page.get())); in TEST_F()
501 const int page_height = static_cast<int>(FPDF_GetPageHeight(page.get())); in TEST_F()
504 ScopedFPDFBitmap bitmap = RenderLoadedPage(page.get()); in TEST_F()