Searched refs:second_dir (Results 1 – 2 of 2) sorted by relevance
70 TemporaryDir second_dir; in TEST() local71 auto result = FindFirstExistingDirectory(first_dir.path, second_dir.path); in TEST()78 auto second_dir = "/data/local/tmp/does/not/exist"; in TEST() local79 auto result = FindFirstExistingDirectory(first_dir.path, second_dir); in TEST()86 TemporaryDir second_dir; in TEST() local87 auto result = FindFirstExistingDirectory(first_dir, second_dir.path); in TEST()89 ASSERT_EQ(*result, second_dir.path); in TEST()94 auto second_dir = "/data/local/tmp/also/does/not/exist"; in TEST() local95 auto result = FindFirstExistingDirectory(first_dir, second_dir); in TEST()101 TemporaryDir second_dir; in TEST() local[all …]
286 const std::string& first_dir, const std::string& second_dir) { in FindFirstExistingDirectory() argument290 if (stat(second_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()291 return android::base::ErrnoError() << "Failed to stat " << second_dir; in FindFirstExistingDirectory()294 return android::base::Error() << second_dir << " is not a directory"; in FindFirstExistingDirectory()296 return second_dir; in FindFirstExistingDirectory()304 if (stat(second_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()305 return android::base::ErrnoError() << "Failed to stat " << second_dir; in FindFirstExistingDirectory()308 return android::base::Error() << second_dir << " is not a directory"; in FindFirstExistingDirectory()310 return second_dir; in FindFirstExistingDirectory()