Lines Matching defs:files

15 #include "base/files/file.h"
16 #include "base/files/file_enumerator.h"
17 #include "base/files/file_path.h"
18 #include "base/files/file_util.h"
19 #include "base/files/scoped_temp_dir.h"
47 base::FileEnumerator files(dir, true, type);
48 for (base::FilePath path = files.Next(); !path.empty(); path = files.Next()) {
54 EXPECT_EQ(base::File::FILE_OK, files.GetError());
159 std::vector<base::File>* const files) override {
160 DCHECK(files);
161 files->reserve(files->size() + paths.size());
166 files->emplace_back();
169 files->push_back(std::move(it->second));
177 std::vector<base::FilePath>* const files,
180 DCHECK(files);
187 for (const base::FilePath& file : it->second.files) {
189 files->push_back(file);
215 std::vector<base::FilePath> files, subdirs;
249 // Include a subset of files in |zip_file_list_| to test ZipFiles().
280 base::FileEnumerator files(
285 for (base::FilePath unzipped_entry_path = files.Next();
286 !unzipped_entry_path.empty(); unzipped_entry_path = files.Next()) {
305 EXPECT_EQ(base::File::FILE_OK, files.GetError());
439 // TODO(crbug.com/1296838) Also check the AES-encrypted files.
459 // TODO(crbug.com/1296838) Also check the AES-encrypted files.
480 // TODO(crbug.com/1296838) Also check the AES-encrypted files.
686 // All the files are extracted.
723 // All the files have been extracted.
982 // sequences are replaced with the character �. Nevertheless, the files are
1096 // test_mismatch_size.zip contains files with names from 0.txt to 7.txt with
1146 // Tests progress reporting while zipping files.
1164 EXPECT_GE(progress.files, last_progress.files);
1177 EXPECT_EQ(last_progress.files, 5);
1183 // Tests throttling of progress reporting while zipping files.
1201 EXPECT_GE(progress.files, last_progress.files);
1216 EXPECT_EQ(last_progress.files, 5);
1222 // Tests cancellation while zipping files.
1284 // Tests that files put inside a ZIP are effectively compressed.
1292 // Create some dummy source files.
1299 // Zip the source files.
1305 // Since the source files compress well, the destination ZIP file should be
1306 // smaller than the source files.
1345 // Tests that there is no 2GB or 4GB limits. Tests that big files can be zipped
1346 // (crbug.com/1207737) and that big ZIP files can be created
1351 // Because this test is dealing with big files, it tends to take a lot of disk
1356 // OS Fuchsia does not seem to support large files.