summaryrefslogtreecommitdiff
path: root/update_manager/variable_unittest.cc
diff options
context:
space:
mode:
authorNam T. Nguyen <namnguyen@chromium.org>2014-12-08 15:07:17 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-01-22 21:14:57 +0000
commitf1d582e1a39e170d1a7e20bd21cad25b3f70f96a (patch)
treee46032174f8834bd215f86d751a50a24b719af85 /update_manager/variable_unittest.cc
parent9b7ae1ac9965448f403f3df1b0d37e9ba39b4a64 (diff)
update_engine: Add MtdFileDescriptor and UbiFileDescriptor
We send a pure file descriptor to ExtentWriter. This CL changes that to use FileDescriptor. At the same time, the CL adds two other FileDescriptor classes MtdFileDescriptor and UbiFileDescriptor to work with raw NAND and UBI devices. Both of these classes support either read only or sequential write, but not both at the same time. Seek operation is possible in read only mode. These classes are conditionally included if USE_mtd is not '0'. BUG=chromium:426742 TEST=unittest TEST=USE=mtd emerge update_engine, make sure there is MtdFileDescriptor in /usr/sbin/update_engine TEST=emerge --unmerge android_mtdutils; USE=-mtd emerge update_engine make sure there is no UbiFileDescriptor in that same file Change-Id: If3ba43677d93dc4f3cea037f19866c8b546b2cae Reviewed-on: https://chromium-review.googlesource.com/229004 Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Nam Nguyen <namnguyen@chromium.org> Tested-by: Nam Nguyen <namnguyen@chromium.org>
Diffstat (limited to 'update_manager/variable_unittest.cc')
0 files changed, 0 insertions, 0 deletions