platform_bootable_recovery/tests
Tao Bao 8f23757ad4 Move parse_range() and range_overlaps() into RangeSet.
Also move RangeSet into a header file to make it testable, and add unit
tests.

In RangeSet::Parse() (the former parse_range()), use libbase logging to
do assertions. This has the same effect as the previous
exit(EXIT_FAILURE) to terminate the updater process and abort an update.
The difference lies in the exit status code (i.e. WEXITSTATUS(status) in
install.cpp), which changes from 1 (i.e. EXIT_FAILURE) to 0.

Test: recovery_unit_test
Test: Apply an incremental update with the new updater.
Change-Id: Ie8393c78b0d8ae0fd5f0ca0646d871308d71fff0
2017-03-31 00:04:56 -07:00
..
common recovery: replacing fs_mgr_read_fstab() with new fs_mgr APIs 2017-03-10 17:27:31 +08:00
component Merge "tests: Construct two bad packages at runtime for VerifierTest." 2017-03-29 00:37:05 +00:00
manual Add checkers and tests for empty locale in PNG file 2017-01-18 19:37:06 -08:00
testdata tests: Construct two bad packages at runtime for VerifierTest. 2017-03-27 16:10:11 -07:00
unit Move parse_range() and range_overlaps() into RangeSet. 2017-03-31 00:04:56 -07:00
Android.mk Move parse_range() and range_overlaps() into RangeSet. 2017-03-31 00:04:56 -07:00
AndroidTest.xml Add test config to minadbd_test 2017-03-28 22:13:38 -07:00