Searched refs:file_access (Results 1 – 8 of 8) sorted by relevance
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_security_handler_embeddertest.cpp | 70 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()
|
D | cpdf_parser.h | 198 bool InitSyntaxParser(const RetainPtr<IFX_SeekableReadStream>& file_access);
|
D | cpdf_parser.cpp | 203 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/ |
D | fpdf_dataavail_embeddertest.cpp | 57 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()
|
D | fpdfannot_embeddertest.cpp | 464 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/ |
D | fake_file_access.cpp | 77 FakeFileAccess::FakeFileAccess(FPDF_FILEACCESS* file_access) in FakeFileAccess() argument 78 : file_access_(file_access), in FakeFileAccess()
|
D | fake_file_access.h | 17 explicit FakeFileAccess(FPDF_FILEACCESS* file_access);
|
/external/pdfium/samples/ |
D | pdfium_test.cc | 1375 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()
|