proxygen
wangle::MockRoutingDataHandler Class Reference

#include <Mocks.h>

Inheritance diagram for wangle::MockRoutingDataHandler:
wangle::RoutingDataHandler< char > wangle::HandlerAdapter< R, W > wangle::Handler< R, R, W, W > wangle::HandlerBase< HandlerContext< R, W > >

Public Member Functions

 MockRoutingDataHandler (uint64_t connId, Callback *cob)
 
 MOCK_METHOD1 (transportActive, void(Context *))
 
 MOCK_METHOD2 (parseRoutingData, bool(folly::IOBufQueue &bufQueue, RoutingData &routingData))
 
 MOCK_METHOD2 (readException, void(Context *, folly::exception_wrapper ex))
 
- Public Member Functions inherited from wangle::RoutingDataHandler< char >
 RoutingDataHandler (uint64_t connId, Callback *cob)
 
 ~RoutingDataHandler () override
 
void read (Context *ctx, folly::IOBufQueue &q) override
 
void readEOF (Context *ctx) override
 
void readException (Context *ctx, folly::exception_wrapper ex) override
 
virtual bool parseRoutingData (folly::IOBufQueue &bufQueue, RoutingData &routingData)=0
 
- Public Member Functions inherited from wangle::HandlerAdapter< R, W >
void read (Context *ctx, R msg) override
 
folly::Future< folly::Unitwrite (Context *ctx, W msg) override
 
- Public Member Functions inherited from wangle::Handler< R, R, W, W >
 ~Handler () override=default
 
virtual void read (Context *ctx, Rmsg)=0
 
virtual void readEOF (Context *ctx)
 
virtual void readException (Context *ctx, folly::exception_wrapper e)
 
virtual void transportActive (Context *ctx)
 
virtual void transportInactive (Context *ctx)
 
virtual folly::Future< folly::Unitwrite (Context *ctx, Wmsg)=0
 
virtual folly::Future< folly::UnitwriteException (Context *ctx, folly::exception_wrapper e)
 
virtual folly::Future< folly::Unitclose (Context *ctx)
 
- Public Member Functions inherited from wangle::HandlerBase< HandlerContext< R, W > >
virtual ~HandlerBase ()=default
 
virtual void attachPipeline (HandlerContext< R, W > *)
 
virtual void detachPipeline (HandlerContext< R, W > *)
 
HandlerContext< R, W > * getContext ()
 

Additional Inherited Members

- Public Types inherited from wangle::HandlerAdapter< R, W >
typedef Handler< R, R, W, W >::Context Context
 
- Public Types inherited from wangle::Handler< R, R, W, W >
typedef R rin
 
typedef R rout
 
typedef W win
 
typedef W wout
 
typedef HandlerContext< R, W > Context
 
- Static Public Attributes inherited from wangle::Handler< R, R, W, W >
static const HandlerDir dir
 

Detailed Description

Definition at line 78 of file Mocks.h.

Constructor & Destructor Documentation

wangle::MockRoutingDataHandler::MockRoutingDataHandler ( uint64_t  connId,
Callback *  cob 
)
inline

Definition at line 80 of file Mocks.h.

References MOCK_METHOD1, and MOCK_METHOD2.

81  : RoutingDataHandler<char>(connId, cob) {}

Member Function Documentation

wangle::MockRoutingDataHandler::MOCK_METHOD1 ( transportActive  ,
void(Context *)   
)
wangle::MockRoutingDataHandler::MOCK_METHOD2 ( parseRoutingData  ,
bool(folly::IOBufQueue &bufQueue, RoutingData &routingData)   
)
wangle::MockRoutingDataHandler::MOCK_METHOD2 ( readException  ,
void(Context *, folly::exception_wrapper ex)   
)

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