commit | 5e8e30b7e3aa04ee852ac79b9bd6fddb63200928 | [log] [tgz] |
---|---|---|
author | Jae Hoon Kim <[email protected]> | Wed May 06 14:59:06 2020 -0700 |
committer | Commit Bot <[email protected]> | Thu May 21 01:54:13 2020 +0000 |
tree | 9f95699caf47217c7224e975b48d7ba9baa61fd8 | |
parent | 38de3b155e5c3b4739dd68887a1f26ebf8edf645 [diff] [blame] |
update_engine: UpdateAttempter manages lifetime of Excluder Prior to adding the exclusion logic within various |Action|s, the |UpdateAttempter| provides a way to access the |Excluder| encapsulated within the |UpdateAttempter| singleton. |PayloadState| uses |Excluder| from |UpdateAttempter| as a member. BUG=chromium:928805 TEST=FEATURES=test emerge-$B update_engine TEST=USE="${USE} -dlc" FEATURES=test emerge-$B update_engine Change-Id: I63ace436e8aacd349e13004fe1e2f4dd37479978 Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2190236 Tested-by: Jae Hoon Kim <[email protected]> Reviewed-by: Amin Hassani <[email protected]> Commit-Queue: Jae Hoon Kim <[email protected]> Auto-Submit: Jae Hoon Kim <[email protected]>
diff --git a/mock_update_attempter.h b/mock_update_attempter.h index fdeba52..ad34802 100644 --- a/mock_update_attempter.h +++ b/mock_update_attempter.h
@@ -60,6 +60,8 @@ MOCK_METHOD2(SetDlcActiveValue, bool(bool, const std::string&)); + MOCK_CONST_METHOD0(GetExcluder, ExcluderInterface*(void)); + MOCK_METHOD0(RefreshDevicePolicy, void(void)); MOCK_CONST_METHOD0(consecutive_failed_update_checks, unsigned int(void));