Page Speed Optimization Libraries  1.6.29.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
net_instaweb::CacheTestBase::Callback Class Reference

#include "cache_test_base.h"

List of all members.

Public Member Functions

 Callback (CacheTestBase *test)
CallbackReset ()
virtual bool ValidateCandidate (const GoogleString &key, CacheInterface::KeyState state)
virtual void Done (CacheInterface::KeyState state)
virtual void Wait ()
void set_invalid_value (const char *v)
StringPiece value_str ()

Public Attributes

bool validate_called_
bool noop_wait_called_
bool value_of_called_when_wait_was_invoked_

Detailed Description

Helper class for calling Get on cache implementations that are blocking in nature (e.g. in-memory LRU or blocking file-system). Also tests the CacheInterface::SynchronousCallback class in the process.


Member Function Documentation

virtual void net_instaweb::CacheTestBase::Callback::Wait ( ) [inline, virtual]

The default implementation has an empty Wait implementation. If you override this, be sure also to call set_mutex() from the test subclass constructor or SetUp to protect outstanding_fetches_.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines