Searched refs:ArchiveHelper (Results 1 – 5 of 5) sorted by relevance
78 TEST(utils, ArchiveHelper) { in TEST() argument79 std::unique_ptr<ArchiveHelper> ahelper = ArchiveHelper::CreateInstance(GetTestData(APK_FILE)); in TEST()99 ASSERT_FALSE(ArchiveHelper::CreateInstance(GetTestData(ELF_FILE))); in TEST()100 ASSERT_FALSE(ArchiveHelper::CreateInstance("/dev/zero")); in TEST()
72 class ArchiveHelper {74 static std::unique_ptr<ArchiveHelper> CreateInstance(const std::string& filename);75 ~ArchiveHelper();83 ArchiveHelper(ZipArchiveHandle handle, const std::string& filename) in ArchiveHelper() function89 DISALLOW_COPY_AND_ASSIGN(ArchiveHelper);
76 std::unique_ptr<ArchiveHelper> ArchiveHelper::CreateInstance(const std::string& filename) { in CreateInstance()99 return std::unique_ptr<ArchiveHelper>(new ArchiveHelper(handle, filename)); in CreateInstance()102 ArchiveHelper::~ArchiveHelper() { in ~ArchiveHelper()106 bool ArchiveHelper::IterateEntries( in IterateEntries()130 bool ArchiveHelper::FindEntry(const std::string& name, ZipEntry* entry) { in FindEntry()139 bool ArchiveHelper::GetEntryData(ZipEntry& entry, std::vector<uint8_t>* data) { in GetEntryData()148 int ArchiveHelper::GetFd() { in GetFd()
72 std::unique_ptr<ArchiveHelper> ahelper = ArchiveHelper::CreateInstance(apk_path); in FindElfInApkByOffsetWithoutCache()114 std::unique_ptr<ArchiveHelper> ahelper = ArchiveHelper::CreateInstance(apk_path); in FindElfInApkByNameWithoutCache()
429 std::unique_ptr<ArchiveHelper> ahelper = ArchiveHelper::CreateInstance(std::get<1>(tuple)); in LoadSymbols()