summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils.py
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-01-02 15:33:42 -0800
committerTao Bao <tbao@google.com>2019-01-08 22:35:18 -0800
commit642b32b723c832782a4e3372724207f8e3b2e863 (patch)
treeb2f8764e81af1bf281e07f44a77a851db4b28a9e /scripts/update_payload/format_utils.py
parent3ce4e526eef90cec0d659f33e567d1fffa4373a0 (diff)
Add MultiRangeHttpFetcherOverFileFetcherTest to HttpFetcherTest.
When fetching a payload in DownloadAction, in addition to using MultiRangeHttpFetcher over LibcurlHttpFetcher, we're also actively using MultiRangeHttpFetcher over FileFetcher in Android, e.g. when installing or verifying a local payload. This CL adds MultiRangeHttpFetcherOverFileFetcherTest into HttpFetcherTest to exercise this path. The test would be helpful in capturing issues addressed by commit 028ea416 (it still requires running with an ASAN build though). It also fixes a bug in MultiRangeHttpFetcher::ReceivedBytes(), which is uncovered while fixing the test. Fixes: 120577143 Test: Run unittest on taimen. Change-Id: I5dddb95e9bdfd842017876017a99c04d6be304db
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions