summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2016-10-19 00:18:22 +0200
committerTianjie Xu <xunchang@google.com>2016-10-19 02:30:38 +0200
commita5fd5abe80ea5650bc0b638fc693884df5eaaa89 (patch)
tree811b12d0719b9b82f4294886f73e951ffd0c3df5
parentMerge "Fix applypatch_check failure when applying update on angler" (diff)
downloadandroid_bootable_recovery-a5fd5abe80ea5650bc0b638fc693884df5eaaa89.tar
android_bootable_recovery-a5fd5abe80ea5650bc0b638fc693884df5eaaa89.tar.gz
android_bootable_recovery-a5fd5abe80ea5650bc0b638fc693884df5eaaa89.tar.bz2
android_bootable_recovery-a5fd5abe80ea5650bc0b638fc693884df5eaaa89.tar.lz
android_bootable_recovery-a5fd5abe80ea5650bc0b638fc693884df5eaaa89.tar.xz
android_bootable_recovery-a5fd5abe80ea5650bc0b638fc693884df5eaaa89.tar.zst
android_bootable_recovery-a5fd5abe80ea5650bc0b638fc693884df5eaaa89.zip
Diffstat (limited to '')
-rw-r--r--tests/component/applypatch_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/component/applypatch_test.cpp b/tests/component/applypatch_test.cpp
index 75f2e1014..908a9f5f5 100644
--- a/tests/component/applypatch_test.cpp
+++ b/tests/component/applypatch_test.cpp
@@ -200,6 +200,11 @@ std::vector<Value*> ApplyPatchFullTest::patches;
TemporaryFile* ApplyPatchFullTest::output_f;
std::string ApplyPatchFullTest::output_loc;
+TEST_F(ApplyPatchTest, CheckModeSkip) {
+ std::vector<std::string> sha1s;
+ ASSERT_EQ(0, applypatch_check(&old_file[0], sha1s));
+}
+
TEST_F(ApplyPatchTest, CheckModeSingle) {
std::vector<std::string> sha1s = { old_sha1 };
ASSERT_EQ(0, applypatch_check(&old_file[0], sha1s));