platform_bootable_recovery/tests/testdata
Tianjie Xu cc61cf6a9f Convert deflate image chunks to raw if the raw data is smaller
The imgpatch will fail on empty deflates because the bspatch won't call
the sink function if the target length is zero.

Instead of compressing an empty string, it's cleaner to not generate such
empty deflate chunks in the patch. Therefore, we can just convert the
chunk type to raw if the target length is smaller than the patch data.

Also adjust some unit tests and add the testdata gzipped_source &
gzipped_target. These two files are ~1K each and are generated by
gzipping two slightly different regular files.

Bug: 79265132
Test: unit tests pass, imgpatch applys successfully on the given src/tgt
Change-Id: I6bfff3251918137f6762a6f9e9551642371a1124
2018-05-24 10:49:54 -07:00
..
bonus.file applypatch: Add testcases for applypatch executable. 2016-11-01 14:40:14 -07:00
boot.img applypatch: Add testcases for applypatch executable. 2016-11-01 14:40:14 -07:00
deflate_src.zip Fix the size mismatch in imgdiff 2017-10-31 23:31:02 -07:00
deflate_tgt.zip Fix the size mismatch in imgdiff 2017-10-31 23:31:02 -07:00
fake-eocd.zip Refactor existing tests to use gtest 2016-02-04 10:11:30 -08:00
font.png tests: Add tests for ScreenRecoveryUI. 2018-05-08 15:53:56 -07:00
gzipped_source Convert deflate image chunks to raw if the raw data is smaller 2018-05-24 10:49:54 -07:00
gzipped_target Convert deflate image chunks to raw if the raw data is smaller 2018-05-24 10:49:54 -07:00
jarsigned.zip Refactor existing tests to use gtest 2016-02-04 10:11:30 -08:00
loop00000.png tests: Add tests for ScreenRecoveryUI. 2018-05-08 15:53:56 -07:00
new.file Port applypatch.sh tests to recovery_component_tests 2016-03-11 18:37:34 -08:00
old.file Port applypatch.sh tests to recovery_component_tests 2016-03-11 18:37:34 -08:00
otasigned_v1.zip Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
otasigned_v2.zip Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
otasigned_v3.zip Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
otasigned_v4.zip Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
otasigned_v5.zip Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
patch.bsdiff Port applypatch.sh tests to recovery_component_tests 2016-03-11 18:37:34 -08:00
random.zip Refactor existing tests to use gtest 2016-02-04 10:11:30 -08:00
recovery-from-boot-with-bonus.p applypatch: Add testcases for applypatch executable. 2016-11-01 14:40:14 -07:00
recovery-from-boot.p applypatch: Add testcases for applypatch executable. 2016-11-01 14:40:14 -07:00
recovery.img applypatch: Add testcases for applypatch executable. 2016-11-01 14:40:14 -07:00
testkey_v1.pk8 Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v1.txt Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v1.x509.pem Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v2.pk8 Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v2.txt Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v2.x509.pem Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v3.pk8 Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v3.txt Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v3.x509.pem Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v4.pk8 Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v4.txt Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v4.x509.pem Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v5.pk8 Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v5.txt Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
testkey_v5.x509.pem Clean up verifier testcases. 2016-08-01 11:32:28 -07:00
unsigned.zip Refactor existing tests to use gtest 2016-02-04 10:11:30 -08:00
ziptest_dummy-update.zip Replace minzip with libziparchive 2016-10-17 17:41:51 -07:00
ziptest_valid.zip Replace minzip with libziparchive 2016-10-17 17:41:51 -07:00