proxygen
|
#include <wangle/bootstrap/ServerBootstrap.h>
#include <wangle/channel/broadcast/BroadcastPool.h>
#include <wangle/channel/broadcast/test/Mocks.h>
#include "wangle/channel/Handler.h"
Go to the source code of this file.
Classes | |
class | BroadcastPoolTest |
class | BroadcastPoolTest::ServerPipelineFactory |
Functions | |
TEST_F (BroadcastPoolTest, BasicConnect) | |
TEST_F (BroadcastPoolTest, OutstandingConnect) | |
TEST_F (BroadcastPoolTest, ConnectError) | |
TEST_F (BroadcastPoolTest, ConnectErrorServerPool) | |
TEST_F (BroadcastPoolTest, RoutingDataException) | |
TEST_F (BroadcastPoolTest, RoutingDataPipelineDeletion) | |
TEST_F (BroadcastPoolTest, HandlerEOFPoolDeletion) | |
TEST_F (BroadcastPoolTest, SubscriberDeletionBeforeConnect) | |
TEST_F (BroadcastPoolTest, ThreadLocalPool) | |
TEST_F | ( | BroadcastPoolTest | , |
BasicConnect | |||
) |
Definition at line 86 of file BroadcastPoolTest.cpp.
References testing::_, dummy(), EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_NE, EXPECT_TRUE, folly::EventBaseManager::get(), wangle::BroadcastHandler< T, R >::getArbitraryIdentifier(), wangle::HandlerBase< Context >::getContext(), folly::EventBaseManager::getEventBase(), h, wangle::BroadcastHandler< T, R >::readEOF(), string, wangle::BroadcastHandler< T, R >::subscribe(), uint64_t, and folly::detail::distributed_mutex::wait().
TEST_F | ( | BroadcastPoolTest | , |
OutstandingConnect | |||
) |
Definition at line 166 of file BroadcastPoolTest.cpp.
References testing::_, dummy(), EXPECT_CALL, EXPECT_FALSE, EXPECT_TRUE, folly::EventBaseManager::get(), wangle::HandlerBase< Context >::getContext(), folly::EventBaseManager::getEventBase(), h, wangle::BroadcastHandler< T, R >::readEOF(), string, wangle::BroadcastHandler< T, R >::subscribe(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | BroadcastPoolTest | , |
ConnectError | |||
) |
Definition at line 220 of file BroadcastPoolTest.cpp.
References testing::_, dummy(), EXPECT_CALL, EXPECT_FALSE, EXPECT_TRUE, folly::EventBaseManager::get(), wangle::HandlerBase< Context >::getContext(), folly::EventBaseManager::getEventBase(), h, wangle::BroadcastHandler< T, R >::readEOF(), string, and wangle::BroadcastHandler< T, R >::subscribe().
TEST_F | ( | BroadcastPoolTest | , |
ConnectErrorServerPool | |||
) |
Definition at line 284 of file BroadcastPoolTest.cpp.
References dummy(), EXPECT_FALSE, EXPECT_TRUE, folly::EventBaseManager::get(), folly::EventBaseManager::getEventBase(), h, and string.
TEST_F | ( | BroadcastPoolTest | , |
RoutingDataException | |||
) |
Definition at line 309 of file BroadcastPoolTest.cpp.
References testing::_, dummy(), EXPECT_CALL, EXPECT_FALSE, EXPECT_TRUE, folly::EventBaseManager::get(), folly::EventBaseManager::getEventBase(), h, handler(), and string.
TEST_F | ( | BroadcastPoolTest | , |
RoutingDataPipelineDeletion | |||
) |
Definition at line 335 of file BroadcastPoolTest.cpp.
References testing::_, dummy(), EXPECT_CALL, EXPECT_FALSE, EXPECT_TRUE, folly::EventBaseManager::get(), folly::EventBaseManager::getEventBase(), h, handler(), testing::Invoke(), wangle::Pipeline< R, W >::readException(), and string.
TEST_F | ( | BroadcastPoolTest | , |
HandlerEOFPoolDeletion | |||
) |
Definition at line 364 of file BroadcastPoolTest.cpp.
References testing::_, dummy(), EXPECT_CALL, EXPECT_FALSE, EXPECT_TRUE, folly::EventBaseManager::get(), wangle::HandlerBase< Context >::getContext(), folly::EventBaseManager::getEventBase(), wangle::HandlerContext< In, Out >::getPipeline(), h, handler(), wangle::Pipeline< R, W >::readEOF(), string, and wangle::BroadcastHandler< T, R >::subscribe().
TEST_F | ( | BroadcastPoolTest | , |
SubscriberDeletionBeforeConnect | |||
) |
Definition at line 395 of file BroadcastPoolTest.cpp.
References testing::_, dummy(), EXPECT_CALL, EXPECT_FALSE, EXPECT_TRUE, folly::EventBaseManager::get(), wangle::HandlerBase< Context >::getContext(), folly::EventBaseManager::getEventBase(), h, handler(), wangle::BroadcastHandler< T, R >::readEOF(), string, and wangle::BroadcastHandler< T, R >::subscribe().
TEST_F | ( | BroadcastPoolTest | , |
ThreadLocalPool | |||
) |
Definition at line 474 of file BroadcastPoolTest.cpp.
References testing::_, wangle::ObservingPipelineFactory< T, R, P >::broadcastPool(), dummy(), EXPECT_CALL, EXPECT_FALSE, EXPECT_NE, EXPECT_TRUE, folly::EventBaseManager::get(), wangle::BroadcastHandler< T, R >::getArbitraryIdentifier(), folly::EventBaseManager::getEventBase(), testing::Invoke(), wangle::BroadcastPool< T, R, P >::isBroadcasting(), folly::join(), folly::EventBase::loopOnce(), wangle::MockObservingPipelineFactory::newPipeline(), string, and uint64_t.