Home
last modified time | relevance | path

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

/external/pdfium/core/fpdfapi/parser/
Dcpdf_security_handler_embeddertest.cpp70 FPDF_FILEACCESS file_access; in TEST_F() local
71 memset(&file_access, 0, sizeof(file_access)); in TEST_F()
72 file_access.m_FileLen = new_file.size(); in TEST_F()
73 file_access.m_GetBlock = GetBlockFromString; in TEST_F()
74 file_access.m_Param = &new_file; in TEST_F()
75 EXPECT_FALSE(FPDF_LoadCustomDocument(&file_access, nullptr)); in TEST_F()
Dcpdf_parser.h198 bool InitSyntaxParser(const RetainPtr<IFX_SeekableReadStream>& file_access);
Dcpdf_parser.cpp203 const RetainPtr<IFX_SeekableReadStream>& file_access) { in InitSyntaxParser() argument
204 const int32_t header_offset = GetHeaderOffset(file_access); in InitSyntaxParser()
207 if (file_access->GetSize() < header_offset + kPDFHeaderSize) in InitSyntaxParser()
210 m_pSyntax->InitParser(file_access, header_offset); in InitSyntaxParser()
/external/pdfium/fpdfsdk/
Dfpdf_dataavail_embeddertest.cpp57 FPDF_FILEACCESS* file_access() { return &file_access_; } in file_access() function in __anon600f286d0111::TestAsyncLoader
174 avail_ = FPDFAvail_Create(loader.file_avail(), loader.file_access()); in TEST_F()
189 avail_ = FPDFAvail_Create(loader.file_avail(), loader.file_access()); in TEST_F()
210 avail_ = FPDFAvail_Create(loader.file_avail(), loader.file_access()); in TEST_F()
218 EXPECT_GT(loader.file_access()->m_FileLen, in TEST_F()
228 EXPECT_GT(loader.file_access()->m_FileLen, loader.max_requested_bound()); in TEST_F()
237 EXPECT_GT(loader.file_access()->m_FileLen, in TEST_F()
249 avail_ = FPDFAvail_Create(loader.file_avail(), loader.file_access()); in TEST_F()
Dfpdfannot_embeddertest.cpp464 FPDF_FILEACCESS file_access; in TEST_F() local
465 memset(&file_access, 0, sizeof(file_access)); in TEST_F()
466 file_access.m_FileLen = new_file.size(); in TEST_F()
467 file_access.m_GetBlock = GetBlockFromString; in TEST_F()
468 file_access.m_Param = &new_file; in TEST_F()
469 FPDF_DOCUMENT new_doc = FPDF_LoadCustomDocument(&file_access, nullptr); in TEST_F()
/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.cc1375 FPDF_FILEACCESS file_access = {}; in RenderPdf() local
1376 file_access.m_FileLen = static_cast<unsigned long>(len); in RenderPdf()
1377 file_access.m_GetBlock = TestLoader::GetBlock; in RenderPdf()
1378 file_access.m_Param = &loader; in RenderPdf()
1390 pdf_avail.reset(FPDFAvail_Create(&file_avail, &file_access)); in RenderPdf()
1412 doc.reset(FPDF_LoadCustomDocument(&file_access, nullptr)); in RenderPdf()