platform_bootable_recovery/tests/unit
Tao Bao 7c1d426dbc applypatch: Restrict applypatch_check to eMMC targets.
Also fix an error-pone behavior in previous code when verifying an eMMC
target. As long as it loads the partition content successfully according
to the SHAs embedded in the filename, it shouldn't further check against
the SHAs given in the second argument. Because the loaded contents
relate to a specific partition size.

For example:

  apply_patch_check(
      "EMMC:/boot.img:src_size:src_hash:tgt_size:tgt_hash",
      "src_hash");

Assume "/boot.img" already has the desired hash of "tgt_hash", the
previous code would give wrong verification result. The issue can be
addressed by additionally listing "tgt_hash" as one of the desired SHAs
(or by applying this CL).

Bug: 110106408
Test: Run recovery_unit_test and recovery_component_test on marlin.
Change-Id: I8daafdbecd083f687e24d563ab089caa25667633
2018-07-09 21:13:56 -07:00
..
applypatch_test.cpp applypatch: Restrict applypatch_check to eMMC targets. 2018-07-09 21:13:56 -07:00
asn1_decoder_test.cpp Refactor asn1_decoder functions into a class. 2017-03-21 15:17:43 -07:00
commands_test.cpp updater: Add ABORT command. 2018-07-07 04:12:19 +00:00
dirutil_test.cpp otautil: Rename dir/sys/thermal utils. 2018-05-03 23:17:29 -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 tests: Specify the death test style to avoid flakiness. 2018-06-05 14:06:59 -07:00
screen_ui_test.cpp tests: Skip ScreenRecoveryUITest on gr_init failure. 2018-06-13 23:28:21 -07:00
sysutil_test.cpp otautil: Rename dir/sys/thermal utils. 2018-05-03 23:17:29 -07:00
zip_test.cpp otautil: Rename dir/sys/thermal utils. 2018-05-03 23:17:29 -07:00