]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/TestSwapDir.cc
Merged from parent (trunk r11711, v3.2.0.11+).
[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 uint64_t
13 TestSwapDir::currentSize() const
14 {
15 return 2;
16 }
17
18 uint64_t
19 TestSwapDir::currentCount() const
20 {
21 return 2;
22 }
23
24 void
25 TestSwapDir::stat(StoreEntry &) const
26 {
27 const_cast<TestSwapDir *>(this)->statsCalled = true;
28 }
29
30 void
31 TestSwapDir::reconfigure(int, char*)
32 {}
33
34 void
35 TestSwapDir::init()
36 {}
37
38 bool
39 TestSwapDir::canStore(const StoreEntry &, int64_t, int &load) const
40 {
41 load = 0;
42 return true;
43 }
44
45 StoreIOState::Pointer
46 TestSwapDir::createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *)
47 {
48 return NULL;
49 }
50
51 StoreIOState::Pointer
52 TestSwapDir::openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *)
53 {
54 return NULL;
55 }
56
57 void
58 TestSwapDir::parse(int, char*)
59 {}
60
61 StoreSearch *
62 TestSwapDir::search(String, HttpRequest *)
63 {
64 return NULL;
65 }