]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/TestSwapDir.h
Fixed TestSwapDir test after I changed StoreIOState.
[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 size_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&,
22 StoreIOState::STFNCB,
23 StoreIOState::STIOCB,
24 void*);
25 virtual StoreIOState::Pointer openStoreIO(StoreEntry&,
26 StoreIOState::STFNCB,
27 StoreIOState::STIOCB,
28 void*);
29 virtual void parse(int, char*);
30 virtual StoreSearch *search(String, HttpRequest *);
31 };
32
33 typedef RefCount<TestSwapDir> TestSwapDirPointer;
34
35 #endif /* TEST_TESTSWAPDIR */