Page Speed Optimization Libraries  1.3.25.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
net_instaweb::SharedMemRefererStatisticsTestBase Class Reference
Inheritance diagram for net_instaweb::SharedMemRefererStatisticsTestBase:
net_instaweb::HashedRefererStatisticsTestBase net_instaweb::SharedMemRefererStatisticsTestTemplate< ConcreteTestEnv > net_instaweb::HashedRefererStatisticsTestTemplate< ConcreteTestEnv >

List of all members.

Protected Types

typedef void(SharedMemRefererStatisticsTestBase::* TestMethod )()

Protected Member Functions

 SharedMemRefererStatisticsTestBase (SharedMemTestEnv *test_env)
bool CreateChild (TestMethod method)
void TestGetDivLocationFromUrl ()
void TestSimple ()
void TestResource ()
 Tests logging of a resource request.
void TestIgnoreQueryParams ()
void TestDivLocation ()
void TestDumpFast ()
 Tests DumpFast method.
void TestDumpSimple ()
 Tests DumpSimple method.
void TestDumpOrganized ()
 Tests DumpOrganized method.
void TestMultiProcess ()
 Tests accumulation of statistics simultaneously across multiple processes.
void AddChild ()
void LogSequenceOfPageRequests (SharedMemRefererStatistics *stats, const GoogleUrl *urls[], int number_of_urls)
SharedMemRefererStatisticsChildInit ()
 Create child process.
SharedMemRefererStatisticsParentInit ()
 Create parent process.

Protected Attributes

scoped_ptr< SharedMemTestEnvtest_env_
scoped_ptr< AbstractSharedMemshmem_runtime_
MockMessageHandler message_handler_

Static Protected Attributes

static const int kNumberOfStrings
static const int kStringSize
static const char kPrefix []
static const char kSuffix []

Member Function Documentation

void net_instaweb::SharedMemRefererStatisticsTestBase::LogSequenceOfPageRequests ( SharedMemRefererStatistics stats,
const GoogleUrl urls[],
int  number_of_urls 
) [protected]

Convience method that, for sequence url1, url2, url3, ..., performs LogPageRequest(url1, ""); LogPageRequest(url2, url1.uncheckedSpec()); LogPageRequest(url3, url2.uncheckedSpec()); ... and so on

If GoogleUrl("") is passed as a sequence entry, for example if the sequence is url1, url2, "", url3, url4, ..., the following behavior occurs: LogPageRequest(url1, ""); LogPageRequest(url2, url1.uncheckedSpec()); LogPageRequest(url3, ""); LogPageRequest(url4, url3.uncheckedSpec()); ... and so on

Tests that different Urls with the same div location and vice versa are logged properly

Tests that query parameter value corresponding to query parameter name SharedMemRefererStatistics::kParamName is extracted properly

Tests that Urls that are identical but for query parameters are still logged as the same Url

Tests simple functionality of referer statistics, namely logging a sequence of two page requests


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines