]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/TestSwapDir.h
Renamed squid.h to squid-old.h and config.h to squid.h
[thirdparty/squid.git] / src / tests / TestSwapDir.h
CommitLineData
c8f4eac4 1#ifndef TEST_TESTSWAPDIR
2#define TEST_TESTSWAPDIR
3
f7f3304a 4#include "squid-old.h"
c8f4eac4 5#include "SwapDir.h"
6
7class TestSwapDir : public SwapDir
8{
9
10public:
11 TestSwapDir() : SwapDir("test"), statsCalled (false) {}
12
13 bool statsCalled;
14
12e11a5c 15 virtual uint64_t maxSize() const;
d5d5493b
DK
16 virtual uint64_t currentSize() const;
17 virtual uint64_t currentCount() const;
c8f4eac4 18 virtual void stat(StoreEntry &) const; /* output stats to the provided store entry */
d5d5493b 19 virtual void swappedOut(const StoreEntry &e) {}
c8f4eac4 20
c6059970 21 virtual void reconfigure();
c8f4eac4 22 virtual void init();
c521ad17 23 virtual bool unlinkdUseful() const;
aa1a691e 24 virtual bool canStore(const StoreEntry &e, int64_t diskSpaceNeeded, int &load) const;
5add4d5c 25 virtual StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *);
26 virtual StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *);
c8f4eac4 27 virtual void parse(int, char*);
30abd221 28 virtual StoreSearch *search(String, HttpRequest *);
c8f4eac4 29};
30
31typedef RefCount<TestSwapDir> TestSwapDirPointer;
32
33#endif /* TEST_TESTSWAPDIR */