diff options
author | Abhishek Kumar <abhikumar@google.com> | 2015-08-05 11:04:45 -0700 |
---|---|---|
committer | Abhishek Kumar <abhikumar@google.com> | 2015-08-05 11:04:45 -0700 |
commit | e1c867dbee903353ac7b701776429b236837f7f0 (patch) | |
tree | c9c70d928808f7a03ef1466c717ee019edcab90e /test/cpp/interop/server.cc | |
parent | 65b074925161a2ff28447ebac4b311cab80c37ae (diff) |
Added interop test for status_code_with_message
Diffstat (limited to 'test/cpp/interop/server.cc')
-rw-r--r-- | test/cpp/interop/server.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/cpp/interop/server.cc b/test/cpp/interop/server.cc index db87872cf5..05a10de51e 100644 --- a/test/cpp/interop/server.cc +++ b/test/cpp/interop/server.cc @@ -105,6 +105,13 @@ class TestServiceImpl : public TestService::Service { return Status(grpc::StatusCode::INTERNAL, "Error creating payload."); } } + + if (request->has_response_status()) { + return Status(static_cast<grpc::StatusCode> + (request->response_status().code()), + request->response_status().message()); + } + return Status::OK; } |