]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/TestSwapDir.cc
Merge in current state of store refactoring work. The search method has been
[thirdparty/squid.git] / src / tests / TestSwapDir.cc
1 #include "config.h"
2
3 #include "squid.h"
4 #include "TestSwapDir.h"
5
6 size_t
7 TestSwapDir::maxSize() const
8 {
9 return 3;
10 }
11
12 void
13 TestSwapDir::stat(StoreEntry &) const
14 {
15 const_cast<TestSwapDir *>(this)->statsCalled = true;
16 }
17
18 void
19 TestSwapDir::reconfigure(int, char*)
20 {}
21
22 void
23 TestSwapDir::init()
24 {}
25
26 int
27 TestSwapDir::canStore(const StoreEntry&) const
28 {
29 return true;
30 }
31
32 RefCount<storeIOState>
33 TestSwapDir::createStoreIO(StoreEntry&, void (*)(void*, int, storeIOState*), void (*)(void*, int, storeIOState*), void*)
34 {
35 return NULL;
36 }
37
38 RefCount<storeIOState>
39 TestSwapDir::openStoreIO(StoreEntry&, void (*)(void*, int, storeIOState*), void (*)(void*, int, storeIOState*), void*)
40 {
41 return NULL;
42 }
43
44 void
45 TestSwapDir::parse(int, char*)
46 {}
47
48 StoreSearch *
49 TestSwapDir::search(String, HttpRequest *)
50 {
51 return NULL;
52 }