|
proxygen
|
#include <folly/io/async/NotificationQueue.h>#include <sys/types.h>#include <iostream>#include <list>#include <thread>#include <folly/io/async/ScopedEventBaseThread.h>#include <folly/portability/GTest.h>#include <folly/synchronization/Baton.h>#include <sys/wait.h>Go to the source code of this file.
Classes | |
| class | QueueConsumer |
| class | QueueTest |
Typedefs | |
| typedef NotificationQueue< int > | IntQueue |
Functions | |
| TEST (NotificationQueueTest, ConsumeUntilDrained) | |
| TEST (NotificationQueueTest, ConsumeUntilDrainedStress) | |
| TEST (NotificationQueueTest, SendOnePipe) | |
| TEST (NotificationQueueTest, PutMessagesPipe) | |
| TEST (NotificationQueueTest, MultiConsumerPipe) | |
| TEST (NotificationQueueTest, MaxQueueSizePipe) | |
| TEST (NotificationQueueTest, MaxReadAtOncePipe) | |
| TEST (NotificationQueueTest, DestroyCallbackPipe) | |
| TEST (NotificationQueueTest, UseAfterFork) | |
| TEST (NotificationQueueConsumer, make) | |
| typedef NotificationQueue<int> IntQueue |
Definition at line 36 of file NotificationQueueTest.cpp.
| TEST | ( | NotificationQueueTest | , |
| ConsumeUntilDrained | |||
| ) |
Definition at line 408 of file NotificationQueueTest.cpp.
References folly::NotificationQueue< MessageT >::Consumer::consumeUntilDrained(), EXPECT_EQ, EXPECT_FALSE, EXPECT_THROW, EXPECT_TRUE, QueueConsumer::fn, i, QueueConsumer::messages, folly::NotificationQueue< MessageT >::putMessage(), folly::NotificationQueue< MessageT >::putMessages(), folly::NotificationQueue< MessageT >::Consumer::setMaxReadAtOnce(), folly::NotificationQueue< MessageT >::Consumer::startConsuming(), folly::NotificationQueue< MessageT >::tryPutMessage(), and folly::NotificationQueue< MessageT >::tryPutMessageNoThrow().
Referenced by TEST().
| TEST | ( | NotificationQueueTest | , |
| ConsumeUntilDrainedStress | |||
| ) |
Definition at line 455 of file NotificationQueueTest.cpp.
References folly::NotificationQueue< MessageT >::Consumer::consumeUntilDrained(), QueueTest::destroyCallback(), EXPECT_EQ, EXPECT_FALSE, EXPECT_THROW, EXPECT_TRUE, QueueConsumer::fn, i, QueueTest::maxQueueSize(), QueueTest::maxReadAtOnce(), QueueConsumer::messages, QueueTest::multiConsumer(), folly::NotificationQueue< MessageT >::putMessage(), folly::NotificationQueue< MessageT >::putMessages(), QueueTest::sendOne(), folly::NotificationQueue< MessageT >::Consumer::setMaxReadAtOnce(), folly::NotificationQueue< MessageT >::Consumer::startConsuming(), TEST(), folly::NotificationQueue< MessageT >::tryPutMessage(), and folly::NotificationQueue< MessageT >::tryPutMessageNoThrow().
| TEST | ( | NotificationQueueTest | , |
| SendOnePipe | |||
| ) |
Definition at line 536 of file NotificationQueueTest.cpp.
References folly::NotificationQueue< MessageT >::PIPE, and QueueTest::sendOne().
| TEST | ( | NotificationQueueTest | , |
| PutMessagesPipe | |||
| ) |
Definition at line 541 of file NotificationQueueTest.cpp.
References folly::NotificationQueue< MessageT >::PIPE, and QueueTest::sendOne().
| TEST | ( | NotificationQueueTest | , |
| MultiConsumerPipe | |||
| ) |
Definition at line 546 of file NotificationQueueTest.cpp.
References QueueTest::multiConsumer(), and folly::NotificationQueue< MessageT >::PIPE.
| TEST | ( | NotificationQueueTest | , |
| MaxQueueSizePipe | |||
| ) |
Definition at line 551 of file NotificationQueueTest.cpp.
References QueueTest::maxQueueSize(), and folly::NotificationQueue< MessageT >::PIPE.
| TEST | ( | NotificationQueueTest | , |
| MaxReadAtOncePipe | |||
| ) |
Definition at line 556 of file NotificationQueueTest.cpp.
References QueueTest::maxReadAtOnce(), and folly::NotificationQueue< MessageT >::PIPE.
| TEST | ( | NotificationQueueTest | , |
| DestroyCallbackPipe | |||
| ) |
Definition at line 561 of file NotificationQueueTest.cpp.
References QueueTest::destroyCallback(), and folly::NotificationQueue< MessageT >::PIPE.
| TEST | ( | NotificationQueueTest | , |
| UseAfterFork | |||
| ) |
Definition at line 575 of file NotificationQueueTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, folly::ScopedEventBaseThread::getEventBase(), folly::INFO, QueueConsumer::messages, folly::NotificationQueue< MessageT >::putMessage(), folly::EventBase::runInEventBaseThread(), and folly::NotificationQueue< MessageT >::Consumer::startConsuming().
| TEST | ( | NotificationQueueConsumer | , |
| make | |||
| ) |
Definition at line 641 of file NotificationQueueTest.cpp.
References EXPECT_EQ, folly::EventBase::loopOnce(), folly::pushmi::__adl::noexcept(), folly::NotificationQueue< MessageT >::tryPutMessage(), and value.