proxygen
BroadcastHandlerTest::MockBroadcastHandler Class Reference
Inheritance diagram for BroadcastHandlerTest::MockBroadcastHandler:
wangle::BroadcastHandler< std::string, std::string > wangle::HandlerAdapter< std::string, std::unique_ptr< folly::IOBuf > > wangle::Handler< std::string, std::string, std::unique_ptr< folly::IOBuf >, std::unique_ptr< folly::IOBuf > > wangle::HandlerBase< HandlerContext< std::string, std::unique_ptr< folly::IOBuf > > > testing::StrictMock< BroadcastHandlerTest::MockBroadcastHandler > testing::StrictMock< BroadcastHandlerTest::MockBroadcastHandler > testing::StrictMock< BroadcastHandlerTest::MockBroadcastHandler >

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 25 of file BroadcastHandlerTest.cpp.

Member Function Documentation

folly::Future<folly::Unit> BroadcastHandlerTest::MockBroadcastHandler::close ( Context ctx)
inlineoverride

Definition at line 31 of file BroadcastHandlerTest.cpp.

31  {
32  return mockClose(ctx).move();
33  }
BroadcastHandlerTest::MockBroadcastHandler::MOCK_METHOD1 ( mockClose  ,
folly::MoveWrapper< folly::Future< folly::Unit >>  Context * 
)

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