aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/server
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2017-05-04 10:02:24 -0700
committerGravatar Vijay Pai <vpai@google.com>2017-07-14 16:23:54 -0700
commit3d7d5f4ed222b687ecbd03c172e1042b7d460304 (patch)
treea47a74501f11b78fd9642a6d507813a43b7d9ddb /src/cpp/server
parentabcdfc9676c46a7f04091cf0e7f84f0e2b3fcf86 (diff)
Create inproc transport, add relevant tests, exclude irrelevant tests
Diffstat (limited to 'src/cpp/server')
-rw-r--r--src/cpp/server/server_cc.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpp/server/server_cc.cc b/src/cpp/server/server_cc.cc
index 3bff9999b9..60e067d89d 100644
--- a/src/cpp/server/server_cc.cc
+++ b/src/cpp/server/server_cc.cc
@@ -36,7 +36,9 @@
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
+#include "src/core/ext/transport/inproc/inproc_transport.h"
#include "src/core/lib/profiling/timers.h"
+#include "src/cpp/client/create_channel_internal.h"
#include "src/cpp/server/health/default_health_check_service.h"
#include "src/cpp/thread_manager/thread_manager.h"
@@ -422,6 +424,13 @@ void Server::SetGlobalCallbacks(GlobalCallbacks* callbacks) {
grpc_server* Server::c_server() { return server_; }
+std::shared_ptr<Channel> Server::InProcessChannel(
+ const ChannelArguments& args) {
+ grpc_channel_args channel_args = args.c_channel_args();
+ return CreateChannelInternal(
+ "inproc", grpc_inproc_channel_create(server_, &channel_args, nullptr));
+}
+
static grpc_server_register_method_payload_handling PayloadHandlingForMethod(
internal::RpcServiceMethod* method) {
switch (method->method_type()) {