Lines Matching refs:bad_status

155   absl::Status bad_status(absl::StatusCode::kInternal, "fail");  in TEST()  local
156 bad_status.SetPayload(kUrl1, absl::Cord(kPayload1)); in TEST()
157 bad_status.SetPayload(kUrl2, absl::Cord(kPayload2)); in TEST()
159 EXPECT_THAT(bad_status.GetPayload(kUrl1), Optional(Eq(kPayload1))); in TEST()
160 EXPECT_THAT(bad_status.GetPayload(kUrl2), Optional(Eq(kPayload2))); in TEST()
162 EXPECT_FALSE(bad_status.GetPayload(kUrl3)); in TEST()
164 bad_status.SetPayload(kUrl1, absl::Cord(kPayload3)); in TEST()
165 EXPECT_THAT(bad_status.GetPayload(kUrl1), Optional(Eq(kPayload3))); in TEST()
168 bad_status.SetPayload(absl::StrCat(kUrl1, ".1"), absl::Cord(kPayload1)); in TEST()
169 EXPECT_THAT(bad_status.GetPayload(absl::StrCat(kUrl1, ".1")), in TEST()
174 absl::Status bad_status(absl::StatusCode::kInternal, "fail"); in TEST() local
175 bad_status.SetPayload(kUrl1, absl::Cord(kPayload1)); in TEST()
176 bad_status.SetPayload(kUrl2, absl::Cord(kPayload2)); in TEST()
177 bad_status.SetPayload(kUrl3, absl::Cord(kPayload3)); in TEST()
179 EXPECT_FALSE(bad_status.ErasePayload(kUrl4)); in TEST()
181 EXPECT_TRUE(bad_status.GetPayload(kUrl2)); in TEST()
182 EXPECT_TRUE(bad_status.ErasePayload(kUrl2)); in TEST()
183 EXPECT_FALSE(bad_status.GetPayload(kUrl2)); in TEST()
184 EXPECT_FALSE(bad_status.ErasePayload(kUrl2)); in TEST()
186 EXPECT_TRUE(bad_status.ErasePayload(kUrl1)); in TEST()
187 EXPECT_TRUE(bad_status.ErasePayload(kUrl3)); in TEST()
189 bad_status.SetPayload(kUrl1, absl::Cord(kPayload1)); in TEST()
190 EXPECT_TRUE(bad_status.ErasePayload(kUrl1)); in TEST()
237 absl::Status bad_status(absl::StatusCode::kInternal, "fail"); in TEST() local
238 bad_status.SetPayload(kUrl1, absl::Cord(kPayload1)); in TEST()
239 bad_status.SetPayload(kUrl2, absl::Cord(kPayload2)); in TEST()
240 bad_status.SetPayload(kUrl3, absl::Cord(kPayload3)); in TEST()
244 bad_status.ForEachPayload( in TEST()
254 PayloadsVec visited_payloads = AllVisitedPayloads(bad_status); in TEST()