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

am: d7d7f3c792

Change-Id: I91189e4dfbb05d2b98ce3eab0f147949cce6c4c9
This commit is contained in:
Tianjie Xu
2016-10-19 03:27:13 +00:00
committed by android-build-merger
+5
View File
@@ -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));