proxygen
wangle::MockBroadcastHandler Class Reference

#include <Mocks.h>

Inheritance diagram for wangle::MockBroadcastHandler:
wangle::BroadcastHandler< int, std::string > wangle::HandlerAdapter< int, std::unique_ptr< folly::IOBuf > > wangle::Handler< int, int, std::unique_ptr< folly::IOBuf >, std::unique_ptr< folly::IOBuf > > wangle::HandlerBase< HandlerContext< int, std::unique_ptr< folly::IOBuf > > >

Public Member Functions

 MOCK_METHOD1 (subscribe, uint64_t(Subscriber< int, std::string > *))
 
 MOCK_METHOD1 (unsubscribe, void(uint64_t))
 
- Public Member Functions inherited from wangle::BroadcastHandler< int, std::string >
 ~BroadcastHandler () override
 
void read (Context *ctx, intdata) override
 
void readEOF (Context *ctx) override
 
void readException (Context *ctx, folly::exception_wrapper ex) override
 
virtual uint64_t subscribe (Subscriber< int, std::string > *subscriber)
 
virtual void unsubscribe (uint64_t subscriptionId)
 
virtual void closeIfIdle ()
 
virtual void onSubscribe (Subscriber< int, std::string > *)
 
virtual void onUnsubscribe (Subscriber< int, std::string > *)
 
virtual void onData (int &)
 
uint64_t getArbitraryIdentifier ()
 
- Public Member Functions inherited from wangle::HandlerAdapter< int, std::unique_ptr< folly::IOBuf > >
void read (Context *ctx, intmsg) override
 
folly::Future< folly::Unitwrite (Context *ctx, std::unique_ptr< folly::IOBuf >msg) override
 
- Public Member Functions inherited from wangle::Handler< int, int, std::unique_ptr< folly::IOBuf >, std::unique_ptr< folly::IOBuf > >
 ~Handler () override=default
 
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::UnitwriteException (Context *ctx, folly::exception_wrapper e)
 
virtual folly::Future< folly::Unitclose (Context *ctx)
 
- Public Member Functions inherited from wangle::HandlerBase< HandlerContext< int, std::unique_ptr< folly::IOBuf > > >
virtual ~HandlerBase ()=default
 
virtual void attachPipeline (HandlerContext< int, std::unique_ptr< folly::IOBuf > > *)
 
virtual void detachPipeline (HandlerContext< int, std::unique_ptr< folly::IOBuf > > *)
 
HandlerContext< int, std::unique_ptr< folly::IOBuf > > * getContext ()
 

Additional Inherited Members

- Public Types inherited from wangle::BroadcastHandler< int, std::string >
typedef HandlerAdapter< int, std::unique_ptr< folly::IOBuf > >::Context Context
 
- Public Types inherited from wangle::HandlerAdapter< int, std::unique_ptr< folly::IOBuf > >
typedef Handler< int, int, std::unique_ptr< folly::IOBuf >, std::unique_ptr< folly::IOBuf > >::Context Context
 
- Public Types inherited from wangle::Handler< int, int, std::unique_ptr< folly::IOBuf >, std::unique_ptr< folly::IOBuf > >
typedef int rin
 
typedef int rout
 
typedef std::unique_ptr< folly::IOBufwin
 
typedef std::unique_ptr< folly::IOBufwout
 
typedef HandlerContext< int, std::unique_ptr< folly::IOBuf > > Context
 
- Static Public Attributes inherited from wangle::Handler< int, int, std::unique_ptr< folly::IOBuf >, std::unique_ptr< folly::IOBuf > >
static const HandlerDir dir
 
- Protected Member Functions inherited from wangle::BroadcastHandler< int, std::string >
void forEachSubscriber (FUNC f)
 

Detailed Description

Definition at line 119 of file Mocks.h.

Member Function Documentation

wangle::MockBroadcastHandler::MOCK_METHOD1 ( subscribe  ,
uint64_t(Subscriber< int, std::string > *)   
)
wangle::MockBroadcastHandler::MOCK_METHOD1 ( unsubscribe  ,
void(uint64_t  
)

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