Home
last modified time | relevance | path

Searched refs:entry_path (Results 1 – 3 of 3) sorted by relevance

/bionic/linker/
Dlinker_utils_test.cpp93 std::string entry_path; in TEST() local
95 ASSERT_FALSE(parse_zip_path("/not/a/zip/path/file.zip", &zip_path, &entry_path)); in TEST()
96 ASSERT_FALSE(parse_zip_path("/not/a/zip/path/file.zip!path/in/zip", &zip_path, &entry_path)); in TEST()
97 ASSERT_TRUE(parse_zip_path("/zip/path/file.zip!/path/in/zip", &zip_path, &entry_path)); in TEST()
99 ASSERT_EQ("path/in/zip", entry_path); in TEST()
101 ASSERT_TRUE(parse_zip_path("/zip/path/file2.zip!/", &zip_path, &entry_path)); in TEST()
103 ASSERT_EQ("", entry_path); in TEST()
Dlinker_utils.cpp140 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path) { in parse_zip_path() argument
167 *entry_path = &buf[separator - path + 2]; in parse_zip_path()
236 std::string entry_path; in resolve_path() local
237 if (parse_zip_path(normalized_path.c_str(), &zip_path, &entry_path)) { in resolve_path()
244 return std::string(resolved_path) + kZipFileSeparator + entry_path; in resolve_path()
Dlinker_utils.h41 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path);