26 #include <boost/thread.hpp> 27 #include <gmock/gmock.h> 28 #include <gtest/gtest.h> 67 routingHandlerFactory,
68 childPipelineFactory),
69 routingPipeline_(routingPipeline) {}
73 return routingPipeline_;
96 VLOG(4) <<
"New pipeline with a test routing handler";
97 return std::shared_ptr<RoutingDataHandler<char>>(routingDataHandler_);
100 routingDataHandler_ = routingDataHandler;
112 : downstreamHandler_(downstreamHandler) {}
114 std::shared_ptr<folly::AsyncTransportWrapper>
socket,
117 std::shared_ptr<TransportInfo> )
override {
121 std::shared_ptr<MockBytesToBytesHandler>(downstreamHandler_));
122 pipeline->finalize();
DefaultPipeline::Ptr newRoutingPipeline() override
MockRoutingDataHandlerFactory()
void setRoutingDataHandler(MockRoutingDataHandler *routingDataHandler)
MockBytesToBytesHandler * downstreamHandler_
DefaultPipeline::Ptr routingPipeline_
MockRoutingDataHandler(uint64_t connId, Callback *cob)
AcceptPipeline::Ptr pipeline_
NetworkSocket socket(int af, int type, int protocol)
MockRoutingDataHandler * routingDataHandler_
#define MOCK_METHOD1(m,...)
AcceptPipeline::Ptr newPipeline(Acceptor *) override
std::shared_ptr< Pipeline > Ptr
Handler< R, R, W, W >::Context Context
MockAcceptPipelineFactory(AcceptPipeline::Ptr pipeline)
MockDownstreamPipelineFactory(MockBytesToBytesHandler *downstreamHandler)
MockAcceptRoutingHandler(ServerBootstrap< DefaultPipeline > *server, std::shared_ptr< RoutingDataHandlerFactory< char >> routingHandlerFactory, std::shared_ptr< RoutingDataPipelineFactory< DefaultPipeline, char >> childPipelineFactory, DefaultPipeline::Ptr routingPipeline)
#define MOCK_METHOD2(m,...)
std::shared_ptr< RoutingDataHandler< char > > newHandler(uint64_t, RoutingDataHandler< char >::Callback *) override
DefaultPipeline::Ptr newPipeline(std::shared_ptr< folly::AsyncTransportWrapper > socket, const char &, RoutingDataHandler< char > *, std::shared_ptr< TransportInfo >) override