]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/TestSwapDir.h
1 #ifndef TEST_TESTSWAPDIR
2 #define TEST_TESTSWAPDIR
7 class TestSwapDir
: public SwapDir
11 TestSwapDir() : SwapDir("test"), statsCalled (false) {}
15 virtual size_t maxSize() const;
16 virtual void stat(StoreEntry
&) const; /* output stats to the provided store entry */
18 virtual void reconfigure(int, char*);
20 virtual int canStore(const StoreEntry
&) const;
21 virtual StoreIOState::Pointer
createStoreIO(StoreEntry
&,
25 virtual StoreIOState::Pointer
openStoreIO(StoreEntry
&,
29 virtual void parse(int, char*);
30 virtual StoreSearch
*search(String
, HttpRequest
*);
33 typedef RefCount
<TestSwapDir
> TestSwapDirPointer
;
35 #endif /* TEST_TESTSWAPDIR */