add RPC loopback test

This commit is contained in:
Michael Davidsaver
2017-07-03 19:19:16 +02:00
parent 3eb601c210
commit 4fe837c9a0
7 changed files with 118 additions and 7 deletions

View File

@@ -477,11 +477,12 @@ string RPCChannelProvider::PROVIDER_NAME("rpcService");
Status RPCChannelProvider::noSuchChannelStatus(Status::STATUSTYPE_ERROR, "no such channel");
RPCServer::RPCServer()
RPCServer::RPCServer(const Configuration::const_shared_pointer &conf)
:m_channelProviderImpl(new RPCChannelProvider)
{
ChannelProvider::shared_pointer prov(new RPCChannelProvider);
m_serverContext = ServerContext::create(ServerContext::Config()
.config(conf)
.provider(m_channelProviderImpl));
}