Page Speed Optimization Libraries
1.6.29.3
|
#include "mock_critical_images_finder.h"
Public Member Functions | |
ForwardingMockCriticalImagesFinder (Statistics *stats) | |
virtual void | UpdateCriticalImagesSetInDriver (RewriteDriver *driver) |
virtual const PropertyCache::Cohort * | GetCriticalImagesCohort () const |
virtual bool | IsCriticalImageInfoPresent (RewriteDriver *driver) |
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.
virtual const PropertyCache::Cohort* net_instaweb::ForwardingMockCriticalImagesFinder::GetCriticalImagesCohort | ( | ) | const [inline, virtual] |
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.
virtual bool net_instaweb::ForwardingMockCriticalImagesFinder::IsCriticalImageInfoPresent | ( | RewriteDriver * | driver | ) | [inline, virtual] |
Returns true if the critical images are available, false otherwise. This is virtual only to be overridden in tests.
Reimplemented from net_instaweb::MockCriticalImagesFinder.
virtual void net_instaweb::ForwardingMockCriticalImagesFinder::UpdateCriticalImagesSetInDriver | ( | RewriteDriver * | driver | ) | [inline, virtual] |
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.