]>
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 uint64_t maxSize() const;
16 virtual void stat(StoreEntry
&) const; /* output stats to the provided store entry */
18 virtual void reconfigure(int, char*);
20 virtual bool canStore(const StoreEntry
&e
, int64_t diskSpaceNeeded
, int &load
) 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
*);
27 typedef RefCount
<TestSwapDir
> TestSwapDirPointer
;
29 #endif /* TEST_TESTSWAPDIR */