diff options
author | yang-g <yangg@google.com> | 2015-07-16 21:00:51 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-07-16 21:00:51 -0700 |
commit | 7ef7232dd9eba4be7d81b59a6bb59c4fd634ea08 (patch) | |
tree | 24d6752a48e3b98468588b09ae1d988a2d3f0423 /test/cpp/common/secure_auth_context_test.cc | |
parent | 14b3684dee8d3d8612f9338cd0f55a44c5a16a8e (diff) |
split iterator into its own file
Diffstat (limited to 'test/cpp/common/secure_auth_context_test.cc')
-rw-r--r-- | test/cpp/common/secure_auth_context_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cpp/common/secure_auth_context_test.cc b/test/cpp/common/secure_auth_context_test.cc index c8863e33c2..f18a04178e 100644 --- a/test/cpp/common/secure_auth_context_test.cc +++ b/test/cpp/common/secure_auth_context_test.cc @@ -77,13 +77,13 @@ TEST_F(SecureAuthContextTest, Iterators) { ctx->peer_identity_property_name = ctx->properties[0].name; SecureAuthContext context(ctx); - AuthContext::PropertyIterator iter = context.begin(); + AuthPropertyIterator iter = context.begin(); EXPECT_TRUE(context.end() != iter); - AuthContext::Property p0 = *iter; + AuthProperty p0 = *iter; ++iter; - AuthContext::Property p1 = *iter; + AuthProperty p1 = *iter; iter++; - AuthContext::Property p2 = *iter; + AuthProperty p2 = *iter; EXPECT_EQ("name", p0.first); EXPECT_EQ("chapi", p0.second); EXPECT_EQ("name", p1.first); @@ -94,7 +94,7 @@ TEST_F(SecureAuthContextTest, Iterators) { EXPECT_EQ(context.end(), iter); // Range-based for loop test. int i = 0; - for (const AuthContext::Property p : context) { + for (auto p : context) { switch (i++) { case 0: EXPECT_EQ("name", p.first); |