• Home
  • Raw
  • Download

Lines Matching refs:FileEnumerator

26 const std::vector<FileEnumerator::FolderSearchPolicy> kFolderSearchPolicies{
27 FileEnumerator::FolderSearchPolicy::MATCH_ONLY,
28 FileEnumerator::FolderSearchPolicy::ALL};
35 FileEnumerator::FolderSearchPolicy folder_search_policy) { in RunEnumerator()
37 FileEnumerator enumerator(root_path, recursive, file_type, pattern, in RunEnumerator()
50 TEST(FileEnumerator, NotExistingPath) { in TEST() argument
56 path, true, FileEnumerator::FILES & FileEnumerator::DIRECTORIES, in TEST()
62 TEST(FileEnumerator, EmptyFolder) { in TEST() argument
69 FileEnumerator::FILES & FileEnumerator::DIRECTORIES, in TEST()
75 TEST(FileEnumerator, SingleFileInFolderForFileSearch) { in TEST() argument
85 temp_dir.GetPath(), true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
90 TEST(FileEnumerator, SingleFileInFolderForDirSearch) { in TEST() argument
98 const auto files = RunEnumerator(path, true, FileEnumerator::DIRECTORIES, in TEST()
104 TEST(FileEnumerator, SingleFileInFolderWithFiltering) { in TEST() argument
113 auto files = RunEnumerator(path, true, FileEnumerator::FILES, in TEST()
117 files = RunEnumerator(path, true, FileEnumerator::FILES, in TEST()
123 TEST(FileEnumerator, TwoFilesInFolder) { in TEST() argument
134 auto files = RunEnumerator(path, true, FileEnumerator::FILES, in TEST()
138 files = RunEnumerator(path, true, FileEnumerator::FILES, in TEST()
142 files = RunEnumerator(path, true, FileEnumerator::FILES, in TEST()
147 RunEnumerator(path, true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
152 TEST(FileEnumerator, SingleFolderInFolderForFileSearch) { in TEST() argument
163 RunEnumerator(path, true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
168 TEST(FileEnumerator, SingleFolderInFolderForDirSearch) { in TEST() argument
178 const auto files = RunEnumerator(path, true, FileEnumerator::DIRECTORIES, in TEST()
184 TEST(FileEnumerator, TwoFoldersInFolder) { in TEST() argument
196 auto files = RunEnumerator(path, true, FileEnumerator::DIRECTORIES, in TEST()
200 files = RunEnumerator(path, true, FileEnumerator::DIRECTORIES, in TEST()
206 TEST(FileEnumerator, FolderAndFileInFolder) { in TEST() argument
219 RunEnumerator(path, true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
222 files = RunEnumerator(path, true, FileEnumerator::DIRECTORIES, in TEST()
227 FileEnumerator::FILES | FileEnumerator::DIRECTORIES, in TEST()
233 TEST(FileEnumerator, FilesInParentFolderAlwaysFirst) { in TEST() argument
248 RunEnumerator(path, true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
253 TEST(FileEnumerator, FileInSubfolder) { in TEST() argument
264 auto files = RunEnumerator(temp_dir.GetPath(), true, FileEnumerator::FILES, in TEST()
268 files = RunEnumerator(temp_dir.GetPath(), false, FileEnumerator::FILES, in TEST()
274 TEST(FileEnumerator, FilesInSubfoldersWithFiltering) { in TEST() argument
299 FileEnumerator::FILES | FileEnumerator::DIRECTORIES, in TEST()
301 FileEnumerator::FolderSearchPolicy::MATCH_ONLY); in TEST()
306 FileEnumerator::FILES | FileEnumerator::DIRECTORIES, in TEST()
308 FileEnumerator::FolderSearchPolicy::ALL); in TEST()