net_instaweb::MockTimeCache Class Reference

See file comment. More...

#include "mock_time_cache.h"

Inheritance diagram for net_instaweb::MockTimeCache:
net_instaweb::CacheInterface

List of all members.

Public Member Functions

 MockTimeCache (MockTimer *timer, 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
MockTimertimer ()
virtual const char * Name () const
 The name of this CacheInterface -- used for logging and debugging.

Detailed Description

See file comment.


Member Function Documentation

virtual void net_instaweb::MockTimeCache::Put ( const GoogleString key,
SharedString value 
) [virtual]

Puts a value into the cache. The value that is passed in is not modified, but the SharedString is passed by non-const pointer because its reference count is bumped.

Implements net_instaweb::CacheInterface.

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:12 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3