Home
last modified time | relevance | path

Searched refs:zip_file (Results 1 - 25 of 33) sorted by relevance

12

/third_party/skia/third_party/externals/zlib/google/
H A Dzip_writer.cc20 bool AddFileContentToZip(zipFile zip_file, in AddFileContentToZip() argument
29 if (zipWriteInFileInZip(zip_file, buf, num_bytes) != ZIP_OK) { in AddFileContentToZip()
40 bool OpenNewFileEntry(zipFile zip_file, in OpenNewFileEntry() argument
51 return zip::internal::ZipOpenNewFileInZip(zip_file, str_path, last_modified); in OpenNewFileEntry()
54 bool CloseNewFileEntry(zipFile zip_file) { in CloseNewFileEntry() argument
55 return zipCloseFileInZip(zip_file) == ZIP_OK; in CloseNewFileEntry()
58 bool AddFileEntryToZip(zipFile zip_file, in AddFileEntryToZip() argument
65 if (!OpenNewFileEntry(zip_file, path, /*is_directory=*/false, in AddFileEntryToZip()
69 bool success = AddFileContentToZip(zip_file, std::move(file), path); in AddFileEntryToZip()
70 if (!CloseNewFileEntry(zip_file)) in AddFileEntryToZip()
76 AddDirectoryEntryToZip(zipFile zip_file, const base::FilePath& path, base::Time last_modified) AddDirectoryEntryToZip() argument
93 zipFile zip_file = CreateWithFd() local
110 zipFile zip_file = internal::OpenForZipping(zip_file_path.AsUTF8Unsafe(), Create() local
120 ZipWriter(zipFile zip_file, const base::FilePath& root_dir, FileAccessor* file_accessor) ZipWriter() argument
[all...]
H A Dzip_unittest.cc252 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TestTimeStamp() local
278 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
279 ASSERT_TRUE(zip::Unzip(zip_file, out_dir)); in TestTimeStamp()
419 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
421 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
422 TestUnzipFile(zip_file, true); in TEST_F()
432 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
434 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
435 TestUnzipFile(zip_file, false); in TEST_F()
449 base::FilePath zip_file in TEST_F() local
536 base::FilePath zip_file; TEST_F() local
[all...]
H A Dzip.h150 // Unzip the contents of zip_file into dest_dir.
151 // For each file in zip_file, include it only if the callback |filter_cb|
156 bool UnzipWithFilterCallback(const base::FilePath& zip_file,
161 // Unzip the contents of zip_file, using the writers provided by writer_factory.
162 // For each file in zip_file, include it only if the callback |filter_cb|
170 bool UnzipWithFilterAndWriters(const base::PlatformFile& zip_file,
176 // Unzip the contents of zip_file into dest_dir.
177 bool Unzip(const base::FilePath& zip_file, const base::FilePath& dest_dir);
H A Dzip_writer.h33 // Creates a writer that will write a ZIP file to |zip_file_fd|/|zip_file|
41 static std::unique_ptr<ZipWriter> Create(const base::FilePath& zip_file,
53 ZipWriter(zipFile zip_file,
H A Dzip_internal.h64 bool ZipOpenNewFileInZip(zipFile zip_file,
/third_party/node/deps/v8/third_party/zlib/google/
H A Dzip_unittest.cc328 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TestTimeStamp() local
354 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
355 ASSERT_TRUE(zip::Unzip(zip_file, out_dir)); in TestTimeStamp()
1015 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
1017 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
1018 TestUnzipFile(zip_file, true); in TEST_F()
1026 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
1028 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
1029 TestUnzipFile(zip_file, false); in TEST_F()
1041 base::FilePath zip_file in TEST_F() local
1121 base::FilePath zip_file; TEST_F() local
1152 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); TEST_F() local
1189 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); TEST_F() local
1228 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); TEST_F() local
[all...]
H A Dzip_writer.cc132 zipFile zip_file = in CreateWithFd() local
135 if (!zip_file) { in CreateWithFd()
140 return std::unique_ptr<ZipWriter>(new ZipWriter(zip_file, file_accessor)); in CreateWithFd()
149 zipFile zip_file = internal::OpenForZipping(zip_file_path.AsUTF8Unsafe(), in Create() local
152 if (!zip_file) { in Create()
157 return std::unique_ptr<ZipWriter>(new ZipWriter(zip_file, file_accessor)); in Create()
160 ZipWriter::ZipWriter(zipFile zip_file, FileAccessor* file_accessor) in ZipWriter() argument
161 : zip_file_(zip_file), file_accessor_(file_accessor) {} in ZipWriter()
H A Dzip_writer.h36 // Creates a writer that will write a ZIP file to |zip_file_fd| or |zip_file|
44 static std::unique_ptr<ZipWriter> Create(const base::FilePath& zip_file,
87 // Takes ownership of |zip_file|.
88 ZipWriter(zipFile zip_file, FileAccessor* file_accessor);
H A Dzip.h196 // Unzips the contents of |zip_file|, using the writers provided by
198 bool Unzip(const base::PlatformFile& zip_file,
203 // Unzips the contents of |zip_file| into |dest_dir|.
207 bool Unzip(const base::FilePath& zip_file,
H A Dzip_internal.h70 bool ZipOpenNewFileInZip(zipFile zip_file,
H A Dzip_internal.cc354 bool ZipOpenNewFileInZip(zipFile zip_file, in ZipOpenNewFileInZip() argument
364 /*file=*/zip_file, in ZipOpenNewFileInZip()
/third_party/node/deps/zlib/google/
H A Dzip_unittest.cc328 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TestTimeStamp() local
354 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
355 ASSERT_TRUE(zip::Unzip(zip_file, out_dir)); in TestTimeStamp()
1015 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
1017 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
1018 TestUnzipFile(zip_file, true); in TEST_F()
1026 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
1028 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
1029 TestUnzipFile(zip_file, false); in TEST_F()
1041 base::FilePath zip_file in TEST_F() local
1121 base::FilePath zip_file; TEST_F() local
1152 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); TEST_F() local
1189 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); TEST_F() local
1228 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); TEST_F() local
[all...]
H A Dzip_writer.cc132 zipFile zip_file = in CreateWithFd() local
135 if (!zip_file) { in CreateWithFd()
140 return std::unique_ptr<ZipWriter>(new ZipWriter(zip_file, file_accessor)); in CreateWithFd()
149 zipFile zip_file = internal::OpenForZipping(zip_file_path.AsUTF8Unsafe(), in Create() local
152 if (!zip_file) { in Create()
157 return std::unique_ptr<ZipWriter>(new ZipWriter(zip_file, file_accessor)); in Create()
160 ZipWriter::ZipWriter(zipFile zip_file, FileAccessor* file_accessor) in ZipWriter() argument
161 : zip_file_(zip_file), file_accessor_(file_accessor) {} in ZipWriter()
H A Dzip_writer.h36 // Creates a writer that will write a ZIP file to |zip_file_fd| or |zip_file|
44 static std::unique_ptr<ZipWriter> Create(const base::FilePath& zip_file,
87 // Takes ownership of |zip_file|.
88 ZipWriter(zipFile zip_file, FileAccessor* file_accessor);
H A Dzip.h202 // Unzips the contents of |zip_file|, using the writers provided by
204 bool Unzip(const base::PlatformFile& zip_file,
209 // Unzips the contents of |zip_file| into |dest_dir|.
213 bool Unzip(const base::FilePath& zip_file,
H A Dzip_internal.h70 bool ZipOpenNewFileInZip(zipFile zip_file,
H A Dzip_internal.cc355 bool ZipOpenNewFileInZip(zipFile zip_file, in ZipOpenNewFileInZip() argument
365 /*file=*/zip_file, in ZipOpenNewFileInZip()
/third_party/python/Lib/test/
H A Dtest_pkgutil.py68 zip_file = os.path.join(self.dirname, zip)
69 z = zipfile.ZipFile(zip_file, 'w')
79 sys.path.insert(0, zip_file)
86 for moduleinfo in pkgutil.iter_modules([zip_file]):
104 zip_file = os.path.join(self.dirname, zip)
105 z = zipfile.ZipFile(zip_file, 'w')
114 sys.path.insert(0, zip_file)
121 for moduleinfo in pkgutil.iter_modules([Path(zip_file)]):
192 zip_file = os.path.join(self.dirname, zip)
193 z = zipfile.ZipFile(zip_file, '
[all...]
H A Dtest_zipimport_support.py130 with zipfile.ZipFile(zip_name, 'r') as zip_file:
132 zip_file.printdir()
/third_party/skia/infra/bots/
H A Dzip_utils.py28 def zip(target_dir, zip_file, to_skip=None): # pylint: disable=W0622
33 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z:
61 def unzip(zip_file, target_dir):
65 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
/third_party/skia/build/fuchsia/
H A Dupdate_fuchsia_sdk47 zip_file = tempfile.NamedTemporaryFile(suffix=pkg_suffix, delete=False)
49 zip_file.name + " -cache-dir " + cipd_cache_dir
50 unzip_cmd = "unzip -q " + zip_file.name + " -d " + output_dir
/third_party/python/Lib/test/support/
H A Dscript_helper.py231 with zipfile.ZipFile(zip_name, 'w') as zip_file:
240 zip_file.write(script_name, name_in_zip)
242 # with zipfile.ZipFile(zip_name, 'r') as zip_file:
244 # zip_file.printdir()
269 with zipfile.ZipFile(zip_name, 'w') as zip_file:
272 zip_file.write(init_name, init_name_in_zip)
273 zip_file.write(script_name, script_name_in_zip)
277 # with zipfile.ZipFile(zip_name, 'r') as zip_file:
279 # zip_file.printdir()
/third_party/skia/third_party/externals/dawn/scripts/
H A Dextract.py57 with zipfile.ZipFile(path, 'r') as zip_file:
58 for info in zip_file.infolist():
61 yield FileEntry(info.filename, None, zip_file.open(info))
/third_party/python/Lib/distutils/tests/
H A Dtest_sdist.py125 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
127 content = zip_file.namelist()
129 zip_file.close()
225 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
227 content = zip_file.namelist()
229 zip_file.close()
/third_party/python/PC/layout/
H A Dmain.py396 zip_file = _create_zip_file(ns)
419 zip_file.writestr(str(dest), content)
449 zip_file.write(src, str(dest))
464 zip_file.write(c, str(cdest))
475 if zip_file:
476 zip_file.close()

Completed in 13 milliseconds

12