proxygen
fizz::server::test::FizzServerTest Class Reference
Inheritance diagram for fizz::server::test::FizzServerTest:
testing::Test

Public Member Functions

void SetUp () override
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 

Protected Member Functions

void accept ()
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 

Protected Attributes

std::shared_ptr< FizzServerContextcontext_
 
EventBase evb_
 
std::unique_ptr< TestFizzServer, DelayedDestruction::DestructorfizzServer_
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Definition at line 53 of file FizzServerTest.cpp.

Member Function Documentation

void fizz::server::test::FizzServerTest::accept ( )
inlineprotected

Definition at line 61 of file FizzServerTest.cpp.

References testing::_, evb_, EXPECT_CALL, and testing::InvokeWithoutArgs().

61  {
63  *MockServerStateMachineInstance::instance, _processAccept(_, _, _, _))
64  .WillOnce(InvokeWithoutArgs([] { return AsyncActions(Actions()); }));
65  fizzServer_->fizzServer_.accept(&evb_, context_);
66  }
boost::variant< Actions, folly::Future< Actions >> AsyncActions
Definition: Actions.h:52
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
static MockServerStateMachineInstance * instance
std::unique_ptr< TestFizzServer, DelayedDestruction::Destructor > fizzServer_
folly::small_vector< Action, 4 > Actions
Definition: Actions.h:51
#define EXPECT_CALL(obj, call)
const internal::AnythingMatcher _
std::shared_ptr< FizzServerContext > context_
void fizz::server::test::FizzServerTest::SetUp ( )
inlineoverridevirtual

Reimplemented from testing::Test.

Definition at line 55 of file FizzServerTest.cpp.

55  {
56  context_ = std::make_shared<FizzServerContext>();
57  fizzServer_.reset(new TestFizzServer());
58  }
std::unique_ptr< TestFizzServer, DelayedDestruction::Destructor > fizzServer_
std::shared_ptr< FizzServerContext > context_

Member Data Documentation

std::shared_ptr<FizzServerContext> fizz::server::test::FizzServerTest::context_
protected

Definition at line 68 of file FizzServerTest.cpp.

EventBase fizz::server::test::FizzServerTest::evb_
protected

Definition at line 69 of file FizzServerTest.cpp.

std::unique_ptr<TestFizzServer, DelayedDestruction::Destructor> fizz::server::test::FizzServerTest::fizzServer_
protected

Definition at line 70 of file FizzServerTest.cpp.


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