platform_bootable_recovery/tests/unit
Tao Bao 6798315327 otautil: Remove the aborts in RangeSet::Parse().
We used to CHECK and abort on parsing errors. While it works fine for
the updater use case (because recovery starts updater in a forked
process and collects the process exit code), it's difficult for other
clients to use RangeSet as a library (e.g. update_verifier).

This CL switches the aborts to returning empty RangeSet instead. Callers
need to check the parsing results explicitly.

The CL also separates RangeSet::PushBack() into a function, and moves
SortedRangeSet::Clear() into RangeSet.

Test: recovery_unit_test
Test: Sideload an OTA package with the new updater on angler.
Test: Sideload an OTA package with injected range string errors. The
      updater aborts from the explicit checks.
Change-Id: If2b7f6f41dc93af917a21c7877a83e98dc3fd016
2017-11-07 12:50:02 -08:00
..
asn1_decoder_test.cpp Refactor asn1_decoder functions into a class. 2017-03-21 15:17:43 -07:00
dirutil_test.cpp otautil: Clean up dirCreateHierarchy(). 2017-07-27 10:33:07 -07:00
locale_test.cpp Add the missing sr-Latn into png files and rename the png locale header 2017-03-24 16:54:52 -07:00
rangeset_test.cpp otautil: Remove the aborts in RangeSet::Parse(). 2017-11-07 12:50:02 -08:00
sysutil_test.cpp Move sysMapFile and sysReleaseMap into MemMapping class. 2017-05-01 21:51:54 -07:00
zip_test.cpp kill package_extract_dir 2017-05-23 17:09:45 -07:00