Internal change

PiperOrigin-RevId: 527473249
This commit is contained in:
MediaPipe Team 2023-04-26 22:11:06 -07:00 committed by Copybara-Service
parent 2122b5d7be
commit 7b055df211
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ std::string GetUnusedSidePacketName(
} }
std::string candidate = input_side_packet_name_base; std::string candidate = input_side_packet_name_base;
int iter = 2; int iter = 2;
while (mediapipe::ContainsKey(input_side_packets, candidate)) { while (input_side_packets.contains(candidate)) {
candidate = absl::StrCat(input_side_packet_name_base, "_", candidate = absl::StrCat(input_side_packet_name_base, "_",
absl::StrFormat("%02d", iter)); absl::StrFormat("%02d", iter));
++iter; ++iter;

View File

@ -101,7 +101,7 @@ void TestSuccessTagMap(const std::vector<std::string>& tag_index_names,
EXPECT_EQ(tags.size(), tag_map->Mapping().size()) EXPECT_EQ(tags.size(), tag_map->Mapping().size())
<< "Parameters: in " << tag_map->DebugString(); << "Parameters: in " << tag_map->DebugString();
for (int i = 0; i < tags.size(); ++i) { 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" << "Parameters: Trying to find \"" << tags[i] << "\" in\n"
<< tag_map->DebugString(); << tag_map->DebugString();
} }