proxygen
LRUPersistentCacheTest< MutexT > Class Template Reference
Inheritance diagram for LRUPersistentCacheTest< MutexT >:
testing::Test

Protected Member Functions

void SetUp () override
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 

Protected Attributes

unique_ptr< MockPersistenceLayerpersistence
 
std::shared_ptr< folly::ManualExecutormanualExecutor
 
std::shared_ptr< folly::InlineExecutorinlineExecutor
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
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)
 

Detailed Description

template<typename MutexT>
class LRUPersistentCacheTest< MutexT >

Definition at line 92 of file LRUPersistentCacheTest.cpp.

Member Function Documentation

template<typename MutexT >
void LRUPersistentCacheTest< MutexT >::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 94 of file LRUPersistentCacheTest.cpp.

References testing::_, MockPersistenceLayer::getLastPersistedVersionConcrete(), testing::Invoke(), ON_CALL, and MockPersistenceLayer::setPersistedVersionConcrete().

94  {
95  persistence = make_unique<MockPersistenceLayer>();
96  ON_CALL(*persistence, getLastPersistedVersion())
97  .WillByDefault(Invoke(
98  persistence.get(),
100  ON_CALL(*persistence, setPersistedVersion(_))
101  .WillByDefault(Invoke(
102  persistence.get(),
104  manualExecutor = std::make_shared<folly::ManualExecutor>();
105  inlineExecutor = std::make_shared<folly::InlineExecutor>();
106  }
CacheDataVersion getLastPersistedVersionConcrete() const
void setPersistedVersionConcrete(CacheDataVersion version)
unique_ptr< MockPersistenceLayer > persistence
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
std::shared_ptr< folly::ManualExecutor > manualExecutor
#define ON_CALL(obj, call)
const internal::AnythingMatcher _
std::shared_ptr< folly::InlineExecutor > inlineExecutor

Member Data Documentation

template<typename MutexT >
std::shared_ptr<folly::InlineExecutor> LRUPersistentCacheTest< MutexT >::inlineExecutor
protected

Definition at line 110 of file LRUPersistentCacheTest.cpp.

template<typename MutexT >
std::shared_ptr<folly::ManualExecutor> LRUPersistentCacheTest< MutexT >::manualExecutor
protected

Definition at line 109 of file LRUPersistentCacheTest.cpp.

template<typename MutexT >
unique_ptr<MockPersistenceLayer> LRUPersistentCacheTest< MutexT >::persistence
protected

Definition at line 108 of file LRUPersistentCacheTest.cpp.


The documentation for this class was generated from the following file: