summaryrefslogtreecommitdiff
path: root/payload_generator/graph_utils.cc
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2015-03-24 19:09:33 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-26 19:56:06 +0000
commit08d5a45ac109292ff80c877c4045335a2f0b917d (patch)
treed17e6b31d8b544d45ccd57405a09a2d08045e3c5 /payload_generator/graph_utils.cc
parentfdf005161523d9873a281f2a96d51dd4a3261f4f (diff)
update_engine: Fake out GatherExtents in all tests.
DeltaDiffGenerator tests don't mock out GatherExtents(), requiring them to run as root for no good reason. This patch cleans up the test initialization and tear down to fake out the GatherExtents() function making it return a fixed list of extents. The extents are now generated based on the size of the files used during the test instead of the actual positions of the temporary files in the host filesystem. BUG=chromium:351589 TEST=FEATURES=test emerge-link update_engine Change-Id: I43d184722aa0d6b847977c3902330f0963232cc3 Reviewed-on: https://chromium-review.googlesource.com/262306 Trybot-Ready: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Allie Wood <alliewood@chromium.org> Reviewed-by: Don Garrett <dgarrett@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org>
Diffstat (limited to 'payload_generator/graph_utils.cc')
0 files changed, 0 insertions, 0 deletions