proxygen
EgressStateMachineFixture Class Reference
Inheritance diagram for EgressStateMachineFixture:
testing::Test

Public Member Functions

 EgressStateMachineFixture ()
 
void follow (HTTPTransactionEgressSM::Event e)
 
void fail (HTTPTransactionEgressSM::Event e)
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 

Private Attributes

HTTPTransactionEgressSM::State instance_
 

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)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Detailed Description

Definition at line 16 of file HTTPTransactionSMTest.cpp.

Constructor & Destructor Documentation

EgressStateMachineFixture::EgressStateMachineFixture ( )
inline

Definition at line 18 of file HTTPTransactionSMTest.cpp.

18  : instance_(
19  HTTPTransactionEgressSM::getNewInstance()) {}
HTTPTransactionEgressSM::State instance_

Member Function Documentation

void EgressStateMachineFixture::fail ( HTTPTransactionEgressSM::Event  e)
inline

Definition at line 25 of file HTTPTransactionSMTest.cpp.

References EXPECT_FALSE, and proxygen::StateMachine< T >::transit().

Referenced by gtest_xml_test_utils.GTestXMLTestCase::_GetChildren(), and fatal_test.FatalTests::is_debug_build().

25  {
26  EXPECT_FALSE(HTTPTransactionEgressSM::transit(instance_, e));
27  }
HTTPTransactionEgressSM::State instance_
#define EXPECT_FALSE(condition)
Definition: gtest.h:1862
void EgressStateMachineFixture::follow ( HTTPTransactionEgressSM::Event  e)
inline

Definition at line 21 of file HTTPTransactionSMTest.cpp.

References EXPECT_TRUE, and proxygen::StateMachine< T >::transit().

21  {
22  EXPECT_TRUE(HTTPTransactionEgressSM::transit(instance_, e));
23  }
HTTPTransactionEgressSM::State instance_
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859

Member Data Documentation

HTTPTransactionEgressSM::State EgressStateMachineFixture::instance_
private

Definition at line 29 of file HTTPTransactionSMTest.cpp.


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