diff options
author | Saurabh Nijhara <snijhara@google.com> | 2020-11-11 14:10:47 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-16 11:04:41 +0000 |
commit | ac83488b5d904320a4af8355fee3284ef311036c (patch) | |
tree | 689ae0dbdb0c8d2b73ea47696505d825be366962 /metrics_utils_unittest.cc | |
parent | 538bd590de3245349050d38f9ca197deb3eaa2a4 (diff) |
update_engine: Add enterprise rollback update policy impl
This CL adds a new rollback update policy which checks if the
update to be downloaded is a rollback by checking the value of
InstallPlan::is_rollback which is set in omaha_response_handler_action.
The intent is to consult this policy in a later CL in
ChromeOSPolicy::UpdateCanBeApplied as download time restrictions will
not be applied if current update being downloaded is a rollback.
BUG=chromium:1117450
TEST=FEATURES=test emerge-${BOARD} update_engine
Change-Id: Ib3a23a57fb60d4d0e983688f78941cdbd587718e
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2532793
Reviewed-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Jae Hoon Kim <kimjae@chromium.org>
Tested-by: Saurabh Nijhara <snijhara@google.com>
Commit-Queue: Saurabh Nijhara <snijhara@google.com>
Diffstat (limited to 'metrics_utils_unittest.cc')
0 files changed, 0 insertions, 0 deletions