Searched refs:file_is_in_dir (Results 1 – 4 of 4) sorted by relevance
70 ASSERT_TRUE(file_is_in_dir("/foo/bar/file", "/foo/bar")); in TEST()71 ASSERT_FALSE(file_is_in_dir("/foo/bar/file", "/foo")); in TEST()73 ASSERT_FALSE(file_is_in_dir("/foo/bar/file", "/bar/foo")); in TEST()75 ASSERT_TRUE(file_is_in_dir("/file", "")); in TEST()76 ASSERT_FALSE(file_is_in_dir("/file", "/")); in TEST()
50 if (file_is_in_dir(file, dir)) { in is_accessible()56 if (file_is_in_dir(file, dir)) { in is_accessible()
38 bool file_is_in_dir(const std::string& file, const std::string& dir);
119 bool file_is_in_dir(const std::string& file, const std::string& dir) { in file_is_in_dir() function