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

Classes

class  MockIntToByteEncoder
 

Public Member Functions

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

Protected Attributes

ObservingPipeline< int >::Ptr pipeline
 
StrictMock< MockBytesToBytesHandler > * prevHandler {nullptr}
 
StrictMock< MockObservingHandler > * observingHandler {nullptr}
 
std::unique_ptr< StrictMock< MockBroadcastHandler > > broadcastHandler
 
StrictMock< MockBroadcastPoolpool
 

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 ()
 
 Test ()
 
 Test ()
 

Detailed Description

Definition at line 24 of file ObservingHandlerTest.cpp.

Member Function Documentation

void ObservingHandlerTest::SetUp ( )
inlineoverridevirtual

Reimplemented from testing::Test.

Definition at line 33 of file ObservingHandlerTest.cpp.

References wangle::Pipeline< R, W >::create().

33  {
36  broadcastHandler = std::make_unique<StrictMock<MockBroadcastHandler>>();
37 
39  pipeline->addBack(
41  pipeline->addBack(MockIntToByteEncoder());
42  pipeline->addBack(
43  std::shared_ptr<StrictMock<MockObservingHandler>>(observingHandler));
44  pipeline->finalize();
45  }
ObservingPipeline< int >::Ptr pipeline
StrictMock< MockBroadcastPool > pool
StrictMock< MockBytesToBytesHandler > * prevHandler
std::unique_ptr< StrictMock< MockBroadcastHandler > > broadcastHandler
StrictMock< MockObservingHandler > * observingHandler
void ObservingHandlerTest::TearDown ( )
inlineoverridevirtual

Reimplemented from testing::Test.

Definition at line 47 of file ObservingHandlerTest.cpp.

47  {
48  Mock::VerifyAndClear(broadcastHandler.get());
49 
50  broadcastHandler.reset();
51  pipeline.reset();
52  }
ObservingPipeline< int >::Ptr pipeline
std::unique_ptr< StrictMock< MockBroadcastHandler > > broadcastHandler

Member Data Documentation

std::unique_ptr<StrictMock<MockBroadcastHandler> > ObservingHandlerTest::broadcastHandler
protected

Definition at line 59 of file ObservingHandlerTest.cpp.

StrictMock<MockObservingHandler>* ObservingHandlerTest::observingHandler {nullptr}
protected

Definition at line 58 of file ObservingHandlerTest.cpp.

ObservingPipeline<int>::Ptr ObservingHandlerTest::pipeline
protected

Definition at line 55 of file ObservingHandlerTest.cpp.

StrictMock<MockBroadcastPool> ObservingHandlerTest::pool
protected

Definition at line 61 of file ObservingHandlerTest.cpp.

StrictMock<MockBytesToBytesHandler>* ObservingHandlerTest::prevHandler {nullptr}
protected

Definition at line 57 of file ObservingHandlerTest.cpp.


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