applypatch_test.cpp | 76 old_file = from_testdata_base("old.file"); 86 sha1sum(old_file, &old_sha1, &old_size); 93 static std::string old_file; member in class:ApplyPatchTest 108 std::string ApplyPatchTest::old_file; member in class:ApplyPatchTest 117 cp(ApplyPatchTest::old_file, ApplyPatchTest::cache_file); 121 cp(ApplyPatchTest::cache_file, ApplyPatchTest::old_file); 193 ASSERT_EQ(0, applypatch_check(&old_file[0], sha1s)); 198 ASSERT_EQ(0, applypatch_check(&old_file[0], sha1s)); 203 ASSERT_EQ(0, applypatch_check(&old_file[0], sha1s)); 208 ASSERT_NE(0, applypatch_check(&old_file[0], sha1s)) [all...] |