Page Speed Optimization Libraries
1.2.24.1
|
Protected Types | |
typedef void(SharedDynamicStringMapTestBase::* | TestMethod0 )() |
typedef void(SharedDynamicStringMapTestBase::* | TestMethod2 )(int, int) |
Protected Member Functions | |
SharedDynamicStringMapTestBase (SharedMemTestEnv *test_env) | |
bool | CreateChild (TestMethod0 method) |
bool | CreateFillChild (TestMethod2 method, int start, int number_of_strings) |
void | TestSimple () |
Test simple functionality using Dump(Writer*) | |
void | TestCreate () |
Test the creation and use of a child process. | |
void | TestAdd () |
Test the creation and use of two child processes. | |
void | TestQuarterFull () |
void | TestFillSingleThread () |
Test the filling of the string map. | |
void | TestFillMultipleNonOverlappingThreads () |
void | TestFillMultipleOverlappingThreads () |
bool net_instaweb::SharedDynamicStringMapTestBase::CreateChild | ( | TestMethod0 | method | ) | [protected] |
Create child process for given method - the latter is used for TestFill methods, which require arguments
void net_instaweb::SharedDynamicStringMapTestBase::TestFillMultipleNonOverlappingThreads | ( | ) | [protected] |
Test the filling of the string map by more than one thread; no two threads access the same string.
void net_instaweb::SharedDynamicStringMapTestBase::TestFillMultipleOverlappingThreads | ( | ) | [protected] |
Test the filling of the string map by more than one thread; no two child threads access the same string, but parent process hits strings at the same time as the child threads.
void net_instaweb::SharedDynamicStringMapTestBase::TestQuarterFull | ( | ) | [protected] |
Test that no unwanted insertions are performed when filling the map 1/4 of the way by checking length of Dump result.