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/
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()
[all …]
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 = temp_dir.GetPath().AppendASCII("out_russian.zip"); in TEST_F() local
[all …]
Dzip.h156 bool UnzipWithFilterCallback(const base::FilePath& zip_file,
170 bool UnzipWithFilterAndWriters(const base::PlatformFile& zip_file,
177 bool Unzip(const base::FilePath& zip_file, const base::FilePath& dest_dir);
Dzip_writer.h41 static std::unique_ptr<ZipWriter> Create(const base::FilePath& zip_file,
53 ZipWriter(zipFile zip_file,
Dzip_internal.h64 bool ZipOpenNewFileInZip(zipFile zip_file,
Dzip_internal.cc348 bool ZipOpenNewFileInZip(zipFile zip_file, in ZipOpenNewFileInZip() argument
356 if (ZIP_OK != zipOpenNewFileInZip4(zip_file, // file in ZipOpenNewFileInZip()
/third_party/node/deps/zlib/google/
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()
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 = temp_dir.GetPath().AppendASCII("out_russian.zip"); in TEST_F() local
[all …]
Dzip_writer.h44 static std::unique_ptr<ZipWriter> Create(const base::FilePath& zip_file,
88 ZipWriter(zipFile zip_file, FileAccessor* file_accessor);
Dzip.h204 bool Unzip(const base::PlatformFile& zip_file,
213 bool Unzip(const base::FilePath& zip_file,
Dzip_internal.h70 bool ZipOpenNewFileInZip(zipFile zip_file,
/third_party/node/deps/v8/third_party/zlib/google/
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()
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 = temp_dir.GetPath().AppendASCII("out_russian.zip"); in TEST_F() local
[all …]
Dzip_writer.h44 static std::unique_ptr<ZipWriter> Create(const base::FilePath& zip_file,
88 ZipWriter(zipFile zip_file, FileAccessor* file_accessor);
Dzip.h198 bool Unzip(const base::PlatformFile& zip_file,
207 bool Unzip(const base::FilePath& zip_file,
Dzip_internal.h70 bool ZipOpenNewFileInZip(zipFile zip_file,
Dzip_internal.cc354 bool ZipOpenNewFileInZip(zipFile zip_file, in ZipOpenNewFileInZip() argument
364 /*file=*/zip_file, in ZipOpenNewFileInZip()
/third_party/skia/infra/bots/
Dzip_utils.py28 def zip(target_dir, zip_file, to_skip=None): # pylint: disable=W0622 argument
33 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z:
61 def unzip(zip_file, target_dir): argument
65 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
/third_party/python/Lib/test/support/
Dscript_helper.py224 with zipfile.ZipFile(zip_name, 'w') as zip_file:
233 zip_file.write(script_name, name_in_zip)
262 with zipfile.ZipFile(zip_name, 'w') as zip_file:
265 zip_file.write(init_name, init_name_in_zip)
266 zip_file.write(script_name, script_name_in_zip)
/third_party/skia/build/fuchsia/
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/
Dtest_pkgutil.py67 zip_file = os.path.join(self.dirname, zip)
68 z = zipfile.ZipFile(zip_file, 'w')
78 sys.path.insert(0, zip_file)
85 for moduleinfo in pkgutil.iter_modules([zip_file]):
152 zip_file = os.path.join(self.dirname, zip)
153 z = zipfile.ZipFile(zip_file, 'w')
162 sys.path.insert(0, zip_file)
171 actual= [e[1] for e in pkgutil.walk_packages([zip_file])]
Dtest_zipimport_support.py130 with zipfile.ZipFile(zip_name, 'r') as zip_file:
132 zip_file.printdir()
/third_party/skia/third_party/externals/dawn/scripts/
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/
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/
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()

12