Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
48c9ca2b
Commit
48c9ca2b
authored
Aug 30, 2016
by
Vijay Pai
Browse files
Options
Downloads
Patches
Plain Diff
Update golden file
parent
d4d5f4cd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/cpp/codegen/compiler_test_golden
+17
-17
17 additions, 17 deletions
test/cpp/codegen/compiler_test_golden
with
17 additions
and
17 deletions
test/cpp/codegen/compiler_test_golden
+
17
−
17
View file @
48c9ca2b
...
...
@@ -43,10 +43,10 @@
#include <grpc++/impl/codegen/async_stream.h>
#include <grpc++/impl/codegen/async_unary_call.h>
#include <grpc++/impl/codegen/fc_unary.h>
#include <grpc++/impl/codegen/method_handler_impl.h>
#include <grpc++/impl/codegen/proto_utils.h>
#include <grpc++/impl/codegen/rpc_method.h>
#include <grpc++/impl/codegen/server_streamed_unary.h>
#include <grpc++/impl/codegen/service_type.h>
#include <grpc++/impl/codegen/status.h>
#include <grpc++/impl/codegen/stub_options.h>
...
...
@@ -209,15 +209,15 @@ class ServiceA GRPC_FINAL {
}
};
template <class BaseClass>
class With
FC
UnaryMethod_MethodA1 : public BaseClass {
class With
Streamed
UnaryMethod_MethodA1 : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service *service) {}
public:
With
FC
UnaryMethod_MethodA1() {
::grpc::Service::MarkMethod
FC
Unary(0,
new ::grpc::
FCUnaryMethodHandler<Service,
::grpc::testing::Request, ::grpc::testing::Response>(std::bind(&With
FC
UnaryMethod_MethodA1<BaseClass>::
FC
MethodA1, this, std::placeholders::_1, std::placeholders::_2)));
With
Streamed
UnaryMethod_MethodA1() {
::grpc::Service::MarkMethod
Streamed
Unary(0,
new ::grpc::
StreamedUnaryHandler<
::grpc::testing::Request, ::grpc::testing::Response>(std::bind(&With
Streamed
UnaryMethod_MethodA1<BaseClass>::
Streamed
MethodA1, this, std::placeholders::_1, std::placeholders::_2)));
}
~With
FC
UnaryMethod_MethodA1() GRPC_OVERRIDE {
~With
Streamed
UnaryMethod_MethodA1() GRPC_OVERRIDE {
BaseClassMustBeDerivedFromService(this);
}
// disable regular version of this method
...
...
@@ -225,10 +225,10 @@ class ServiceA GRPC_FINAL {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
// replace default version of
this
method with
FCU
nary
virtual ::grpc::Status
FC
MethodA1(::grpc::ServerContext* context, ::grpc::
FCUnary
< ::grpc::testing::Request,::grpc::testing::Response>*
fc_unary
) = 0;
// replace default version of method with
streamed u
nary
virtual ::grpc::Status
Streamed
MethodA1(::grpc::ServerContext* context, ::grpc::
ServerUnaryStreamer
< ::grpc::testing::Request,::grpc::testing::Response>*
server_unary_streamer
) = 0;
};
typedef With
FC
UnaryMethod_MethodA1<Service >
FC
UnaryService;
typedef With
Streamed
UnaryMethod_MethodA1<Service >
Streamed
UnaryService;
};
// ServiceB leading comment 1
...
...
@@ -308,15 +308,15 @@ class ServiceB GRPC_FINAL {
}
};
template <class BaseClass>
class With
FC
UnaryMethod_MethodB1 : public BaseClass {
class With
Streamed
UnaryMethod_MethodB1 : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service *service) {}
public:
With
FC
UnaryMethod_MethodB1() {
::grpc::Service::MarkMethod
FC
Unary(0,
new ::grpc::
FCUnaryMethodHandler<Service,
::grpc::testing::Request, ::grpc::testing::Response>(std::bind(&With
FC
UnaryMethod_MethodB1<BaseClass>::
FC
MethodB1, this, std::placeholders::_1, std::placeholders::_2)));
With
Streamed
UnaryMethod_MethodB1() {
::grpc::Service::MarkMethod
Streamed
Unary(0,
new ::grpc::
StreamedUnaryHandler<
::grpc::testing::Request, ::grpc::testing::Response>(std::bind(&With
Streamed
UnaryMethod_MethodB1<BaseClass>::
Streamed
MethodB1, this, std::placeholders::_1, std::placeholders::_2)));
}
~With
FC
UnaryMethod_MethodB1() GRPC_OVERRIDE {
~With
Streamed
UnaryMethod_MethodB1() GRPC_OVERRIDE {
BaseClassMustBeDerivedFromService(this);
}
// disable regular version of this method
...
...
@@ -324,10 +324,10 @@ class ServiceB GRPC_FINAL {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
// replace default version of
this
method with
FCU
nary
virtual ::grpc::Status
FC
MethodB1(::grpc::ServerContext* context, ::grpc::
FCUnary
< ::grpc::testing::Request,::grpc::testing::Response>*
fc_unary
) = 0;
// replace default version of method with
streamed u
nary
virtual ::grpc::Status
Streamed
MethodB1(::grpc::ServerContext* context, ::grpc::
ServerUnaryStreamer
< ::grpc::testing::Request,::grpc::testing::Response>*
server_unary_streamer
) = 0;
};
typedef With
FC
UnaryMethod_MethodB1<Service >
FC
UnaryService;
typedef With
Streamed
UnaryMethod_MethodB1<Service >
Streamed
UnaryService;
};
// ServiceB trailing comment 1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment