17 #ifndef PAGESPEED_KERNEL_SHAREDMEM_SHARED_DYNAMIC_STRING_MAP_TEST_BASE_H_
18 #define PAGESPEED_KERNEL_SHAREDMEM_SHARED_DYNAMIC_STRING_MAP_TEST_BASE_H_
30 namespace net_instaweb {
31 class SharedDynamicStringMap;
44 bool CreateFillChild(TestMethod2 method,
int start,
int number_of_strings);
67 void AddFillChild(
int start,
int number_of_strings);
68 void AddToFullTable();
75 std::vector<GoogleString> strings_;
85 template<
typename ConcreteTestEnv>
100 TYPED_TEST_P(SharedDynamicStringMapTestTemplate, TestCreate) {
104 TYPED_TEST_P(SharedDynamicStringMapTestTemplate, TestAdd) {
108 TYPED_TEST_P(SharedDynamicStringMapTestTemplate, TestQuarterFull) {
112 TYPED_TEST_P(SharedDynamicStringMapTestTemplate, TestFillSingleThread) {
116 TYPED_TEST_P(SharedDynamicStringMapTestTemplate,
117 TestFillMultipleNonOverlappingThreads) {
121 TYPED_TEST_P(SharedDynamicStringMapTestTemplate,
122 TestFillMultipleOverlappingThreads) {
126 REGISTER_TYPED_TEST_CASE_P(SharedDynamicStringMapTestTemplate, TestSimple,
127 TestCreate, TestAdd, TestQuarterFull,
128 TestFillSingleThread,
129 TestFillMultipleNonOverlappingThreads,
130 TestFillMultipleOverlappingThreads);
Definition: shared_dynamic_string_map_test_base.h:34
bool CreateChild(TestMethod0 method)
void TestFillMultipleOverlappingThreads()
Definition: mock_message_handler.h:39
Definition: scoped_ptr.h:30
Definition: shared_dynamic_string_map.h:46
void TestFillSingleThread()
Test the filling of the string map.
void TestAdd()
Test the creation and use of two child processes.
void TestSimple()
Test simple functionality using Dump(Writer*)
Definition: shared_dynamic_string_map_test_base.h:86
void TestCreate()
Test the creation and use of a child process.
Definition: shared_mem_test_base.h:33
void TestFillMultipleNonOverlappingThreads()