Home
last modified time | relevance | path

Searched refs:file_access (Results 1 – 12 of 12) sorted by relevance

/external/pdfium/fpdfsdk/
Dfpdf_dataavail_embeddertest.cpp58 FPDF_FILEACCESS* file_access() { return &file_access_; } in file_access() function in __anon1f9940f00111::TestAsyncLoader
178 avail_ = FPDFAvail_Create(loader.file_avail(), loader.file_access()); in TEST_F()
192 avail_ = FPDFAvail_Create(loader.file_avail(), loader.file_access()); in TEST_F()
213 avail_ = FPDFAvail_Create(loader.file_avail(), loader.file_access()); in TEST_F()
221 EXPECT_GT(loader.file_access()->m_FileLen, in TEST_F()
231 EXPECT_GT(loader.file_access()->m_FileLen, loader.max_requested_bound()); in TEST_F()
240 EXPECT_GT(loader.file_access()->m_FileLen, in TEST_F()
251 avail_ = FPDFAvail_Create(loader.file_avail(), loader.file_access()); in TEST_F()
279 avail_ = FPDFAvail_Create(loader.file_avail(), loader.file_access()); in TEST_F()
308 avail_ = FPDFAvail_Create(loader.file_avail(), loader.file_access()); in TEST_F()
[all …]
Dfpdf_editimg.cpp64 FPDF_FILEACCESS* file_access, in LoadJpegHelper() argument
70 if (!file_access) in LoadJpegHelper()
81 RetainPtr<IFX_SeekableReadStream> pFile = MakeSeekableReadStream(file_access); in LoadJpegHelper()
109 FPDF_FILEACCESS* file_access) { in FPDFImageObj_LoadJpegFile() argument
110 return LoadJpegHelper(pages, count, image_object, file_access, false); in FPDFImageObj_LoadJpegFile()
117 FPDF_FILEACCESS* file_access) { in FPDFImageObj_LoadJpegFileInline() argument
118 return LoadJpegHelper(pages, count, image_object, file_access, true); in FPDFImageObj_LoadJpegFileInline()
Dfpdf_editimg_unittest.cpp82 FileAccessForTesting file_access("mona_lisa.jpg"); in TEST_F() local
85 FPDFImageObj_LoadJpegFile(&temp_page, 1, image.get(), &file_access)); in TEST_F()
101 FileAccessForTesting file_access("mona_lisa.jpg"); in TEST_F() local
104 &file_access)); in TEST_F()
Dfpdf_view_embeddertest.cpp425 FPDF_FILEACCESS file_access = {}; in TEST_F() local
426 file_access.m_FileLen = pdf_length; in TEST_F()
427 file_access.m_GetBlock = GetBlockFromString; in TEST_F()
428 file_access.m_Param = &file_contents_string; in TEST_F()
429 doc.reset(FPDF_LoadCustomDocument(&file_access, nullptr)); in TEST_F()
Dfpdf_annot_embeddertest.cpp683 FPDF_FILEACCESS file_access; in TEST_F() local
684 memset(&file_access, 0, sizeof(file_access)); in TEST_F()
685 file_access.m_FileLen = new_file.size(); in TEST_F()
686 file_access.m_GetBlock = GetBlockFromString; in TEST_F()
687 file_access.m_Param = &new_file; in TEST_F()
688 FPDF_DOCUMENT new_doc = FPDF_LoadCustomDocument(&file_access, nullptr); in TEST_F()
/external/pdfium/testing/fuzzers/
Dpdfium_fuzzer_helper.cc137 FPDF_FILEACCESS file_access; in RenderPdf() local
138 memset(&file_access, '\0', sizeof(file_access)); in RenderPdf()
139 file_access.m_FileLen = static_cast<unsigned long>(len); in RenderPdf()
140 file_access.m_GetBlock = FuzzerTestLoader::GetBlock; in RenderPdf()
141 file_access.m_Param = &loader; in RenderPdf()
153 ScopedFPDFAvail pdf_avail(FPDFAvail_Create(&file_avail, &file_access)); in RenderPdf()
174 doc.reset(FPDF_LoadCustomDocument(&file_access, nullptr)); in RenderPdf()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_security_handler_embeddertest.cpp184 FPDF_FILEACCESS file_access; in TEST_F() local
185 memset(&file_access, 0, sizeof(file_access)); in TEST_F()
186 file_access.m_FileLen = new_file.size(); in TEST_F()
187 file_access.m_GetBlock = GetBlockFromString; in TEST_F()
188 file_access.m_Param = &new_file; in TEST_F()
189 EXPECT_FALSE(FPDF_LoadCustomDocument(&file_access, nullptr)); in TEST_F()
/external/pdfium/testing/utils/
Dfile_util.cpp66 auto* file_access = static_cast<FileAccessForTesting*>(param); in SGetBlock() local
67 return file_access->GetBlockImpl(pos, pBuf, size); in SGetBlock()
/external/pdfium/testing/
Dfake_file_access.cpp77 FakeFileAccess::FakeFileAccess(FPDF_FILEACCESS* file_access) in FakeFileAccess() argument
78 : file_access_(file_access), in FakeFileAccess()
Dfake_file_access.h17 explicit FakeFileAccess(FPDF_FILEACCESS* file_access);
/external/pdfium/samples/
Dpdfium_test.cc822 FPDF_FILEACCESS file_access = {}; in RenderPdf() local
823 file_access.m_FileLen = static_cast<unsigned long>(len); in RenderPdf()
824 file_access.m_GetBlock = TestLoader::GetBlock; in RenderPdf()
825 file_access.m_Param = &loader; in RenderPdf()
836 ScopedFPDFAvail pdf_avail(FPDFAvail_Create(&file_avail, &file_access)); in RenderPdf()
869 doc.reset(FPDF_LoadCustomDocument(&file_access, password)); in RenderPdf()
/external/pdfium/public/
Dfpdf_edit.h535 FPDF_FILEACCESS* file_access);
557 FPDF_FILEACCESS* file_access);