summaryrefslogtreecommitdiffstats
path: root/tests/unit/applypatch_test.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-09-24 01:47:54 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-09-24 01:47:54 +0200
commit3010e66ec437266e1f47f5d5fb57eaa13b2a3be1 (patch)
tree8088b2b3fb6424d9c238eb11b8bdb837de7a7a18 /tests/unit/applypatch_test.cpp
parentMerge "applypatch: Use static libs for libbrotli and libbz." am: 4f86af7b9a am: 5108b0b7f4 am: 1fcdb2709b (diff)
parentMerge "applypatch: Add backup_source parameter to PatchPartition." am: 86b54dc493 am: 164f4759a2 (diff)
downloadandroid_bootable_recovery-3010e66ec437266e1f47f5d5fb57eaa13b2a3be1.tar
android_bootable_recovery-3010e66ec437266e1f47f5d5fb57eaa13b2a3be1.tar.gz
android_bootable_recovery-3010e66ec437266e1f47f5d5fb57eaa13b2a3be1.tar.bz2
android_bootable_recovery-3010e66ec437266e1f47f5d5fb57eaa13b2a3be1.tar.lz
android_bootable_recovery-3010e66ec437266e1f47f5d5fb57eaa13b2a3be1.tar.xz
android_bootable_recovery-3010e66ec437266e1f47f5d5fb57eaa13b2a3be1.tar.zst
android_bootable_recovery-3010e66ec437266e1f47f5d5fb57eaa13b2a3be1.zip
Diffstat (limited to 'tests/unit/applypatch_test.cpp')
-rw-r--r--tests/unit/applypatch_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/applypatch_test.cpp b/tests/unit/applypatch_test.cpp
index 794f2c103..218a224f8 100644
--- a/tests/unit/applypatch_test.cpp
+++ b/tests/unit/applypatch_test.cpp
@@ -141,7 +141,7 @@ TEST_F(ApplyPatchTest, PatchPartition) {
ASSERT_TRUE(LoadFileContents(from_testdata_base("bonus.file"), &bonus_fc));
Value bonus(Value::Type::BLOB, std::string(bonus_fc.data.cbegin(), bonus_fc.data.cend()));
- ASSERT_TRUE(PatchPartition(target_partition, source_partition, patch, &bonus));
+ ASSERT_TRUE(PatchPartition(target_partition, source_partition, patch, &bonus, false));
}
// Tests patching an eMMC target without a separate bonus file (i.e. recovery-from-boot patch has
@@ -151,7 +151,7 @@ TEST_F(ApplyPatchTest, PatchPartitionWithoutBonusFile) {
ASSERT_TRUE(LoadFileContents(from_testdata_base("recovery-from-boot-with-bonus.p"), &patch_fc));
Value patch(Value::Type::BLOB, std::string(patch_fc.data.cbegin(), patch_fc.data.cend()));
- ASSERT_TRUE(PatchPartition(target_partition, source_partition, patch, nullptr));
+ ASSERT_TRUE(PatchPartition(target_partition, source_partition, patch, nullptr, false));
}
class FreeCacheTest : public ::testing::Test {