Merge "Add a unit test for applypatch_check" am: 06603c76c5 am: d7d7f3c792
am: 54278f4047

Change-Id: I0c1f06c2521305283514c9a199d5d715b1813edb
diff --git a/tests/component/applypatch_test.cpp b/tests/component/applypatch_test.cpp
index 75f2e10..908a9f5 100644
--- a/tests/component/applypatch_test.cpp
+++ b/tests/component/applypatch_test.cpp
@@ -200,6 +200,11 @@
 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));