]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/TestSwapDir.h
Merged from trunk
[thirdparty/squid.git] / src / tests / TestSwapDir.h
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
15 virtual uint64_t maxSize() const;
16 virtual void stat(StoreEntry &) const; /* output stats to the provided store entry */
17
18 virtual void reconfigure(int, char*);
19 virtual void init();
20 virtual int canStore(const StoreEntry&) const;
21 virtual StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *);
22 virtual StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *);
23 virtual void parse(int, char*);
24 virtual StoreSearch *search(String, HttpRequest *);
25 };
26
27 typedef RefCount<TestSwapDir> TestSwapDirPointer;
28
29 #endif /* TEST_TESTSWAPDIR */