From 95afb184e2d6f0c8b0d885963bea77cc07ff01e8 Mon Sep 17 00:00:00 2001 From: tanvi-jagtap Date: Tue, 16 Apr 2024 08:32:59 +0000 Subject: [PATCH] [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT --- test/core/security/credentials_test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/core/security/credentials_test.cc b/test/core/security/credentials_test.cc index 41d45df4567..1c478ec8048 100644 --- a/test/core/security/credentials_test.cc +++ b/test/core/security/credentials_test.cc @@ -642,7 +642,7 @@ class check_channel_oauth2_google_iam final : public grpc_channel_credentials { RefCountedPtr call_creds, const char* /*target*/, ChannelArgs* /*new_args*/) override { CHECK(type() == Type()); - CHECK_NE(call_creds, nullptr); + CHECK(call_creds != nullptr); CHECK(call_creds->type() == grpc_composite_call_credentials::Type()); const grpc_composite_call_credentials::CallCredentialsList& creds_list = static_cast(call_creds.get()) @@ -2871,7 +2871,7 @@ TEST(CredentialsTest, }; grpc_error_handle error; auto creds = UrlExternalAccountCredentials::Create(options, {}, &error); - CHECK_NE(creds, nullptr); + CHECK(creds != nullptr); CHECK_OK(error); CHECK_EQ(creds->min_security_level(), GRPC_PRIVACY_AND_INTEGRITY); auto state = RequestMetadataState::NewInstance( @@ -3029,7 +3029,7 @@ TEST(CredentialsTest, TestFileExternalAccountCredsSuccessFormatJson) { }; grpc_error_handle error; auto creds = FileExternalAccountCredentials::Create(options, {}, &error); - CHECK_NE(creds, nullptr); + CHECK(creds != nullptr); CHECK_OK(error); CHECK_EQ(creds->min_security_level(), GRPC_PRIVACY_AND_INTEGRITY); auto state = RequestMetadataState::NewInstance( @@ -3194,7 +3194,7 @@ TEST(CredentialsTest, TestAwsImdsv2ExternalAccountCredsSuccess) { }; grpc_error_handle error; auto creds = AwsExternalAccountCredentials::Create(options, {}, &error); - CHECK_NE(creds, nullptr); + CHECK(creds != nullptr); CHECK_OK(error); CHECK_EQ(creds->min_security_level(), GRPC_PRIVACY_AND_INTEGRITY); auto state = RequestMetadataState::NewInstance(