aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/client
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@google.com>2017-05-02 23:17:36 -0700
committerGravatar Noah Eisen <ncteisen@google.com>2017-05-02 23:26:05 -0700
commit89371914c906a760cb4ac00c2754f3c27549e7ee (patch)
tree345b78ae0b38b7dc7fb4aef9859c898ed49a7594 /test/cpp/client
parent089449568c1297dcb07f354a196a35c83a91f2e6 (diff)
Fix error refcount bug
Added a missing ref in httpcli.c. Also added a test to avoid regression
Diffstat (limited to 'test/cpp/client')
-rw-r--r--test/cpp/client/credentials_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cpp/client/credentials_test.cc b/test/cpp/client/credentials_test.cc
index 418a54439a..23b3b2ef3f 100644
--- a/test/cpp/client/credentials_test.cc
+++ b/test/cpp/client/credentials_test.cc
@@ -50,6 +50,10 @@ TEST_F(CredentialsTest, InvalidGoogleRefreshToken) {
EXPECT_EQ(static_cast<CallCredentials*>(nullptr), bad1.get());
}
+TEST_F(CredentialsTest, DefaultCredentials) {
+ auto creds = GoogleDefaultCredentials();
+}
+
} // namespace testing
} // namespace grpc