18 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_MOCK_CRITICAL_IMAGES_FINDER_H_
19 #define NET_INSTAWEB_REWRITER_PUBLIC_MOCK_CRITICAL_IMAGES_FINDER_H_
23 #include "net/instaweb/rewriter/rendered_image.pb.h"
24 #include "net/instaweb/util/public/property_cache.h"
29 namespace net_instaweb {
61 int num_compute_calls() {
return compute_calls_; }
63 void set_critical_images(StringSet* critical_images) {
64 critical_images_.reset(critical_images);
67 void set_css_critical_images(StringSet* css_critical_images) {
68 css_critical_images_.reset(css_critical_images);
71 void set_rendered_images(RenderedImages* rendered_images) {
72 rendered_images_.reset(rendered_images);
Definition: property_cache.h:186
virtual bool IsCriticalImageInfoPresent(RewriteDriver *driver)
Definition: mock_critical_images_finder.h:75
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
Definition: critical_images_finder_test_base.h:34
const PropertyCache::Cohort * cohort() const
Definition: critical_images_finder.h:152
virtual Availability Available(RewriteDriver *driver)
Definition: mock_critical_images_finder.h:47
Availability
Definition: critical_images_finder.h:67
virtual void UpdateCriticalImagesSetInDriver(RewriteDriver *driver)
Data is available.
Definition: critical_images_finder.h:70
Definition: rewrite_driver.h:100
virtual void ComputeCriticalImages(RewriteDriver *driver)
Compute the critical images for the driver's url.
Definition: mock_critical_images_finder.h:57
virtual RenderedImages * ExtractRenderedImageDimensionsFromCache(RewriteDriver *driver)
Extracts rendered image dimensions from property cache.
Definition: mock_critical_images_finder.h:36