proxygen
|
#include <folly/io/async/EventBaseThread.h>
#include <chrono>
#include <folly/io/async/EventBaseManager.h>
#include <folly/portability/GTest.h>
#include <folly/synchronization/Baton.h>
#include <folly/system/ThreadName.h>
Go to the source code of this file.
Classes | |
class | EventBaseThreadTest |
Functions | |
TEST_F (EventBaseThreadTest, example) | |
TEST_F (EventBaseThreadTest, start_stop) | |
TEST_F (EventBaseThreadTest, move) | |
TEST_F (EventBaseThreadTest, self_move) | |
TEST_F (EventBaseThreadTest, default_manager) | |
TEST_F (EventBaseThreadTest, custom_manager) | |
TEST_F | ( | EventBaseThreadTest | , |
example | |||
) |
Definition at line 32 of file EventBaseThreadTest.cpp.
References ASSERT_TRUE, EXPECT_EQ, folly::getCurrentThreadName(), folly::EventBaseThread::getEventBase(), folly::Baton< MayBlock, Atom >::post(), folly::EventBase::runInEventBaseThread(), folly::Baton< MayBlock, Atom >::try_wait_for(), and value.
TEST_F | ( | EventBaseThreadTest | , |
start_stop | |||
) |
Definition at line 43 of file EventBaseThreadTest.cpp.
References ASSERT_TRUE, EXPECT_EQ, EXPECT_NE, folly::EventBaseThread::getEventBase(), i, folly::EventBase::runInEventBaseThread(), folly::EventBaseThread::start(), and folly::EventBaseThread::stop().
TEST_F | ( | EventBaseThreadTest | , |
move | |||
) |
Definition at line 61 of file EventBaseThreadTest.cpp.
References ASSERT_TRUE, EXPECT_EQ, EXPECT_NE, and folly::gen::move.
TEST_F | ( | EventBaseThreadTest | , |
self_move | |||
) |
Definition at line 75 of file EventBaseThreadTest.cpp.
References ASSERT_TRUE, EXPECT_NE, and folly::gen::move.
TEST_F | ( | EventBaseThreadTest | , |
default_manager | |||
) |
Definition at line 86 of file EventBaseThreadTest.cpp.
References EXPECT_EQ, folly::pushmi::operators::get, folly::EventBaseThread::getEventBase(), and folly::EventBase::runInEventBaseThreadAndWait().
TEST_F | ( | EventBaseThreadTest | , |
custom_manager | |||
) |
Definition at line 95 of file EventBaseThreadTest.cpp.
References EXPECT_EQ, folly::EventBaseThread::getEventBase(), folly::EventBaseManager::getEventBase(), and folly::EventBase::runInEventBaseThreadAndWait().