• Home
  • Raw
  • Download

Lines Matching full:files

5 #include "base/files/file_enumerator.h"
11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h"
13 #include "base/files/scoped_temp_dir.h"
55 const auto files = RunEnumerator( in TEST() local
56 path, true, FileEnumerator::FILES & FileEnumerator::DIRECTORIES, in TEST()
58 EXPECT_THAT(files, IsEmpty()); in TEST()
67 const auto files = in TEST() local
69 FileEnumerator::FILES & FileEnumerator::DIRECTORIES, in TEST()
71 EXPECT_THAT(files, IsEmpty()); in TEST()
84 const auto files = RunEnumerator( in TEST() local
85 temp_dir.GetPath(), true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
86 EXPECT_THAT(files, ElementsAre(file)); in TEST()
98 const auto files = RunEnumerator(path, true, FileEnumerator::DIRECTORIES, in TEST() local
100 EXPECT_THAT(files, IsEmpty()); in TEST()
113 auto files = RunEnumerator(path, true, FileEnumerator::FILES, in TEST() local
115 EXPECT_THAT(files, ElementsAre(file)); in TEST()
117 files = RunEnumerator(path, true, FileEnumerator::FILES, in TEST()
119 EXPECT_THAT(files, IsEmpty()); in TEST()
134 auto files = RunEnumerator(path, true, FileEnumerator::FILES, in TEST() local
136 EXPECT_THAT(files, UnorderedElementsAre(foo_txt, bar_txt)); in TEST()
138 files = RunEnumerator(path, true, FileEnumerator::FILES, in TEST()
140 EXPECT_THAT(files, ElementsAre(foo_txt)); in TEST()
142 files = RunEnumerator(path, true, FileEnumerator::FILES, in TEST()
144 EXPECT_THAT(files, IsEmpty()); in TEST()
146 files = in TEST()
147 RunEnumerator(path, true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
148 EXPECT_THAT(files, UnorderedElementsAre(foo_txt, bar_txt)); in TEST()
162 const auto files = in TEST() local
163 RunEnumerator(path, true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
164 EXPECT_THAT(files, IsEmpty()); in TEST()
178 const auto files = RunEnumerator(path, true, FileEnumerator::DIRECTORIES, in TEST() local
180 EXPECT_THAT(files, ElementsAre(temp_subdir.GetPath())); in TEST()
196 auto files = RunEnumerator(path, true, FileEnumerator::DIRECTORIES, in TEST() local
198 EXPECT_THAT(files, UnorderedElementsAre(subdir_foo, subdir_bar)); in TEST()
200 files = RunEnumerator(path, true, FileEnumerator::DIRECTORIES, in TEST()
202 EXPECT_THAT(files, ElementsAre(subdir_foo)); in TEST()
218 auto files = in TEST() local
219 RunEnumerator(path, true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
220 EXPECT_THAT(files, ElementsAre(file)); in TEST()
222 files = RunEnumerator(path, true, FileEnumerator::DIRECTORIES, in TEST()
224 EXPECT_THAT(files, ElementsAre(temp_subdir.GetPath())); in TEST()
226 files = RunEnumerator(path, true, in TEST()
227 FileEnumerator::FILES | FileEnumerator::DIRECTORIES, in TEST()
229 EXPECT_THAT(files, UnorderedElementsAre(file, temp_subdir.GetPath())); in TEST()
247 const auto files = in TEST() local
248 RunEnumerator(path, true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
249 EXPECT_THAT(files, ElementsAre(foo_txt, bar_txt)); in TEST()
264 auto files = RunEnumerator(temp_dir.GetPath(), true, FileEnumerator::FILES, in TEST() local
266 EXPECT_THAT(files, ElementsAre(file)); in TEST()
268 files = RunEnumerator(temp_dir.GetPath(), false, FileEnumerator::FILES, in TEST()
270 EXPECT_THAT(files, IsEmpty()); in TEST()
297 auto files = in TEST() local
299 FileEnumerator::FILES | FileEnumerator::DIRECTORIES, in TEST()
302 EXPECT_THAT(files, in TEST()
305 files = RunEnumerator(temp_dir.GetPath(), true, in TEST()
306 FileEnumerator::FILES | FileEnumerator::DIRECTORIES, in TEST()
309 EXPECT_THAT(files, UnorderedElementsAre(subdir_foo, foo_foo, bar_foo)); in TEST()