18 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_CRITICAL_IMAGES_FINDER_TEST_BASE_H_
19 #define NET_INSTAWEB_REWRITER_PUBLIC_CRITICAL_IMAGES_FINDER_TEST_BASE_H_
23 #include "net/instaweb/util/public/property_cache.h"
27 namespace net_instaweb {
45 available_ = available;
56 virtual bool UpdateCriticalImagesCacheEntry(
57 const StringSet* critical_images_set,
58 const StringSet* css_critical_images_set) {
63 void CheckCriticalImageFinderStats(
int hits,
int expiries,
int not_found);
65 bool IsHtmlCriticalImage(StringPiece url);
66 bool IsCssCriticalImage(StringPiece url);
77 static const char kRequestUrl[];
virtual Availability Available(RewriteDriver *driver)
Definition: critical_images_finder_test_base.h:41
void ResetDriver()
Resets the state of the driver.
Holds the value & stability-metadata for a property.
Definition: property_cache.h:122
Definition: property_cache.h:186
Definition: critical_images_finder.h:65
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
Definition: rewrite_test_base.h:90
RewriteDriver * rewrite_driver()
Definition: rewrite_test_base.h:517
Definition: critical_images_finder_test_base.h:34
const PropertyCache::Cohort * cohort() const
Definition: critical_images_finder.h:152
Availability
Definition: critical_images_finder.h:67
Data is available.
Definition: critical_images_finder.h:70
Definition: rewrite_driver.h:100
bool UpdateCriticalImagesCacheEntryFromDriver(const StringSet *html_critical_images_set, const StringSet *css_critical_images_set, RewriteDriver *driver)
virtual void ComputeCriticalImages(RewriteDriver *driver)
Compute the critical images for the driver's url.
Definition: critical_images_finder_test_base.h:47
Definition: critical_images_finder_test_base.h:52
Simple name/value pair statistics implementation.
Definition: null_statistics.h:44