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