-
Notifications
You must be signed in to change notification settings - Fork 638
Expand file tree
/
Copy pathTestSwapDir.cc
More file actions
72 lines (59 loc) · 1.09 KB
/
TestSwapDir.cc
File metadata and controls
72 lines (59 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
* Copyright (C) 1996-2026 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
#include "squid.h"
#include "TestSwapDir.h"
uint64_t
TestSwapDir::maxSize() const
{
return 3;
}
uint64_t
TestSwapDir::currentSize() const
{
return 2;
}
uint64_t
TestSwapDir::currentCount() const
{
return 2;
}
void
TestSwapDir::stat(StoreEntry &) const
{
const_cast<TestSwapDir *>(this)->statsCalled = true;
}
void
TestSwapDir::reconfigure()
{}
void
TestSwapDir::init()
{}
bool
TestSwapDir::unlinkdUseful() const
{
return false;
}
bool
TestSwapDir::canStore(const StoreEntry &, int64_t, int &load) const
{
load = 0;
return true;
}
StoreIOState::Pointer
TestSwapDir::createStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *)
{
return nullptr;
}
StoreIOState::Pointer
TestSwapDir::openStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *)
{
return nullptr;
}
void
TestSwapDir::parse(int, char*)
{}