]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/TestSwapDir.cc
Renamed squid.h to squid-old.h and config.h to squid.h
[thirdparty/squid.git] / src / tests / TestSwapDir.cc
1 #include "squid.h"
2
3 #include "squid-old.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()
32 {}
33
34 void
35 TestSwapDir::init()
36 {}
37
38 bool
39 TestSwapDir::unlinkdUseful() const
40 {
41 return false;
42 }
43
44 bool
45 TestSwapDir::canStore(const StoreEntry &, int64_t, int &load) const
46 {
47 load = 0;
48 return true;
49 }
50
51 StoreIOState::Pointer
52 TestSwapDir::createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *)
53 {
54 return NULL;
55 }
56
57 StoreIOState::Pointer
58 TestSwapDir::openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *)
59 {
60 return NULL;
61 }
62
63 void
64 TestSwapDir::parse(int, char*)
65 {}
66
67 StoreSearch *
68 TestSwapDir::search(String, HttpRequest *)
69 {
70 return NULL;
71 }