27 #ifndef PAGESPEED_KERNEL_CACHE_MOCK_TIME_CACHE_H_
28 #define PAGESPEED_KERNEL_CACHE_MOCK_TIME_CACHE_H_
34 #include "pagespeed/kernel/cache/cache_interface.h"
36 namespace net_instaweb {
56 int64 delay_us()
const {
return delay_us_; }
58 Scheduler* scheduler() {
return scheduler_; }
Abstract interface for a cache.
Definition: cache_interface.h:32
See file comment.
Definition: mock_time_cache.h:41
virtual void ShutDown()
Definition: mock_time_cache.h:64
MockTimeCache(Scheduler *scheduler, CacheInterface *cache)
Note: takes ownership of nothing.
virtual bool IsBlocking() const
Definition: mock_time_cache.h:62
void set_delay_us(int64 delay_us)
Definition: mock_time_cache.h:55
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual bool IsHealthy() const =0
virtual bool IsBlocking() const =0
Definition: shared_string.h:40
virtual void Get(const GoogleString &key, Callback *callback)
Reimplementations of CacheInterface methods.
virtual GoogleString Name() const
Definition: mock_time_cache.h:60
Definition: cache_interface.h:42
virtual bool IsHealthy() const
Definition: mock_time_cache.h:63
virtual void Put(const GoogleString &key, const SharedString &value)
virtual void ShutDown()=0
Definition: scheduler.h:47
virtual GoogleString Name() const =0