aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/client
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2015-07-21 18:43:28 +0000
committerGravatar vpai <vpai@cent6-instance.c.grpc-testing.internal>2015-07-21 18:44:20 +0000
commitc4af2249705842f66b665c717e2ccbc83b9b1ffb (patch)
treed31c76b76c32852f700c7e369977dbee9a7c2c60 /test/cpp/client
parent556875d1d0d77c50e0ed8ff9007d42387184fbf8 (diff)
Remove one range-based for and do appropriate static casts on nullptr
Diffstat (limited to 'test/cpp/client')
-rw-r--r--test/cpp/client/credentials_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/client/credentials_test.cc b/test/cpp/client/credentials_test.cc
index ee94f455a4..bbf7705f0a 100644
--- a/test/cpp/client/credentials_test.cc
+++ b/test/cpp/client/credentials_test.cc
@@ -47,7 +47,7 @@ class CredentialsTest : public ::testing::Test {
TEST_F(CredentialsTest, InvalidServiceAccountCreds) {
std::shared_ptr<Credentials> bad1 = ServiceAccountCredentials("", "", 1);
- EXPECT_EQ(nullptr, bad1.get());
+ EXPECT_EQ(static_cast<Credentials *>(nullptr), bad1.get());
}
} // namespace testing