Page Speed Optimization Libraries
1.6.29.3
|
See file comment. More...
#include "mock_time_cache.h"
Public Member Functions | |
MockTimeCache (Scheduler *scheduler, CacheInterface *cache) | |
Note: takes ownership of nothing. | |
virtual void | Get (const GoogleString &key, Callback *callback) |
Reimplementations of CacheInterface methods. | |
virtual void | Put (const GoogleString &key, SharedString *value) |
virtual void | Delete (const GoogleString &key) |
void | set_delay_us (int64 delay_us) |
int64 | delay_us () const |
Scheduler * | scheduler () |
virtual GoogleString | Name () const |
virtual bool | IsBlocking () const |
virtual bool | IsHealthy () const |
virtual void | ShutDown () |
Static Public Member Functions | |
static GoogleString | FormatName (StringPiece name) |
See file comment.
void net_instaweb::MockTimeCache::set_delay_us | ( | int64 | delay_us | ) | [inline] |
Sets the delay the cache will inject before invoking the callbacks. Note that this only affects the 'Done' callback; 'ValidateCandidate' happens immediately.