Definition at line 26 of file BroadcastPoolTest.cpp.
void BroadcastPoolTest::SetUp |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from testing::Test.
Definition at line 28 of file BroadcastPoolTest.cpp.
References addr.
29 addr = std::make_shared<SocketAddress>();
33 std::make_shared<StrictMock<MockBroadcastPipelineFactory>>();
35 pool = std::make_unique<BroadcastPool<int, std::string>>(
38 std::make_shared<ClientBootstrapFactory>());
std::unique_ptr< BroadcastPool< int, std::string > > pool
std::shared_ptr< StrictMock< MockServerPool > > serverPool
std::shared_ptr< SocketAddress > addr
std::shared_ptr< StrictMock< MockBroadcastPipelineFactory > > pipelineFactory
void BroadcastPoolTest::startServer |
( |
| ) |
|
|
inlineprotected |
Definition at line 67 of file BroadcastPoolTest.cpp.
References addr.
68 server = std::make_unique<ServerBootstrap<DefaultPipeline>>();
69 server->childPipeline(std::make_shared<ServerPipelineFactory>());
71 server->getSockets()[0]->getAddress(
addr.get());
std::shared_ptr< SocketAddress > addr
std::unique_ptr< ServerBootstrap< DefaultPipeline > > server
void BroadcastPoolTest::stopServer |
( |
| ) |
|
|
inlineprotected |
void BroadcastPoolTest::TearDown |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from testing::Test.
Definition at line 43 of file BroadcastPoolTest.cpp.
References addr.
std::unique_ptr< BroadcastPool< int, std::string > > pool
std::shared_ptr< StrictMock< MockServerPool > > serverPool
std::shared_ptr< SocketAddress > addr
std::shared_ptr< StrictMock< MockBroadcastPipelineFactory > > pipelineFactory
The documentation for this class was generated from the following file: