• Tetsui Ohkubo's avatar
    imageWriterPrivate: Add ExtractionProperties · d320273a
    Tetsui Ohkubo authored
    In order to support other compression formats in imageWriterPrivate,
    UnzipHelper is renamed to ZipExtractor and its arguments are split into
    ExtractionProperties, so that other extractor classes can easily take
    the same set of arguments.
    
    Also this CL simplifies the lifecycle of the class by managing it on
    its own.
    
    This refactoring is described in "Adding multiple compression format
    supports" section of the design doc.
    
    Design doc: http://go/tar-xz-cros-recovery
    
    TEST=manually verified that zip file flashing and normal file flashing
    are working in Recovery Utility
    TEST=ImageWriterOperationTest
    BUG=b:153027505
    
    Change-Id: I505bd426b163500926d0acae5947f6c3f0531758
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2573963
    Commit-Queue: Tetsui Ohkubo <tetsui@chromium.org>
    Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#843494}
    d320273a
operation.cc 9.59 KB