proxygen
fizz::server::test::MockServerStateMachine Class Reference

#include <Mocks.h>

Inheritance diagram for fizz::server::test::MockServerStateMachine:
fizz::server::ServerStateMachine fizz::server::test::MockServerStateMachineInstance fizz::server::test::MockServerStateMachineInstance

Public Member Functions

 MOCK_METHOD4 (_processAccept, folly::Optional< AsyncActions >(const State &, folly::Executor *, std::shared_ptr< const FizzServerContext > context, const std::shared_ptr< ServerExtensions > &extensions))
 
AsyncActions processAccept (const State &state, folly::Executor *executor, std::shared_ptr< const FizzServerContext > context, const std::shared_ptr< ServerExtensions > &extensions) override
 
 MOCK_METHOD2 (_processSocketData, folly::Optional< AsyncActions >(const State &, folly::IOBufQueue &))
 
AsyncActions processSocketData (const State &state, folly::IOBufQueue &queue) override
 
 MOCK_METHOD2 (_processWriteNewSessionTicket, folly::Optional< AsyncActions >(const State &, WriteNewSessionTicket &))
 
AsyncActions processWriteNewSessionTicket (const State &state, WriteNewSessionTicket write) override
 
 MOCK_METHOD2 (_processAppWrite, folly::Optional< AsyncActions >(const State &, AppWrite &))
 
AsyncActions processAppWrite (const State &state, AppWrite appWrite) override
 
 MOCK_METHOD2 (_processEarlyAppWrite, folly::Optional< AsyncActions >(const State &, EarlyAppWrite &))
 
AsyncActions processEarlyAppWrite (const State &state, EarlyAppWrite appWrite) override
 
 MOCK_METHOD1 (_processAppClose, folly::Optional< Actions >(const State &))
 
Actions processAppClose (const State &state) override
 
- Public Member Functions inherited from fizz::server::ServerStateMachine
virtual ~ServerStateMachine ()=default
 

Additional Inherited Members

- Public Types inherited from fizz::server::ServerStateMachine
using StateType = State
 
using ProcessingActions = AsyncActions
 
using CompletedActions = Actions
 

Detailed Description

Definition at line 33 of file Mocks.h.

Member Function Documentation

fizz::server::test::MockServerStateMachine::MOCK_METHOD1 ( _processAppClose  ,
folly::Optional< Actions const State & 
)
fizz::server::test::MockServerStateMachine::MOCK_METHOD2 ( _processSocketData  ,
folly::Optional< AsyncActions const State &, folly::IOBufQueue & 
)
fizz::server::test::MockServerStateMachine::MOCK_METHOD2 ( _processWriteNewSessionTicket  ,
folly::Optional< AsyncActions const State &, WriteNewSessionTicket & 
)
fizz::server::test::MockServerStateMachine::MOCK_METHOD2 ( _processAppWrite  ,
folly::Optional< AsyncActions const State &, AppWrite & 
)
fizz::server::test::MockServerStateMachine::MOCK_METHOD2 ( _processEarlyAppWrite  ,
folly::Optional< AsyncActions const State &, EarlyAppWrite & 
)
fizz::server::test::MockServerStateMachine::MOCK_METHOD4 ( _processAccept  ,
folly::Optional< AsyncActions const State &, folly::Executor *, std::shared_ptr< const FizzServerContext > context, const std::shared_ptr< ServerExtensions > &extensions 
)
AsyncActions fizz::server::test::MockServerStateMachine::processAccept ( const State state,
folly::Executor executor,
std::shared_ptr< const FizzServerContext context,
const std::shared_ptr< ServerExtensions > &  extensions 
)
inlineoverridevirtual

Reimplemented from fizz::server::ServerStateMachine.

Definition at line 42 of file Mocks.h.

References MOCK_METHOD2, and folly::gen::move.

46  {
47  return *_processAccept(state, executor, std::move(context), extensions);
48  }
context
Definition: CMakeCache.txt:563
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
Actions fizz::server::test::MockServerStateMachine::processAppClose ( const State state)
inlineoverridevirtual

Reimplemented from fizz::server::ServerStateMachine.

Definition at line 83 of file Mocks.h.

83  {
84  return *_processAppClose(state);
85  }
AsyncActions fizz::server::test::MockServerStateMachine::processAppWrite ( const State state,
AppWrite  appWrite 
)
inlineoverridevirtual

Reimplemented from fizz::server::ServerStateMachine.

Definition at line 70 of file Mocks.h.

References MOCK_METHOD2.

70  {
71  return *_processAppWrite(state, appWrite);
72  }
static AppWrite appWrite(const std::string &str)
AsyncActions fizz::server::test::MockServerStateMachine::processEarlyAppWrite ( const State state,
EarlyAppWrite  appWrite 
)
inlineoverridevirtual

Reimplemented from fizz::server::ServerStateMachine.

Definition at line 77 of file Mocks.h.

References MOCK_METHOD1.

78  {
79  return *_processEarlyAppWrite(state, appWrite);
80  }
static AppWrite appWrite(const std::string &str)
AsyncActions fizz::server::test::MockServerStateMachine::processSocketData ( const State state,
folly::IOBufQueue queue 
)
inlineoverridevirtual

Reimplemented from fizz::server::ServerStateMachine.

Definition at line 53 of file Mocks.h.

References MOCK_METHOD2.

54  {
55  return *_processSocketData(state, queue);
56  }
AsyncActions fizz::server::test::MockServerStateMachine::processWriteNewSessionTicket ( const State state,
WriteNewSessionTicket  write 
)
inlineoverridevirtual

Reimplemented from fizz::server::ServerStateMachine.

Definition at line 61 of file Mocks.h.

References MOCK_METHOD2.

63  {
64  return *_processWriteNewSessionTicket(state, write);
65  }
void write(const T &in, folly::io::Appender &appender)
Definition: Types-inl.h:112

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