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