Page Speed Optimization Libraries  1.5.27.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes
net_instaweb::MockPropertyPage Class Reference
Inheritance diagram for net_instaweb::MockPropertyPage:
net_instaweb::PropertyPage net_instaweb::AbstractPropertyPage

List of all members.

Public Member Functions

 MockPropertyPage (ThreadSystem *thread_system, PropertyCache *property_cache, const StringPiece &key)
virtual bool IsCacheValid (int64 write_timestamp_ms) const
virtual void Done (bool valid)
 Called as a result of PropertyCache::Read when the data is available.
virtual void LogPageCohortInfo (AbstractLogRecord *log_record, int cohort_index)
bool called () const
bool valid () const
void set_time_ms (int64 time_ms)

Static Public Attributes

static const int kMockCacheType = 1
 Cache type for LogPageCohortInfo.
static const int kMockDeviceType = 2
 Device type for LogPageCohortInfo.

Member Function Documentation

virtual bool net_instaweb::MockPropertyPage::IsCacheValid ( int64  write_timestamp_ms) const [inline, virtual]

Called immediatly after the underlying cache lookup is done, from PropertyCache::CacheInterfaceCallback::Done().

Reimplemented from net_instaweb::PropertyPage.

virtual void net_instaweb::MockPropertyPage::LogPageCohortInfo ( AbstractLogRecord log_record,
int  cohort_index 
) [inline, virtual]

PropertyPage has LogPageCohortInfo with empty body. Property Cache Read function calls LogPageCohortInfo to do log job. In order to test it, implementation is added here.

Reimplemented from net_instaweb::PropertyPage.


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