Home
last modified time | relevance | path

Searched refs:patched (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/applypatch/
Dapplypatch.cpp364 FileContents patched; in GenerateTarget() local
367 SinkFn sink = [&patched, &ctx](const unsigned char* data, size_t len) { in GenerateTarget()
369 patched.data.insert(patched.data.end(), data, data + len); in GenerateTarget()
386 SHA1_Final(patched.sha1, &ctx); in GenerateTarget()
387 if (memcmp(patched.sha1, expected_sha1, SHA_DIGEST_LENGTH) != 0) { in GenerateTarget()
390 LOG(ERROR) << "target size " << patched.data.size() << " SHA-1 " << short_sha1(patched.sha1); in GenerateTarget()
412 if (!WriteBufferToPartition(patched, target)) { in GenerateTarget()
/bootable/recovery/tests/unit/host/
Dimgdiff_test.cpp83 static void GenerateTarget(const std::string& src, const std::string& patch, std::string* patched) { in GenerateTarget() argument
84 patched->clear(); in GenerateTarget()
88 patched->append(reinterpret_cast<const char*>(data), len); in GenerateTarget()
95 std::string patched; in verify_patched_image() local
96 GenerateTarget(src, patch, &patched); in verify_patched_image()
97 ASSERT_EQ(tgt, patched); in verify_patched_image()
706 std::string patched; in GenerateAndCheckSplitTarget() local
721 patched += split_tgt; in GenerateAndCheckSplitTarget()
725 ASSERT_EQ(tgt, patched); in GenerateAndCheckSplitTarget()