changed method name in test.proto to more accurately reflect how the calls will be used

pull/8234/head
Noah Eisen 9 years ago
parent a27eb1d07a
commit 02e70ed120
  1. 5
      src/proto/grpc/testing/test.proto
  2. 6
      test/cpp/interop/interop_client.cc

@ -70,8 +70,9 @@ service TestService {
rpc HalfDuplexCall(stream StreamingOutputCallRequest)
returns (stream StreamingOutputCallResponse);
// A call that no server should implement
rpc UnimplementedCall(grpc.testing.Empty) returns (grpc.testing.Empty);
// The test server will not implement this method. It will be used
// to test the behavior when clients call unimplemented methods.
rpc UnimplementedMethod(grpc.testing.Empty) returns (grpc.testing.Empty);
}
// A simple service NOT implemented at servers so clients can test for

@ -944,15 +944,15 @@ bool InteropClient::DoUnimplementedMethod() {
Empty response = Empty::default_instance();
ClientContext context;
gpr_log(GPR_DEBUG, "here");
Status s = serviceStub_.Get()->UnimplementedCall(
Status s = serviceStub_.Get()->UnimplementedMethod(
&context, request, &response);
if (!AssertStatusCode(s, StatusCode::UNIMPLEMENTED)) {
return false;
}
GPR_ASSERT(s.error_message().empty());
gpr_log(GPR_DEBUG, "unimplemented rpc done.");
return true;
}

Loading…
Cancel
Save