testRock.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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 "compat/cppunit.h"
13
14/*
15 * test the store framework
16 */
17
18class testRock : public CPPUNIT_NS::TestFixture
19{
24
25public:
26 testRock() : rr(nullptr) {}
27 void setUp() override;
28 void tearDown() override;
29
31
32protected:
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
41private:
44};
45
46#endif /* SQUID_SRC_TEST_TESTROCK_H */
47
initializes shared memory segments used by Rock::SwapDir
Definition: RockSwapDir.h:156
Rock::SwapDirRr * rr
Definition: testRock.h:43
void testRockCreate()
Definition: testRock.cc:223
RefCount< Rock::SwapDir > SwapDirPointer
Definition: testRock.h:30
void testRockSwapOut()
Definition: testRock.cc:235
void setUp() override
Definition: testRock.cc:54
CPPUNIT_TEST(testRockSwapOut)
testRock()
Definition: testRock.h:26
StoreEntry * createEntry(const int i)
Definition: testRock.cc:187
void commonInit()
Definition: testRock.cc:120
void storeInit()
Definition: testRock.cc:156
CPPUNIT_TEST(testRockCreate)
StoreEntry * addEntry(const int i)
Definition: testRock.cc:202
CPPUNIT_TEST_SUITE(testRock)
SwapDirPointer store
Definition: testRock.h:42
void tearDown() override
Definition: testRock.cc:98
StoreEntry * getEntry(const int i)
Definition: testRock.cc:217
CPPUNIT_TEST_SUITE_END()

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors