proxygen
|
#include <thread>
#include <folly/Memory.h>
#include <folly/io/async/EventBase.h>
#include <folly/io/async/Request.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Classes | |
class | TestData |
class | RequestContextTest |
Functions | |
TEST_F (RequestContextTest, SimpleTest) | |
TEST_F (RequestContextTest, RequestContextScopeGuard) | |
TEST_F (RequestContextTest, defaultContext) | |
TEST_F (RequestContextTest, setIfAbsentTest) | |
TEST_F (RequestContextTest, testSetUnset) | |
TEST_F (RequestContextTest, deadlockTest) | |
TEST_F (RequestContextTest, sharedGlobalTest) | |
TEST_F (RequestContextTest, ShallowCopyBasic) | |
TEST_F (RequestContextTest, ShallowCopyOverwrite) | |
TEST_F (RequestContextTest, ShallowCopyDefaultContext) | |
TEST_F (RequestContextTest, ShallowCopyClear) | |
Variables | |
RequestToken | testtoken ("test") |
TEST_F | ( | RequestContextTest | , |
SimpleTest | |||
) |
Definition at line 95 of file RequestContextTest.cpp.
References a, folly::RequestContext::create(), folly::data(), data_, EXPECT_EQ, EXPECT_NE, EXPECT_TRUE, folly::RequestContext::get(), folly::RequestContext::getContextData(), folly::EventBase::loopForever(), folly::EventBase::runInEventBaseThread(), folly::RequestContext::saveContext(), folly::RequestContext::setContext(), folly::RequestContext::setContextData(), folly::EventBase::terminateLoopSoon(), and testtoken.
TEST_F | ( | RequestContextTest | , |
RequestContextScopeGuard | |||
) |
Definition at line 132 of file RequestContextTest.cpp.
References data_, EXPECT_EQ, and EXPECT_FALSE.
TEST_F | ( | RequestContextTest | , |
defaultContext | |||
) |
Definition at line 148 of file RequestContextTest.cpp.
References data_, EXPECT_EQ, and EXPECT_FALSE.
TEST_F | ( | RequestContextTest | , |
setIfAbsentTest | |||
) |
Definition at line 160 of file RequestContextTest.cpp.
References data_, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::RequestContext::get(), folly::RequestContext::setContext(), folly::RequestContext::setContextData(), and testtoken.
TEST_F | ( | RequestContextTest | , |
testSetUnset | |||
) |
Definition at line 182 of file RequestContextTest.cpp.
References folly::RequestContext::create(), EXPECT_EQ, folly::RequestContext::saveContext(), folly::RequestContext::setContext(), and testtoken.
TEST_F | ( | RequestContextTest | , |
deadlockTest | |||
) |
Definition at line 215 of file RequestContextTest.cpp.
References folly::RequestContext::clearContextData(), folly::RequestContext::get(), folly::RequestContext::setContextData(), string, testtoken, and val.
TEST_F | ( | RequestContextTest | , |
sharedGlobalTest | |||
) |
Definition at line 239 of file RequestContextTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, folly::RequestContext::get(), and folly::RequestContext::setContextData().
TEST_F | ( | RequestContextTest | , |
ShallowCopyBasic | |||
) |
Definition at line 269 of file RequestContextTest.cpp.
References data_, EXPECT_EQ, and EXPECT_FALSE.
TEST_F | ( | RequestContextTest | , |
ShallowCopyOverwrite | |||
) |
Definition at line 288 of file RequestContextTest.cpp.
References data_, and EXPECT_EQ.
TEST_F | ( | RequestContextTest | , |
ShallowCopyDefaultContext | |||
) |
TEST_F | ( | RequestContextTest | , |
ShallowCopyClear | |||
) |
Definition at line 318 of file RequestContextTest.cpp.
References data_, and EXPECT_EQ.
RequestToken testtoken("test") |
Referenced by TEST_F().