summaryrefslogtreecommitdiff
path: root/scripts/payload_info_unittest.py
diff options
context:
space:
mode:
authorJae Hoon Kim <kimjae@chromium.org>2019-07-02 11:17:24 -0700
committerJae Hoon Kim <kimjae@chromium.org>2019-07-12 01:13:26 +0000
commit504c3cb7e37d0ad1adbe6c08d4156a0fadb7aa07 (patch)
tree6d1aafa77c127fd27f9f12bc6ae2760f2c3874bf /scripts/payload_info_unittest.py
parent53a42e847ca184c5caca4e39445bd0bb26b4d1a6 (diff)
update_engine: Template specialized UpdateManager interface for mockability
This change is to create an interface that is for testing |UpdateManager|. Currently the |UpdateMaanger| exists by having two main member functions that are templatized allowing for a generic set of policy methods to be passed in taking a abitrary set of arguments. The downside of this design is the difficulty when testing such a class. Next steps are to refactor |Policy| and |UpdateManager| to exist together without the need for templatized member function within |UpdateManager| as the whole set of policy methods that can be passed in are already determined (UpdateCheckAllowed, UpdateCanBeApplied, UpdateCanStart, UpdateDownloadAllowed, P2PEnabled, P2PEnabledChanged). The issue is that these functions each take a different set of arguments and can probably be combined into one generic set of arguments making the |UpdateManager| much simpler to manage. BUG=chromium:924165 TEST=unittests TEST=FEATURES="test" emerge-${BOARD} update_engine Change-Id: Ia8091495079f9324bccf5e717d5f26ea7ef24514
Diffstat (limited to 'scripts/payload_info_unittest.py')
0 files changed, 0 insertions, 0 deletions