aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/common/auth_property_iterator_test.cc
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-08-25 16:53:07 -0700
committerGravatar yang-g <yangg@google.com>2015-08-25 16:53:07 -0700
commitd090fe1379932d7d785fa805339110e70b96bd87 (patch)
tree12b5a0672159568f70fe68aaad711949d0c35a9b /test/cpp/common/auth_property_iterator_test.cc
parent9f8c100ea86aa439e1200d2111d22354f52351cf (diff)
auth context api change for string_ref
Diffstat (limited to 'test/cpp/common/auth_property_iterator_test.cc')
-rw-r--r--test/cpp/common/auth_property_iterator_test.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/cpp/common/auth_property_iterator_test.cc b/test/cpp/common/auth_property_iterator_test.cc
index 630c38c7f6..e6226d6a09 100644
--- a/test/cpp/common/auth_property_iterator_test.cc
+++ b/test/cpp/common/auth_property_iterator_test.cc
@@ -35,11 +35,14 @@
#include <grpc++/support/auth_context.h>
#include <gtest/gtest.h>
#include "src/cpp/common/secure_auth_context.h"
+#include "test/cpp/util/string_ref_helper.h"
extern "C" {
#include "src/core/security/security_context.h"
}
+using ::grpc::testing::ToString;
+
namespace grpc {
namespace {
@@ -84,12 +87,12 @@ TEST_F(AuthPropertyIteratorTest, GeneralTest) {
AuthProperty p1 = *iter;
iter++;
AuthProperty p2 = *iter;
- EXPECT_EQ("name", p0.first);
- EXPECT_EQ("chapi", p0.second);
- EXPECT_EQ("name", p1.first);
- EXPECT_EQ("chapo", p1.second);
- EXPECT_EQ("foo", p2.first);
- EXPECT_EQ("bar", p2.second);
+ EXPECT_EQ("name", ToString(p0.first));
+ EXPECT_EQ("chapi", ToString(p0.second));
+ EXPECT_EQ("name", ToString(p1.first));
+ EXPECT_EQ("chapo", ToString(p1.second));
+ EXPECT_EQ("foo", ToString(p2.first));
+ EXPECT_EQ("bar", ToString(p2.second));
++iter;
EXPECT_EQ(empty_iter, iter);
}