Lines Matching refs:zip
21 #include "chrome/test/chromedriver/chrome/zip.h"
91 base::FilePath archive = dir.path().AppendASCII("temp.zip");
96 if (!zip::Unzip(archive, unzip_dir))
172 // A file entry within a zip archive. This may be incomplete and is not
173 // guaranteed to be able to parse all types of zip entries.
174 // See http://www.pkware.com/documents/casestudies/APPNOTE.TXT for the zip
177 // The given bytes must contain the whole zip entry and only the entry,
179 static bool FromBytes(const std::string& bytes, ZipEntry* zip,
188 if (!stream.ReadUInt16(&zip->version_needed)) {
192 if (!stream.ReadUInt16(&zip->bit_flag)) {
196 if (!stream.ReadUInt16(&zip->compression_method)) {
200 if (!stream.ReadUInt16(&zip->mod_time)) {
204 if (!stream.ReadUInt16(&zip->mod_date)) {
208 if (!stream.ReadUInt32(&zip->crc)) {
217 if (!stream.ReadUInt32(&zip->uncompressed_size)) {
231 if (!stream.ReadString(&zip->name, name_length)) {
235 if (!stream.ReadString(&zip->fields, field_length)) {
239 if (zip->bit_flag & 0x8) {
246 if (!stream.ReadString(&zip->compressed_data, compressed_size)) {
255 if (!stream.ReadUInt32(&zip->crc)) {
263 if (compressed_size != zip->compressed_data.length()) {
267 if (!stream.ReadUInt32(&zip->uncompressed_size)) {
273 if (!stream.ReadString(&zip->compressed_data, compressed_size)) {
278 *error_msg = "leftover data after zip entry";
285 // Returns bytes for a valid zip file that just contains this zip entry.
287 // Write zip entry with no data descriptor.