Skip to content
Commit b0676a1f authored by François Degros's avatar François Degros Committed by Copybara-Service
Browse files

[zip] Add WriterDelegate::OnError()

Added an OnError() method allowing a WriterDelegate to do something in
case of extraction error.

FileWriterDelegate::OnError() empties the output file.
FilePathWriterDelegate::OnError() removes the output file altogether.

BUG=chromium:1304520
TEST=autoninja -C out/Default zlib_unittests && out/Default/zlib_unittests
TEST=autoninja -C out/Default components_unittests && out/Default/components_unittests --gtest_filter='UnzipTest.*'

Change-Id: I3c567773a8da8c8db055db04240e646f0fc94228
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3511757


Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: François Degros <fdegros@chromium.org>
Cr-Commit-Position: refs/heads/main@{#980454}
NOKEYCHECK=True
GitOrigin-RevId: 1fb92cbdc817102903c7462066a8235268ede8e2
parent e466446b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment