testRock.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_SRC_TEST_TESTROCK_H
10 #define SQUID_SRC_TEST_TESTROCK_H
11 
12 #include <cppunit/extensions/HelperMacros.h>
13 
14 /*
15  * test the store framework
16  */
17 
18 class testRock : public CPPUNIT_NS::TestFixture
19 {
24 
25 public:
26  testRock() : rr(NULL) {}
27  virtual void setUp();
28  virtual void tearDown();
29 
31 
32 protected:
33  void commonInit();
34  void storeInit();
35  StoreEntry *createEntry(const int i);
36  StoreEntry *addEntry(const int i);
37  StoreEntry *getEntry(const int i);
38  void testRockCreate();
39  void testRockSwapOut();
40 
41 private:
44 };
45 
46 #endif /* SQUID_SRC_TEST_TESTROCK_H */
47 
testRock()
Definition: testRock.h:26
StoreEntry * addEntry(const int i)
Definition: testRock.cc:201
RefCount< Rock::SwapDir > SwapDirPointer
Definition: testRock.h:30
int i
Definition: membanger.c:49
CPPUNIT_TEST_SUITE(testRock)
void testRockCreate()
Definition: testRock.cc:222
CPPUNIT_TEST(testRockCreate)
SwapDirPointer store
Definition: testRock.h:42
void testRockSwapOut()
Definition: testRock.cc:234
StoreEntry * getEntry(const int i)
Definition: testRock.cc:216
StoreEntry * createEntry(const int i)
Definition: testRock.cc:186
virtual void tearDown()
Definition: testRock.cc:97
void storeInit()
Definition: testRock.cc:155
CPPUNIT_TEST_SUITE_END()
void commonInit()
Definition: testRock.cc:119
virtual void setUp()
Definition: testRock.cc:53
Rock::SwapDirRr * rr
Definition: testRock.h:43
#define NULL
Definition: types.h:166
initializes shared memory segments used by Rock::SwapDir
Definition: RockSwapDir.h:150

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors