]>
Commit | Line | Data |
---|---|---|
4e0938ef | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 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 | 12 | uint64_t |
c8f4eac4 | 13 | TestSwapDir::maxSize() const |
14 | { | |
15 | return 3; | |
16 | } | |
17 | ||
d5d5493b DK |
18 | uint64_t |
19 | TestSwapDir::currentSize() const | |
20 | { | |
21 | return 2; | |
22 | } | |
23 | ||
24 | uint64_t | |
25 | TestSwapDir::currentCount() const | |
26 | { | |
27 | return 2; | |
28 | } | |
29 | ||
c8f4eac4 | 30 | void |
31 | TestSwapDir::stat(StoreEntry &) const | |
32 | { | |
33 | const_cast<TestSwapDir *>(this)->statsCalled = true; | |
34 | } | |
35 | ||
36 | void | |
c6059970 | 37 | TestSwapDir::reconfigure() |
c8f4eac4 | 38 | {} |
39 | ||
40 | void | |
41 | TestSwapDir::init() | |
42 | {} | |
43 | ||
c521ad17 DK |
44 | bool |
45 | TestSwapDir::unlinkdUseful() const | |
46 | { | |
47 | return false; | |
48 | } | |
49 | ||
aa1a691e AR |
50 | bool |
51 | TestSwapDir::canStore(const StoreEntry &, int64_t, int &load) const | |
c8f4eac4 | 52 | { |
aa1a691e | 53 | load = 0; |
c8f4eac4 | 54 | return true; |
55 | } | |
56 | ||
9bdad7a7 | 57 | StoreIOState::Pointer |
5add4d5c | 58 | TestSwapDir::createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *) |
c8f4eac4 | 59 | { |
60 | return NULL; | |
61 | } | |
62 | ||
9bdad7a7 | 63 | StoreIOState::Pointer |
5add4d5c | 64 | TestSwapDir::openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *) |
c8f4eac4 | 65 | { |
66 | return NULL; | |
67 | } | |
68 | ||
69 | void | |
70 | TestSwapDir::parse(int, char*) | |
71 | {} | |
7d84d4ca | 72 |