Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Protected Types | Protected Member Functions | Static Protected Attributes | List of all members
net_instaweb::SharedMemCacheTestBase Class Reference
Inheritance diagram for net_instaweb::SharedMemCacheTestBase:
net_instaweb::CacheTestBase net_instaweb::SharedMemCacheTestTemplate< ConcreteTestEnv >

Protected Types

typedef void(SharedMemCacheTestBase::* TestMethod )()

Protected Member Functions

 SharedMemCacheTestBase (SharedMemTestEnv *test_env)
virtual void TearDown ()
virtual SharedMemCache
< kBlockSize > * 
Cache ()
virtual void SanityCheck ()
void TestBasic ()
void TestReinsert ()
void TestReplacement ()
void TestReaderWriter ()
void TestConflict ()
void TestEvict ()
void TestSnapshot ()
void TestRegisterSnapshotFileCache ()
void TestCheckpointAndRestore ()
void ResetCache ()
- Protected Member Functions inherited from net_instaweb::CacheTestBase
virtual CallbackNewCallback ()
virtual void PostOpCleanup ()
void CheckGet (const GoogleString &key, const GoogleString &expected_value)
void CheckGet (CacheInterface *cache, const GoogleString &key, const GoogleString &expected_value)
 As above, but specifies which cache to use.
void CheckPut (const GoogleString &key, const GoogleString &value)
 Writes a value into the cache.
void CheckPut (CacheInterface *cache, const GoogleString &key, const GoogleString &value)
void CheckDelete (const GoogleString &key)
void CheckNotFound (const char *key)
 Performs a Get and verifies that the key is not found.
void CheckNotFound (CacheInterface *cache, const char *key)
CallbackAddCallback ()
void WaitAndCheck (Callback *callback, const GoogleString &expected_value)
void WaitAndCheckNotFound (Callback *callback)
void IssueMultiGet (Callback *c0, const GoogleString &key0, Callback *c1, const GoogleString &key1, Callback *c2, const GoogleString &key2)
void TestMultiGet ()
void PopulateCache (int num)
void set_invalid_value (const char *v)
void set_invalid_key (const char *k)
CallbackInitiateGet (const GoogleString &key)
CallbackInitiateGet (CacheInterface *cache, const GoogleString &key)
void set_mutex (AbstractMutex *mutex)
 Sets the mutex used to protect outstanding_fetches_.
int outstanding_fetches ()

Static Protected Attributes

static const int kBlockSize = 512

The documentation for this class was generated from the following file: