Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Protected Types | Protected Member Functions | List of all members
net_instaweb::SharedDynamicStringMapTestBase Class Reference
Inheritance diagram for net_instaweb::SharedDynamicStringMapTestBase:
net_instaweb::SharedDynamicStringMapTestTemplate< ConcreteTestEnv >

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 ()
 

Member Function Documentation

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.


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