Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapexd_utils_test.cpp69 TemporaryDir first_dir; in TEST() local
71 auto result = FindFirstExistingDirectory(first_dir.path, second_dir.path); in TEST()
73 ASSERT_EQ(*result, first_dir.path); in TEST()
77 TemporaryDir first_dir; in TEST() local
79 auto result = FindFirstExistingDirectory(first_dir.path, second_dir); in TEST()
81 ASSERT_EQ(*result, first_dir.path); in TEST()
85 auto first_dir = "/data/local/tmp/does/not/exist"; in TEST() local
87 auto result = FindFirstExistingDirectory(first_dir, second_dir.path); in TEST()
93 auto first_dir = "/data/local/tmp/does/not/exist"; in TEST() local
95 auto result = FindFirstExistingDirectory(first_dir, second_dir); in TEST()
[all …]
Dapexd_utils.h286 const std::string& first_dir, const std::string& second_dir) { in FindFirstExistingDirectory() argument
288 if (stat(first_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()
289 PLOG(WARNING) << "Failed to stat " << first_dir; in FindFirstExistingDirectory()
300 return first_dir; in FindFirstExistingDirectory()
302 LOG(WARNING) << first_dir << " is not a directory"; in FindFirstExistingDirectory()