proxygen
|
#include <chrono>
#include <thread>
#include <vector>
#include <folly/Memory.h>
#include <folly/executors/ManualExecutor.h>
#include <folly/futures/Future.h>
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
#include <folly/synchronization/Baton.h>
#include <wangle/client/persistence/LRUPersistentCache.h>
#include <wangle/client/persistence/SharedMutexCacheLockGuard.h>
Go to the source code of this file.
Classes | |
class | MockPersistenceLayer |
class | LRUPersistentCacheTest< MutexT > |
Typedefs | |
using | TestPersistenceLayer = CachePersistence< string, string > |
using | MutexTypes = ::testing::Types< std::mutex, folly::SharedMutex > |
using MutexTypes = ::testing::Types<std::mutex, folly::SharedMutex> |
Definition at line 36 of file LRUPersistentCacheTest.cpp.
using TestPersistenceLayer = CachePersistence<string, string> |
Definition at line 34 of file LRUPersistentCacheTest.cpp.
|
static |
|
static |
Definition at line 54 of file LRUPersistentCacheTest.cpp.
References folly::gen::move.
MATCHER_P | ( | DynSize | , |
n | , | ||
"" | |||
) |
Definition at line 126 of file LRUPersistentCacheTest.cpp.
TYPED_TEST | ( | LRUPersistentCacheTest | , |
NullPersistence | |||
) |
Definition at line 113 of file LRUPersistentCacheTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::makeFuture(), and val.
TYPED_TEST | ( | LRUPersistentCacheTest | , |
SettingPersistence | |||
) |
Definition at line 130 of file LRUPersistentCacheTest.cpp.
References folly::dynamic::array(), folly::data(), EXPECT_CALL, folly::gen::move, testing::Return(), and folly::gen::seq().
TYPED_TEST | ( | LRUPersistentCacheTest | , |
SyncOnDestroy | |||
) |
Definition at line 144 of file LRUPersistentCacheTest.cpp.
References testing::_, EXPECT_CALL, folly::gen::move, and testing::Return().
TYPED_TEST | ( | LRUPersistentCacheTest | , |
SetPersistenceMidPersist | |||
) |
Definition at line 156 of file LRUPersistentCacheTest.cpp.
References folly::dynamic::array(), EXPECT_CALL, MockPersistenceLayer::getLastPersistedVersionConcrete(), testing::Invoke(), folly::makeFuture(), folly::gen::move, ON_CALL, and testing::Return().
TYPED_TEST | ( | LRUPersistentCacheTest | , |
PersistNotCalled | |||
) |
Definition at line 196 of file LRUPersistentCacheTest.cpp.
References testing::_, folly::dynamic::array(), folly::data(), EXPECT_CALL, EXPECT_EQ, folly::gen::move, and testing::Return().
TYPED_TEST | ( | LRUPersistentCacheTest | , |
PersistentSetBeforeSyncer | |||
) |
Definition at line 208 of file LRUPersistentCacheTest.cpp.
References testing::AtLeast(), EXPECT_CALL, MockPersistenceLayer::getLastPersistedVersionConcrete(), testing::Invoke(), and folly::gen::move.
TYPED_TEST | ( | LRUPersistentCacheTest | , |
ClearKeepPersist | |||
) |
Definition at line 218 of file LRUPersistentCacheTest.cpp.
References EXPECT_CALL, and folly::gen::move.
TYPED_TEST | ( | LRUPersistentCacheTest | , |
ClearDontKeepPersist | |||
) |
Definition at line 224 of file LRUPersistentCacheTest.cpp.
References EXPECT_CALL, and folly::gen::move.
TYPED_TEST | ( | LRUPersistentCacheTest | , |
ExecutorCacheDeallocBeforeAdd | |||
) |
TYPED_TEST | ( | LRUPersistentCacheTest | , |
ExecutorCacheRunTask | |||
) |
Definition at line 241 of file LRUPersistentCacheTest.cpp.
References folly::dynamic::array(), folly::data(), EXPECT_CALL, MockPersistenceLayer::getLastPersistedVersionConcrete(), testing::Invoke(), folly::gen::move, and testing::Return().
TYPED_TEST | ( | LRUPersistentCacheTest | , |
ExecutorCacheRunTaskInline | |||
) |
Definition at line 265 of file LRUPersistentCacheTest.cpp.
References folly::dynamic::array(), folly::data(), EXPECT_CALL, MockPersistenceLayer::getLastPersistedVersionConcrete(), testing::Invoke(), folly::gen::move, and testing::Return().
TYPED_TEST | ( | LRUPersistentCacheTest | , |
ExecutorCacheRetries | |||
) |
Definition at line 298 of file LRUPersistentCacheTest.cpp.
References testing::_, folly::dynamic::array(), EXPECT_CALL, MockPersistenceLayer::getLastPersistedVersionConcrete(), testing::Invoke(), folly::gen::move, testing::Return(), and MockPersistenceLayer::setPersistedVersionConcrete().
TYPED_TEST | ( | LRUPersistentCacheTest | , |
ExecutorCacheSchduledAndDealloc | |||
) |
Definition at line 333 of file LRUPersistentCacheTest.cpp.
References folly::dynamic::array(), folly::data(), EXPECT_CALL, folly::gen::move, and testing::Return().
TYPED_TEST | ( | LRUPersistentCacheTest | , |
ExecutorCacheScheduleInterval | |||
) |
Definition at line 352 of file LRUPersistentCacheTest.cpp.
References testing::_, folly::dynamic::array(), EXPECT_CALL, MockPersistenceLayer::getLastPersistedVersionConcrete(), testing::Invoke(), folly::gen::move, and testing::Return().
TYPED_TEST_CASE | ( | LRUPersistentCacheTest | , |
MutexTypes | |||
) |