proxygen
wangle::MockRoutingDataHandlerFactory Class Reference

#include <Mocks.h>

Inheritance diagram for wangle::MockRoutingDataHandlerFactory:
wangle::RoutingDataHandlerFactory< char >

Public Member Functions

 MockRoutingDataHandlerFactory ()
 
std::shared_ptr< RoutingDataHandler< char > > newHandler (uint64_t, RoutingDataHandler< char >::Callback *) override
 
void setRoutingDataHandler (MockRoutingDataHandler *routingDataHandler)
 
- Public Member Functions inherited from wangle::RoutingDataHandlerFactory< char >
virtual ~RoutingDataHandlerFactory ()
 

Protected Attributes

MockRoutingDataHandlerroutingDataHandler_
 

Detailed Description

Definition at line 89 of file Mocks.h.

Constructor & Destructor Documentation

wangle::MockRoutingDataHandlerFactory::MockRoutingDataHandlerFactory ( )
inline

Definition at line 91 of file Mocks.h.

91 {}

Member Function Documentation

std::shared_ptr<RoutingDataHandler<char> > wangle::MockRoutingDataHandlerFactory::newHandler ( uint64_t  ,
RoutingDataHandler< char >::Callback *   
)
inlineoverridevirtual

Implements wangle::RoutingDataHandlerFactory< char >.

Definition at line 93 of file Mocks.h.

95  {
96  VLOG(4) << "New pipeline with a test routing handler";
97  return std::shared_ptr<RoutingDataHandler<char>>(routingDataHandler_);
98  }
MockRoutingDataHandler * routingDataHandler_
Definition: Mocks.h:104
void wangle::MockRoutingDataHandlerFactory::setRoutingDataHandler ( MockRoutingDataHandler routingDataHandler)
inline

Definition at line 99 of file Mocks.h.

99  {
100  routingDataHandler_ = routingDataHandler;
101  }
MockRoutingDataHandler * routingDataHandler_
Definition: Mocks.h:104

Member Data Documentation

MockRoutingDataHandler* wangle::MockRoutingDataHandlerFactory::routingDataHandler_
protected

Definition at line 104 of file Mocks.h.


The documentation for this class was generated from the following file: