Page Speed Optimization Libraries  1.6.29.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::ForwardingMockCriticalImagesFinder Class Reference

#include "mock_critical_images_finder.h"

Inheritance diagram for net_instaweb::ForwardingMockCriticalImagesFinder:
net_instaweb::MockCriticalImagesFinder net_instaweb::CriticalImagesFinder

List of all members.

Public Member Functions

 ForwardingMockCriticalImagesFinder (Statistics *stats)
virtual void UpdateCriticalImagesSetInDriver (RewriteDriver *driver)
virtual const
PropertyCache::Cohort
GetCriticalImagesCohort () const
virtual bool IsCriticalImageInfoPresent (RewriteDriver *driver)

Detailed Description

This is currently used only to get a property cache miss in tests. This just forwards UpdateCriticalImagesSetInDriver and IsCriticalImageInfoPresent to the abstract base class CriticalImagesFinder.


Member Function Documentation

Identifies which cohort in the PropertyCache the critical image information is located in.

Returns NULL as there is no call to GetCriticalImagesCohort() in this class.

Reimplemented from net_instaweb::MockCriticalImagesFinder.

Returns true if the critical images are available, false otherwise. This is virtual only to be overridden in tests.

Reimplemented from net_instaweb::MockCriticalImagesFinder.

Gets critical images if present in the property cache and updates the critical_images set in RewriteDriver with the obtained set. If you override this method, driver->critical_images_info() must not return NULL after this function has been called.

Reimplemented from net_instaweb::MockCriticalImagesFinder.


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