net_instaweb::SharedDynamicStringMapTestBase Class Reference

Inheritance diagram for net_instaweb::SharedDynamicStringMapTestBase:
net_instaweb::SharedDynamicStringMapTestTemplate< ConcreteTestEnv >

List of all members.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:16 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3