[Zucchini] Implement patch writing and reading

Desktop / Chromium - Etienne Pierre-Doray [chromium.org] - 8 August 2017 02:03 EDT

EnsemblePatchWriter and EnsemblePatchReader (and related items) are utility classes to read and write patches by interfacing with buffers of raw data.

Bug: 729154 Change-Id: I1cf6f804e01e960177f25c6c79ea8570a27b5531 Reviewed-on: https://chromium-review.googlesource.com/560936 Commit-Queue: Etienne Pierre-Doray

0397767 [Zucchini] Implement patch writing and reading.
chrome/installer/zucchini/BUILD.gn | 5 +
chrome/installer/zucchini/README.md | 129 ++++-
chrome/installer/zucchini/image_utils.h | 16 +-
.../zucchini/patch_read_write_unittest.cc | 604 +++++++++++++++++++++
chrome/installer/zucchini/patch_reader.cc | 341 ++++++++++++
chrome/installer/zucchini/patch_reader.h | 275 ++++++++++
chrome/installer/zucchini/patch_utils.h | 74 +--
chrome/installer/zucchini/patch_utils_unittest.cc | 100 ++--
chrome/installer/zucchini/patch_writer.cc | 290 ++++++++++
chrome/installer/zucchini/patch_writer.h | 276 ++++++++++
10 files changed, 2026 insertions(+), 84 deletions(-)

Upstream: git.chromium.org


  • Share