Lines Matching refs:string
97 static bool write_version(const std::string& path, uint32_t version) { in write_version()
98 std::string content = android::base::StringPrintf("%d", version); in write_version()
102 static std::vector<std::string> resolve_paths(std::vector<std::string> paths) { in resolve_paths()
103 std::vector<std::string> resolved_paths; in resolve_paths()
109 const std::vector<std::string> kExpectedDefaultSearchPath = in run_linker_config_smoke_test()
110 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/vendor/lib" ARCH_SUFFIX }) : in run_linker_config_smoke_test()
111 std::vector<std::string>({ "/vendor/lib" ARCH_SUFFIX })); in run_linker_config_smoke_test()
113 const std::vector<std::string> kExpectedDefaultPermittedPath = in run_linker_config_smoke_test()
114 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/vendor" }) : in run_linker_config_smoke_test()
115 std::vector<std::string>({ "/vendor/lib" ARCH_SUFFIX })); in run_linker_config_smoke_test()
117 const std::vector<std::string> kExpectedSystemSearchPath = in run_linker_config_smoke_test()
118 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/system/lib" ARCH_SUFFIX }) : in run_linker_config_smoke_test()
119 std::vector<std::string>({ "/system/lib" ARCH_SUFFIX })); in run_linker_config_smoke_test()
121 const std::vector<std::string> kExpectedSystemPermittedPath = in run_linker_config_smoke_test()
122 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/system" }) : in run_linker_config_smoke_test()
123 std::vector<std::string>({ "/system/lib" ARCH_SUFFIX })); in run_linker_config_smoke_test()
125 const std::vector<std::string> kExpectedVndkSearchPath = in run_linker_config_smoke_test()
126 … resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/system/lib" ARCH_SUFFIX "/vndk"}) : in run_linker_config_smoke_test()
127 std::vector<std::string>({ "/system/lib" ARCH_SUFFIX "/vndk"})); in run_linker_config_smoke_test()
137 std::string executable_path = std::string(tmp_dir.path) + "/some-binary"; in run_linker_config_smoke_test()
138 std::string version_file = std::string(tmp_dir.path) + "/.version"; in run_linker_config_smoke_test()
147 std::string error_msg; in run_linker_config_smoke_test()
185 std::string ns_name = ns->name(); in run_linker_config_smoke_test()
219 std::vector<std::string>({"libz.so", "libyuv.so", "libtinyxml2.so"}), in run_linker_config_smoke_test()
253 std::string executable_path = std::string(tmp_dir.path) + "/some-binary"; in TEST()
256 std::string error_msg; in TEST()
263 ASSERT_EQ(std::string(tmp_file.path) + ":6: " in TEST()
274 std::string sub_dir = std::string(tmp_dir.path) + "/subdir"; in TEST()
280 std::string symlink_path = std::string(tmp_dir.path) + "/symlink"; in TEST()
286 std::string config_str = in TEST()
297 std::string executable_path = sub_dir + "/some-binary"; in TEST()
300 std::string error_msg; in TEST()