summaryrefslogtreecommitdiff
path: root/update_manager/update_manager_unittest.cc
diff options
context:
space:
mode:
authorGilad Arnold <garnold@chromium.org>2014-10-07 13:01:52 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-11-01 07:59:06 +0000
commitb2f9919a0e4a77dd885625cb52ff7322974bd338 (patch)
tree969f6860f5392013288f78584b17ced6314b4844 /update_manager/update_manager_unittest.cc
parentf329b933db41d26644a97afef928eb1b319d6d99 (diff)
update_engine: UM: Policy to distinguish between P2P downloading and sharing.
Previously, the UpdateCanStart policy returned a single Boolean, indicating whether "P2P is allowed". However, the policy has been incorrectly reproducing decisions made by current code, whereas P2P sharing is always allowed (if P2P is enabled) but P2P downloading has additional limitations. This CL introduces distinct flags for both downloading and sharing, and reasons about them specifically. This also adds a constraints whereas P2P downloading is allowed for non-interactive updates only. BUG=chromium:420732 TEST=Unit tests. Change-Id: Ife4b6b2830c999745a0d4239089034c863de6388 Reviewed-on: https://chromium-review.googlesource.com/222262 Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Gilad Arnold <garnold@chromium.org>
Diffstat (limited to 'update_manager/update_manager_unittest.cc')
0 files changed, 0 insertions, 0 deletions