proxygen
wangle::MockMessageToByteEncoder< T > Class Template Reference

#include <Mocks.h>

Inheritance diagram for wangle::MockMessageToByteEncoder< T >:
wangle::MessageToByteEncoder< T > wangle::OutboundHandler< T, std::unique_ptr< folly::IOBuf > > wangle::HandlerBase< OutboundHandlerContext< std::unique_ptr< folly::IOBuf > > >

Public Types

typedef MessageToByteEncoder< T >::Context Context
 
- Public Types inherited from wangle::MessageToByteEncoder< T >
typedef OutboundHandler< T, std::unique_ptr< folly::IOBuf > >::Context Context
 
- Public Types inherited from wangle::OutboundHandler< T, std::unique_ptr< folly::IOBuf > >
typedef folly::Unit rin
 
typedef folly::Unit rout
 
typedef T win
 
typedef std::unique_ptr< folly::IOBufwout
 
typedef OutboundHandlerContext< std::unique_ptr< folly::IOBuf > > Context
 

Public Member Functions

 MOCK_METHOD1_T (mockEncode, folly::MoveWrapper< std::unique_ptr< folly::IOBuf >>(T &))
 
std::unique_ptr< folly::IOBufencode (T &data) override
 
- Public Member Functions inherited from wangle::MessageToByteEncoder< T >
folly::Future< folly::Unitwrite (Context *ctx, Tmsg) override
 
- Public Member Functions inherited from wangle::OutboundHandler< T, std::unique_ptr< folly::IOBuf > >
 ~OutboundHandler () override=default
 
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< OutboundHandlerContext< std::unique_ptr< folly::IOBuf > > >
virtual ~HandlerBase ()=default
 
virtual void attachPipeline (OutboundHandlerContext< std::unique_ptr< folly::IOBuf > > *)
 
virtual void detachPipeline (OutboundHandlerContext< std::unique_ptr< folly::IOBuf > > *)
 
OutboundHandlerContext< std::unique_ptr< folly::IOBuf > > * getContext ()
 

Additional Inherited Members

- Static Public Attributes inherited from wangle::OutboundHandler< T, std::unique_ptr< folly::IOBuf > >
static const HandlerDir dir
 

Detailed Description

template<typename T>
class wangle::MockMessageToByteEncoder< T >

Definition at line 50 of file Mocks.h.

Member Typedef Documentation

Definition at line 52 of file Mocks.h.

Member Function Documentation

template<typename T >
std::unique_ptr<folly::IOBuf> wangle::MockMessageToByteEncoder< T >::encode ( T data)
inlineoverridevirtual

Implements wangle::MessageToByteEncoder< T >.

Definition at line 57 of file Mocks.h.

57  {
58  return mockEncode(data).move();
59  }
static constexpr uint64_t data[1]
Definition: Fingerprint.cpp:43
template<typename T >
wangle::MockMessageToByteEncoder< T >::MOCK_METHOD1_T ( mockEncode  ,
folly::MoveWrapper< std::unique_ptr< folly::IOBuf >>  T & 
)

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