]>
Commit | Line | Data |
---|---|---|
c8f4eac4 | 1 | #ifndef TEST_TESTSWAPDIR |
2 | #define TEST_TESTSWAPDIR | |
3 | ||
4 | #include "squid.h" | |
5 | #include "SwapDir.h" | |
6 | ||
7 | class TestSwapDir : public SwapDir | |
8 | { | |
9 | ||
10 | public: | |
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(); |
aa1a691e | 23 | virtual bool canStore(const StoreEntry &e, int64_t diskSpaceNeeded, int &load) const; |
5add4d5c | 24 | virtual StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *); |
25 | virtual StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *); | |
c8f4eac4 | 26 | virtual void parse(int, char*); |
30abd221 | 27 | virtual StoreSearch *search(String, HttpRequest *); |
c8f4eac4 | 28 | }; |
29 | ||
30 | typedef RefCount<TestSwapDir> TestSwapDirPointer; | |
31 | ||
32 | #endif /* TEST_TESTSWAPDIR */ |