aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop/server_helper.cc
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-07-15 14:58:32 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-07-15 14:58:32 -0700
commit6dd49a5c8f64369ebc269fdc41a97c4a27f160f5 (patch)
tree3903209ddc41a8ba751b889abe80676c4e04a411 /test/cpp/interop/server_helper.cc
parente4109866359b711bd618b2890c7696f59a2b813c (diff)
Added some methods to context inspector. Also minor tweak to server context IsCancelled() method
Diffstat (limited to 'test/cpp/interop/server_helper.cc')
-rw-r--r--test/cpp/interop/server_helper.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/cpp/interop/server_helper.cc b/test/cpp/interop/server_helper.cc
index 0f8b89ced2..30a78ffddf 100644
--- a/test/cpp/interop/server_helper.cc
+++ b/test/cpp/interop/server_helper.cc
@@ -62,5 +62,14 @@ InteropContextInspector::InteropContextInspector(
const ::grpc::ServerContext& context)
: context_(context) {}
+std::shared_ptr<const AuthContext> InteropContextInspector::GetAuthContext()
+ const {
+ return context_.auth_context();
+}
+
+bool InteropContextInspector::IsCancelled() const {
+ return context_.IsCancelled();
+}
+
} // namespace testing
} // namespace grpc