Page Speed Optimization Libraries
 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)

Create child process for given method - the latter is used for TestFill methods, which require arguments

void net_instaweb::SharedDynamicStringMapTestBase::TestFillMultipleNonOverlappingThreads ( )

Test the filling of the string map by more than one thread; no two threads access the same string.

void net_instaweb::SharedDynamicStringMapTestBase::TestFillMultipleOverlappingThreads ( )

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

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: