diff options
| author | Alex Deymo <deymo@google.com> | 2016-05-26 16:43:13 -0700 |
|---|---|---|
| committer | Alex Deymo <deymo@google.com> | 2016-06-21 15:44:02 -0700 |
| commit | 6e3ffe73d27de744ef494292c003b5ba907799df (patch) | |
| tree | f5a35886134642eae7f620a1bb41040285184524 /scripts/update_payload/format_utils_unittest.py | |
| parent | 40e13c041b07e1e1566c8de9b50cfcd6ab08649c (diff) | |
Fetch local files asynchronously.
This patch implements a new fetcher that only handles local files.
While libcurl supports file:// urls, the stream can't be suspended when
accessing local files.
This new FileFetcher is based on the brillo::FileStream class which
properly handles the asynchronous reads from regular files.
Bug: 28866512
TEST=Added unittest. Deployed an update from a file:// URL.
(cherry picked from commit 2c131bbf81d8c02ade163b939c96e44aa93765e9)
Change-Id: I9949a0f214de992c2fd86c1d73aca1c1792f0de0
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions
