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

Public Member Functions

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

Private Attributes

HTTPTransactionIngressSM::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 32 of file HTTPTransactionSMTest.cpp.

Constructor & Destructor Documentation

IngressStateMachineFixture::IngressStateMachineFixture ( )
inline

Definition at line 34 of file HTTPTransactionSMTest.cpp.

34  :
35  instance_(HTTPTransactionIngressSM::getNewInstance()) {}
HTTPTransactionIngressSM::State instance_

Member Function Documentation

void IngressStateMachineFixture::fail ( HTTPTransactionIngressSM::Event  e)
inline

Definition at line 41 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().

41  {
42  EXPECT_FALSE(HTTPTransactionIngressSM::transit(instance_, e));
43  }
HTTPTransactionIngressSM::State instance_
#define EXPECT_FALSE(condition)
Definition: gtest.h:1862
void IngressStateMachineFixture::follow ( HTTPTransactionIngressSM::Event  e)
inline

Definition at line 37 of file HTTPTransactionSMTest.cpp.

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

37  {
38  EXPECT_TRUE(HTTPTransactionIngressSM::transit(instance_, e));
39  }
HTTPTransactionIngressSM::State instance_
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859

Member Data Documentation

HTTPTransactionIngressSM::State IngressStateMachineFixture::instance_
private

Definition at line 45 of file HTTPTransactionSMTest.cpp.


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