Home
last modified time | relevance | path

Searched refs:first_dir (Results 1 – 2 of 2) sorted by relevance

/system/apex/apexd/
Dapexd_utils_test.cpp71 TemporaryDir first_dir; in TEST() local
73 auto result = FindFirstExistingDirectory(first_dir.path, second_dir.path); in TEST()
75 ASSERT_EQ(*result, first_dir.path); in TEST()
79 TemporaryDir first_dir; in TEST() local
81 auto result = FindFirstExistingDirectory(first_dir.path, second_dir); in TEST()
83 ASSERT_EQ(*result, first_dir.path); in TEST()
87 auto first_dir = "/data/local/tmp/does/not/exist"; in TEST() local
89 auto result = FindFirstExistingDirectory(first_dir, second_dir.path); in TEST()
95 auto first_dir = "/data/local/tmp/does/not/exist"; in TEST() local
97 auto result = FindFirstExistingDirectory(first_dir, second_dir); in TEST()
[all …]
Dapexd_utils.h228 const std::string& first_dir, const std::string& second_dir) { in FindFirstExistingDirectory() argument
230 if (stat(first_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()
231 PLOG(WARNING) << "Failed to stat " << first_dir; in FindFirstExistingDirectory()
242 return first_dir; in FindFirstExistingDirectory()
244 LOG(WARNING) << first_dir << " is not a directory"; in FindFirstExistingDirectory()