|
|
|
@ -213,7 +213,7 @@ class ServiceA GRPC_FINAL { |
|
|
|
|
void BaseClassMustBeDerivedFromService(const Service *service) {} |
|
|
|
|
public: |
|
|
|
|
WithStreamedUnaryMethod_MethodA1() { |
|
|
|
|
::grpc::Service::MarkMethodStreamedUnary(0, |
|
|
|
|
::grpc::Service::MarkMethodStreamed(0, |
|
|
|
|
new ::grpc::StreamedUnaryHandler< ::grpc::testing::Request, ::grpc::testing::Response>(std::bind(&WithStreamedUnaryMethod_MethodA1<BaseClass>::StreamedMethodA1, this, std::placeholders::_1, std::placeholders::_2))); |
|
|
|
|
} |
|
|
|
|
~WithStreamedUnaryMethod_MethodA1() GRPC_OVERRIDE { |
|
|
|
@ -228,6 +228,8 @@ class ServiceA GRPC_FINAL { |
|
|
|
|
virtual ::grpc::Status StreamedMethodA1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::grpc::testing::Request,::grpc::testing::Response>* server_unary_streamer) = 0; |
|
|
|
|
}; |
|
|
|
|
typedef WithStreamedUnaryMethod_MethodA1<Service > StreamedUnaryService; |
|
|
|
|
typedef Service SplitStreamedService; |
|
|
|
|
typedef WithStreamedUnaryMethod_MethodA1<Service > StreamedService; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// ServiceB leading comment 1 |
|
|
|
@ -312,7 +314,7 @@ class ServiceB GRPC_FINAL { |
|
|
|
|
void BaseClassMustBeDerivedFromService(const Service *service) {} |
|
|
|
|
public: |
|
|
|
|
WithStreamedUnaryMethod_MethodB1() { |
|
|
|
|
::grpc::Service::MarkMethodStreamedUnary(0, |
|
|
|
|
::grpc::Service::MarkMethodStreamed(0, |
|
|
|
|
new ::grpc::StreamedUnaryHandler< ::grpc::testing::Request, ::grpc::testing::Response>(std::bind(&WithStreamedUnaryMethod_MethodB1<BaseClass>::StreamedMethodB1, this, std::placeholders::_1, std::placeholders::_2))); |
|
|
|
|
} |
|
|
|
|
~WithStreamedUnaryMethod_MethodB1() GRPC_OVERRIDE { |
|
|
|
@ -327,6 +329,8 @@ class ServiceB GRPC_FINAL { |
|
|
|
|
virtual ::grpc::Status StreamedMethodB1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::grpc::testing::Request,::grpc::testing::Response>* server_unary_streamer) = 0; |
|
|
|
|
}; |
|
|
|
|
typedef WithStreamedUnaryMethod_MethodB1<Service > StreamedUnaryService; |
|
|
|
|
typedef Service SplitStreamedService; |
|
|
|
|
typedef WithStreamedUnaryMethod_MethodB1<Service > StreamedService; |
|
|
|
|
}; |
|
|
|
|
// ServiceB trailing comment 1 |
|
|
|
|
|
|
|
|
|