Home
last modified time | relevance | path

Searched refs:old_filename (Results 1 – 5 of 5) sorted by relevance

/external/bsdiff/
Dbspatch_unittest.cc26 const char* old_filename = old_file_.c_str(); in TEST_F() local
28 EXPECT_FALSE(IsOverlapping(old_filename, "does-not-exist", {}, {})); in TEST_F()
29 EXPECT_FALSE(IsOverlapping(old_filename, new_filename, {}, {})); in TEST_F()
31 EXPECT_EQ(0, symlink(old_filename, new_filename)); in TEST_F()
32 EXPECT_TRUE(IsOverlapping(old_filename, new_filename, {}, {})); in TEST_F()
33 EXPECT_TRUE(IsOverlapping(old_filename, old_filename, {}, {})); in TEST_F()
34 EXPECT_FALSE(IsOverlapping(old_filename, old_filename, {{0, 1}}, {{1, 1}})); in TEST_F()
35 EXPECT_FALSE(IsOverlapping(old_filename, old_filename, {{2, 1}}, {{1, 1}})); in TEST_F()
36 EXPECT_TRUE(IsOverlapping(old_filename, old_filename, {{0, 1}}, {{0, 1}})); in TEST_F()
37 EXPECT_TRUE(IsOverlapping(old_filename, old_filename, {{0, 4}}, {{2, 1}})); in TEST_F()
[all …]
Dbspatch.cc114 bool IsOverlapping(const char* old_filename, in IsOverlapping() argument
125 if (stat(old_filename, &old_stat) == -1) { in IsOverlapping()
126 PLOG(ERROR) << "Error stat the old file: " << old_filename; in IsOverlapping()
149 int bspatch(const char* old_filename, in bspatch() argument
169 return bspatch(old_filename, new_filename, patch.data(), patch_size, in bspatch()
177 int bspatch(const char* old_filename, in bspatch() argument
186 std::unique_ptr<FileInterface> old_file = File::FOpen(old_filename, O_RDONLY); in bspatch()
188 PLOG(ERROR) << "Error opening the old file: " << old_filename; in bspatch()
218 if (IsOverlapping(old_filename, new_filename, parsed_old_extents, in bspatch()
Dbsdiff_main.cc59 int GenerateBsdiffFromFiles(const char* old_filename, in GenerateBsdiffFromFiles() argument
64 uint8_t* old_buf = static_cast<uint8_t*>(MapFile(old_filename, &oldsize)); in GenerateBsdiffFromFiles()
/external/bsdiff/include/bsdiff/
Dbspatch.h20 int bspatch(const char* old_filename,
27 int bspatch(const char* old_filename,
51 bool IsOverlapping(const char* old_filename,
/external/google-breakpad/src/tools/linux/md2core/
Dminidump-2-core.cc1119 string old_filename = filename.empty() ? sig_filename : filename; in AugmentMappings() local
1129 dirname = old_filename; in AugmentMappings()
1149 options.use_filename ? sig_filename : old_filename); in AugmentMappings()