17 #ifndef PAGESPEED_KERNEL_SHAREDMEM_SHARED_MEM_CACHE_DATA_TEST_BASE_H_
18 #define PAGESPEED_KERNEL_SHAREDMEM_SHARED_MEM_CACHE_DATA_TEST_BASE_H_
30 namespace net_instaweb {
37 enum { kBlockSize = 512 };
44 void TestBlockLists();
47 bool CreateChild(TestMethod method);
49 void SanityCheckBlockVector(
const SharedMemCacheData::BlockVector& blocks,
50 int min_valid,
int max_valid);
52 void ExtractAndSanityCheckLRU(
54 std::vector<SharedMemCacheData::EntryNum>* out_lru);
56 void TestFreeListChild();
74 template<
typename ConcreteTestEnv>
85 SharedMemCacheDataTestBase::TestFreeList();
88 TYPED_TEST_P(SharedMemCacheDataTestTemplate, TestLRU) {
89 SharedMemCacheDataTestBase::TestLRU();
92 TYPED_TEST_P(SharedMemCacheDataTestTemplate, TestBlockLists) {
93 SharedMemCacheDataTestBase::TestBlockLists();
96 REGISTER_TYPED_TEST_CASE_P(SharedMemCacheDataTestTemplate, TestFreeList,
97 TestLRU, TestBlockLists);
Definition: shared_mem_cache_data.h:121
Definition: shared_mem_cache_data_test_base.h:75
Definition: mock_message_handler.h:39
Definition: scoped_ptr.h:30
Definition: shared_mem_cache_data_test_base.h:34
Definition: shared_mem_test_base.h:33
Definition: abstract_shared_mem.h:31
SharedMemCacheDataTestBase(SharedMemTestEnv *test_env)
passed to EXPECT_EQ