]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/TestSwapDir.cc
Removed squid-old.h
[thirdparty/squid.git] / src / tests / TestSwapDir.cc
1 #include "squid.h"
2 #include "TestSwapDir.h"
3
4 uint64_t
5 TestSwapDir::maxSize() const
6 {
7 return 3;
8 }
9
10 uint64_t
11 TestSwapDir::currentSize() const
12 {
13 return 2;
14 }
15
16 uint64_t
17 TestSwapDir::currentCount() const
18 {
19 return 2;
20 }
21
22 void
23 TestSwapDir::stat(StoreEntry &) const
24 {
25 const_cast<TestSwapDir *>(this)->statsCalled = true;
26 }
27
28 void
29 TestSwapDir::reconfigure()
30 {}
31
32 void
33 TestSwapDir::init()
34 {}
35
36 bool
37 TestSwapDir::unlinkdUseful() const
38 {
39 return false;
40 }
41
42 bool
43 TestSwapDir::canStore(const StoreEntry &, int64_t, int &load) const
44 {
45 load = 0;
46 return true;
47 }
48
49 StoreIOState::Pointer
50 TestSwapDir::createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *)
51 {
52 return NULL;
53 }
54
55 StoreIOState::Pointer
56 TestSwapDir::openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *)
57 {
58 return NULL;
59 }
60
61 void
62 TestSwapDir::parse(int, char*)
63 {}
64
65 StoreSearch *
66 TestSwapDir::search(String, HttpRequest *)
67 {
68 return NULL;
69 }