diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2016-10-19 05:09:25 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-10-19 05:09:25 +0200 |
commit | 06603c76c5c2424a6e6fc11326856a75e28bb616 (patch) | |
tree | fa64308768ae2b6c9c843f90e72d18e63c81ef12 /tests/component/applypatch_test.cpp | |
parent | Merge "Clean up bootloader_message usage in recovery" (diff) | |
parent | Add a unit test for applypatch_check (diff) | |
download | android_bootable_recovery-06603c76c5c2424a6e6fc11326856a75e28bb616.tar android_bootable_recovery-06603c76c5c2424a6e6fc11326856a75e28bb616.tar.gz android_bootable_recovery-06603c76c5c2424a6e6fc11326856a75e28bb616.tar.bz2 android_bootable_recovery-06603c76c5c2424a6e6fc11326856a75e28bb616.tar.lz android_bootable_recovery-06603c76c5c2424a6e6fc11326856a75e28bb616.tar.xz android_bootable_recovery-06603c76c5c2424a6e6fc11326856a75e28bb616.tar.zst android_bootable_recovery-06603c76c5c2424a6e6fc11326856a75e28bb616.zip |
Diffstat (limited to 'tests/component/applypatch_test.cpp')
-rw-r--r-- | tests/component/applypatch_test.cpp | 5 |
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)); |