17 #include <gtest/gtest.h> 23 using namespace folly;
27 TEST(AsyncSocketHandlerTest, WriteErrOnShutdown) {
33 auto pipeline = DefaultPipeline::create();
34 pipeline->setPipelineManager(&manager);
44 TEST(AsyncSocketHandlerTest, TransportActiveInactive) {
49 auto handler = std::make_shared<StrictMock<MockBytesToBytesHandler>>();
50 auto pipeline = DefaultPipeline::create();
56 pipeline->transportActive();
58 pipeline->transportInactive();
60 pipeline->transportActive();
69 handler = std::make_shared<StrictMock<MockBytesToBytesHandler>>();
70 pipeline = DefaultPipeline::create();
76 pipeline->transportActive();
78 pipeline->transportInactive();
—— Concurrent Priority Queue Implementation ——
void handler(int, siginfo_t *, void *)
NetworkSocket socket(int af, int type, int protocol)
static std::shared_ptr< AsyncSocket > newSocket(EventBase *evb)
#define EXPECT_CALL(obj, call)
const internal::AnythingMatcher _
TEST(SequencedExecutor, CPUThreadPoolExecutor)
internal::ReturnAction< R > Return(R value)