diff --git a/mediapipe/framework/tool/name_util.cc b/mediapipe/framework/tool/name_util.cc index 4784441d7..d42cbb622 100644 --- a/mediapipe/framework/tool/name_util.cc +++ b/mediapipe/framework/tool/name_util.cc @@ -60,7 +60,7 @@ std::string GetUnusedSidePacketName( } std::string candidate = input_side_packet_name_base; int iter = 2; - while (mediapipe::ContainsKey(input_side_packets, candidate)) { + while (input_side_packets.contains(candidate)) { candidate = absl::StrCat(input_side_packet_name_base, "_", absl::StrFormat("%02d", iter)); ++iter; diff --git a/mediapipe/framework/tool/tag_map_test.cc b/mediapipe/framework/tool/tag_map_test.cc index 20a9be966..a93b94445 100644 --- a/mediapipe/framework/tool/tag_map_test.cc +++ b/mediapipe/framework/tool/tag_map_test.cc @@ -101,7 +101,7 @@ void TestSuccessTagMap(const std::vector& tag_index_names, EXPECT_EQ(tags.size(), tag_map->Mapping().size()) << "Parameters: in " << tag_map->DebugString(); for (int i = 0; i < tags.size(); ++i) { - EXPECT_TRUE(mediapipe::ContainsKey(tag_map->Mapping(), tags[i])) + EXPECT_TRUE(tag_map->Mapping().contains(tags[i])) << "Parameters: Trying to find \"" << tags[i] << "\" in\n" << tag_map->DebugString(); }