aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/server_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/grpc++/server_context.h')
-rw-r--r--include/grpc++/server_context.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/grpc++/server_context.h b/include/grpc++/server_context.h
index 2123d03291..6f094eda3d 100644
--- a/include/grpc++/server_context.h
+++ b/include/grpc++/server_context.h
@@ -76,6 +76,10 @@ class CallOpBuffer;
class CompletionQueue;
class Server;
+namespace testing {
+class InteropContextInspector;
+} // namespace testing
+
// Interface of server side rpc context.
class ServerContext {
public:
@@ -93,7 +97,7 @@ class ServerContext {
void AddInitialMetadata(const grpc::string& key, const grpc::string& value);
void AddTrailingMetadata(const grpc::string& key, const grpc::string& value);
- bool IsCancelled();
+ bool IsCancelled() const;
const std::multimap<grpc::string, grpc::string>& client_metadata() {
return client_metadata_;
@@ -102,6 +106,7 @@ class ServerContext {
std::shared_ptr<const AuthContext> auth_context() const;
private:
+ friend class ::grpc::testing::InteropContextInspector;
friend class ::grpc::Server;
template <class W, class R>
friend class ::grpc::ServerAsyncReader;