]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/TestSwapDir.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / TestSwapDir.cc
CommitLineData
4e0938ef 1/*
bde978a6 2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4e0938ef
AJ
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
c8f4eac4 9#include "squid.h"
10#include "TestSwapDir.h"
11
12e11a5c 12uint64_t
c8f4eac4 13TestSwapDir::maxSize() const
14{
15 return 3;
16}
17
d5d5493b
DK
18uint64_t
19TestSwapDir::currentSize() const
20{
21 return 2;
22}
23
24uint64_t
25TestSwapDir::currentCount() const
26{
27 return 2;
28}
29
c8f4eac4 30void
31TestSwapDir::stat(StoreEntry &) const
32{
33 const_cast<TestSwapDir *>(this)->statsCalled = true;
34}
35
36void
c6059970 37TestSwapDir::reconfigure()
c8f4eac4 38{}
39
40void
41TestSwapDir::init()
42{}
43
c521ad17
DK
44bool
45TestSwapDir::unlinkdUseful() const
46{
47 return false;
48}
49
aa1a691e
AR
50bool
51TestSwapDir::canStore(const StoreEntry &, int64_t, int &load) const
c8f4eac4 52{
aa1a691e 53 load = 0;
c8f4eac4 54 return true;
55}
56
9bdad7a7 57StoreIOState::Pointer
5add4d5c 58TestSwapDir::createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *)
c8f4eac4 59{
60 return NULL;
61}
62
9bdad7a7 63StoreIOState::Pointer
5add4d5c 64TestSwapDir::openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *)
c8f4eac4 65{
66 return NULL;
67}
68
69void
70TestSwapDir::parse(int, char*)
71{}
72
73StoreSearch *
30abd221 74TestSwapDir::search(String, HttpRequest *)
c8f4eac4 75{
76 return NULL;
77}
f53969cc 78