proxygen
|
Public Member Functions | |
QueueTest (uint32_t maxSize, IntQueue::FdType type) | |
void | sendOne () |
void | putMessages () |
void | multiConsumer () |
void | maxQueueSize () |
void | maxReadAtOnce () |
void | destroyCallback () |
void | useAfterFork () |
![]() | |
virtual | ~Test () |
virtual | ~Test () |
virtual | ~Test () |
Public Attributes | |
IntQueue | queue |
IntQueue | terminationQueue |
Protected Member Functions | |
virtual void | SetUp () |
void | MapTester (const Queue< int > *q) |
virtual void | SetUp () |
virtual void | SetUp () |
void | MapTester (const Queue< int > *q) |
virtual void | SetUp () |
virtual void | SetUp () |
void | MapTester (const Queue< int > *q) |
virtual void | SetUp () |
![]() | |
virtual void | TearDown () |
virtual void | TearDown () |
virtual void | TearDown () |
![]() | |
Test () | |
Test () | |
Test () | |
Static Protected Member Functions | |
static int | Double (int n) |
static int | Double (int n) |
static int | Double (int n) |
Protected Attributes | |
Queue< int > | q0_ |
Queue< int > | q1_ |
Queue< int > | q2_ |
![]() | |
time_t | start_time_ |
Additional Inherited Members | |
![]() | |
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 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) |
Definition at line 70 of file sample3_unittest.cc.
|
inlineexplicit |
Definition at line 55 of file NotificationQueueTest.cpp.
void QueueTest::destroyCallback | ( | ) |
Definition at line 349 of file NotificationQueueTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, g(), folly::EventBase::loop(), folly::pushmi::__adl::noexcept(), and value.
Referenced by TEST().
|
inlinestaticprotected |
Definition at line 91 of file sample3_unittest.cc.
Referenced by MapTester().
|
inlinestaticprotected |
Definition at line 91 of file sample3_unittest.cc.
|
inlinestaticprotected |
Definition at line 91 of file sample3_unittest.cc.
|
inlineprotected |
Definition at line 96 of file sample3_unittest.cc.
References ASSERT_EQ, Double(), EXPECT_EQ, Queue< E >::Head(), Queue< E >::Map(), QueueNode< E >::next(), q0_, q1_, q2_, and Queue< E >::Size().
|
inlineprotected |
Definition at line 96 of file sample3_unittest.cc.
References ASSERT_EQ, Double(), EXPECT_EQ, Queue< E >::Head(), Queue< E >::Map(), QueueNode< E >::next(), and Queue< E >::Size().
Referenced by TEST_F().
|
inlineprotected |
Definition at line 96 of file sample3_unittest.cc.
References ASSERT_EQ, Double(), EXPECT_EQ, Queue< E >::Head(), Queue< E >::Map(), QueueNode< E >::next(), q0_, q1_, q2_, and Queue< E >::Size().
void QueueTest::maxQueueSize | ( | ) |
Definition at line 218 of file NotificationQueueTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, EXPECT_THROW, EXPECT_TRUE, folly::gen::move, and val.
Referenced by TEST().
void QueueTest::maxReadAtOnce | ( | ) |
Definition at line 275 of file NotificationQueueTest.cpp.
References EXPECT_EQ, QueueConsumer::fn, folly::EventBase::loop(), QueueConsumer::messages, folly::EventBase::runInLoop(), folly::NotificationQueue< MessageT >::Consumer::setMaxReadAtOnce(), folly::NotificationQueue< MessageT >::Consumer::startConsuming(), folly::EventBase::terminateLoopSoon(), uint32_t, and value.
Referenced by TEST().
void QueueTest::multiConsumer | ( | ) |
Definition at line 138 of file NotificationQueueTest.cpp.
References EXPECT_EQ, EXPECT_GE, EXPECT_LT, QueueConsumer::fn, folly::EventBase::loop(), messages, folly::EventBase::runInEventBaseThread(), folly::NotificationQueue< MessageT >::Consumer::startConsuming(), folly::NotificationQueue< MessageT >::Consumer::stopConsuming(), threads, uint32_t, and value.
Referenced by TEST().
void QueueTest::putMessages | ( | ) |
Definition at line 93 of file NotificationQueueTest.cpp.
References EXPECT_EQ, QueueConsumer::fn, folly::EventBase::loop(), QueueConsumer::messages, folly::NotificationQueue< MessageT >::Consumer::startConsuming(), and folly::NotificationQueue< MessageT >::Consumer::stopConsuming().
void QueueTest::sendOne | ( | ) |
Definition at line 70 of file NotificationQueueTest.cpp.
References EXPECT_EQ, QueueConsumer::fn, folly::ScopedEventBaseThread::getEventBase(), folly::EventBase::loop(), QueueConsumer::messages, messages, folly::EventBase::runInEventBaseThread(), folly::NotificationQueue< MessageT >::Consumer::startConsuming(), and folly::NotificationQueue< MessageT >::Consumer::stopConsuming().
Referenced by TEST().
|
inlineprotectedvirtual |
Reimplemented from testing::Test.
Definition at line 77 of file sample3_unittest.cc.
References Queue< E >::Enqueue(), q1_, and q2_.
|
inlineprotectedvirtual |
Reimplemented from testing::Test.
Definition at line 77 of file sample3_unittest.cc.
References Queue< E >::Enqueue(), q1_, and q2_.
|
inlineprotectedvirtual |
Reimplemented from testing::Test.
Definition at line 77 of file sample3_unittest.cc.
References Queue< E >::Enqueue(), q1_, and q2_.
|
inlineprotectedvirtual |
Reimplemented from testing::Test.
Definition at line 146 of file sample5_unittest.cc.
References QuickTest::SetUp().
|
inlineprotectedvirtual |
Reimplemented from testing::Test.
Definition at line 146 of file sample5_unittest.cc.
References QuickTest::SetUp().
|
inlineprotectedvirtual |
Reimplemented from testing::Test.
Definition at line 146 of file sample5_unittest.cc.
References QuickTest::SetUp().
void QueueTest::useAfterFork | ( | ) |
|
protected |
Definition at line 114 of file sample3_unittest.cc.
Referenced by MapTester(), and TEST_F().
|
protected |
Definition at line 115 of file sample3_unittest.cc.
Referenced by MapTester(), SetUp(), and TEST_F().
|
protected |
Definition at line 116 of file sample3_unittest.cc.
Referenced by MapTester(), SetUp(), and TEST_F().
IntQueue QueueTest::queue |
Definition at line 66 of file NotificationQueueTest.cpp.
IntQueue QueueTest::terminationQueue |
Definition at line 67 of file NotificationQueueTest.cpp.