From faea518de0b4f942ce48725b8a6331e0be45f660 Mon Sep 17 00:00:00 2001 From: Ben Beasley Date: Mon, 28 Feb 2022 14:22:09 -0500 Subject: [PATCH] Fix implicit std::string_view(nullptr) (#28589) This fixes failure to compile on (pre-release) GCC 12 due to use of explicitly deleted function: --- test/core/security/evaluate_args_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/core/security/evaluate_args_test.cc b/test/core/security/evaluate_args_test.cc index b9e716d741a..da882e69494 100644 --- a/test/core/security/evaluate_args_test.cc +++ b/test/core/security/evaluate_args_test.cc @@ -32,9 +32,9 @@ class EvaluateArgsTest : public ::testing::Test { TEST_F(EvaluateArgsTest, EmptyMetadata) { EvaluateArgs args = util_.MakeEvaluateArgs(); - EXPECT_EQ(args.GetPath(), nullptr); - EXPECT_EQ(args.GetMethod(), nullptr); - EXPECT_EQ(args.GetAuthority(), nullptr); + EXPECT_THAT(args.GetPath(), ::testing::IsEmpty()); + EXPECT_THAT(args.GetMethod(), ::testing::IsEmpty()); + EXPECT_THAT(args.GetAuthority(), ::testing::IsEmpty()); EXPECT_EQ(args.GetHeaderValue("some_key", nullptr), absl::nullopt); }