]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/TestSwapDir.cc
Merged from parent (trunk r11379, v3.2.0.6+).
[thirdparty/squid.git] / src / tests / TestSwapDir.cc
1 #include "config.h"
2
3 #include "squid.h"
4 #include "TestSwapDir.h"
5
6 uint64_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 bool
27 TestSwapDir::canStore(const StoreEntry &, int64_t, int &load) const
28 {
29 load = 0;
30 return true;
31 }
32
33 StoreIOState::Pointer
34 TestSwapDir::createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *)
35 {
36 return NULL;
37 }
38
39 StoreIOState::Pointer
40 TestSwapDir::openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *)
41 {
42 return NULL;
43 }
44
45 void
46 TestSwapDir::parse(int, char*)
47 {}
48
49 StoreSearch *
50 TestSwapDir::search(String, HttpRequest *)
51 {
52 return NULL;
53 }