Searched refs:old_files_map (Results 1 – 3 of 3) sorted by relevance
/system/update_engine/payload_generator/ |
D | delta_diff_utils_unittest.cc | 564 std::map<string, FilesystemInterface::File> old_files_map; in TEST_F() local 577 old_files_map.emplace(name, file); in TEST_F() 582 EXPECT_EQ(diff_utils::GetOldFile(old_files_map, name).name, name); in TEST_F() 584 EXPECT_EQ(diff_utils::GetOldFile(old_files_map, "file_name").name, in TEST_F() 586 EXPECT_EQ(diff_utils::GetOldFile(old_files_map, "filename_new.zip").name, in TEST_F() 588 EXPECT_EQ(diff_utils::GetOldFile(old_files_map, "version1.2").name, in TEST_F() 590 EXPECT_EQ(diff_utils::GetOldFile(old_files_map, "version3.0").name, in TEST_F() 592 EXPECT_EQ(diff_utils::GetOldFile(old_files_map, "_version").name, "version"); in TEST_F() 594 diff_utils::GetOldFile(old_files_map, "update_engine_unittest").name, in TEST_F() 596 EXPECT_EQ(diff_utils::GetOldFile(old_files_map, "bin/delta_generator").name, in TEST_F() [all …]
|
D | delta_diff_utils.cc | 244 const map<string, FilesystemInterface::File>& old_files_map, in GetOldFile() argument 246 if (old_files_map.empty()) in GetOldFile() 249 auto old_file_iter = old_files_map.find(new_file_name); in GetOldFile() 250 if (old_file_iter != old_files_map.end()) in GetOldFile() 258 LevenshteinDistance(new_file_name, old_files_map.begin()->first); in GetOldFile() 259 const FilesystemInterface::File* old_file = &old_files_map.begin()->second; in GetOldFile() 260 for (const auto& pair : old_files_map) { in GetOldFile() 307 map<string, FilesystemInterface::File> old_files_map; in DeltaReadPartition() local 313 old_files_map[file.name] = file; in DeltaReadPartition() 351 GetOldFile(old_files_map, new_file.name); in DeltaReadPartition()
|
D | delta_diff_utils.h | 149 const std::map<std::string, FilesystemInterface::File>& old_files_map,
|