]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_libstore.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / stub_libstore.cc
1 /*
2 * Copyright (C) 1996-2019 The Squid Software Foundation and contributors
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
9 #include "squid.h"
10
11 #define STUB_API "store/libstore.la"
12 #include "tests/STUB.h"
13
14 #include "store/Controller.h"
15 namespace Store
16 {
17 Controller::Controller() {STUB_NOP}
18 Controller::~Controller() {STUB_NOP}
19 void Controller::create() STUB
20 void Controller::init() STUB
21 uint64_t Controller::maxSize() const STUB_RETVAL(0)
22 uint64_t Controller::minSize() const STUB_RETVAL(0)
23 uint64_t Controller::currentSize() const STUB_RETVAL(0)
24 uint64_t Controller::currentCount() const STUB_RETVAL(0)
25 int64_t Controller::maxObjectSize() const STUB_RETVAL(0)
26 void Controller::getStats(StoreInfoStats &) const STUB
27 void Controller::stat(StoreEntry &) const STUB
28 void Controller::sync() STUB
29 void Controller::maintain() STUB
30 void Controller::evictCached(StoreEntry &) STUB
31 void Controller::evictIfFound(const cache_key *) STUB
32 int Controller::callback() STUB
33 StoreEntry *Controller::find(const cache_key *) STUB_RETVAL(nullptr)
34 StoreEntry *Controller::peek(const cache_key *) STUB_RETVAL(nullptr)
35 StoreEntry *Controller::findCallbackXXX(const cache_key *) STUB_RETVAL(nullptr)
36 bool Controller::markedForDeletion(const cache_key *) const STUB_RETVAL(false)
37 bool Controller::markedForDeletionAndAbandoned(const StoreEntry &) const STUB_RETVAL(false)
38 bool Controller::hasReadableDiskEntry(const StoreEntry &) const STUB_RETVAL(false)
39 int64_t Controller::accumulateMore(StoreEntry &) const STUB_RETVAL(0)
40 void Controller::updateLimits() STUB
41 void Controller::handleIdleEntry(StoreEntry &) STUB
42 void Controller::freeMemorySpace(const int) STUB
43 void Controller::memoryOut(StoreEntry &, const bool) STUB
44 void Controller::updateOnNotModified(StoreEntry *, const StoreEntry &) STUB
45 bool Controller::allowCollapsing(StoreEntry *, const RequestFlags &, const HttpRequestMethod &) STUB_RETVAL(false)
46 void Controller::addReading(StoreEntry *, const cache_key *) STUB
47 void Controller::addWriting(StoreEntry *, const cache_key *) STUB
48 bool Controller::transientsReader(const StoreEntry &) const STUB_RETVAL(false)
49 bool Controller::transientsWriter(const StoreEntry &) const STUB_RETVAL(false)
50 void Controller::transientsCompleteWriting(StoreEntry &) STUB
51 void Controller::syncCollapsed(const sfileno) STUB
52 void Controller::stopSharing(StoreEntry &) STUB
53 int Controller::transientReaders(const StoreEntry &) const STUB_RETVAL(0)
54 void Controller::transientsDisconnect(StoreEntry &) STUB
55 void Controller::transientsClearCollapsingRequirement(StoreEntry &) STUB
56 void Controller::memoryDisconnect(StoreEntry &) STUB
57 StoreSearch *Controller::search() STUB_RETVAL(nullptr)
58 bool Controller::SmpAware() STUB_RETVAL(false)
59 int Controller::store_dirs_rebuilding = 0;
60 Controller nil;
61 Controller &Root() STUB_RETVAL(Store::nil)
62 void Init(Controller *) STUB
63 void FreeMemory() STUB
64 }
65
66 #include "store/Disk.h"
67 namespace Store
68 {
69 Disk::Disk(char const *) {STUB}
70 Disk::~Disk() {STUB}
71 char const *Disk::type() const STUB_RETVAL(nullptr)
72 bool Disk::needsDiskStrand() const STUB_RETVAL(false)
73 bool Disk::active() const STUB_RETVAL(false)
74 void Disk::diskFull() STUB
75 void Disk::create() STUB
76 StoreEntry *Disk::get(const cache_key *) STUB_RETVAL(nullptr)
77 uint64_t Disk::minSize() const STUB_RETVAL(0)
78 int64_t Disk::maxObjectSize() const STUB_RETVAL(0)
79 void Disk::getStats(StoreInfoStats &) const STUB
80 void Disk::stat(StoreEntry &) const STUB
81 void Disk::reference(StoreEntry &) STUB
82 bool Disk::dereference(StoreEntry &) STUB_RETVAL(false)
83 void Disk::maintain() STUB
84 int64_t Disk::minObjectSize() const STUB_RETVAL(0)
85 void Disk::maxObjectSize(int64_t) STUB
86 bool Disk::objectSizeIsAcceptable(int64_t) const STUB_RETVAL(false)
87 void Disk::parseOptions(int) STUB
88 void Disk::dumpOptions(StoreEntry *) const STUB
89 ConfigOption *Disk::getOptionTree() const STUB_RETVAL(nullptr)
90 void Disk::dump(StoreEntry &) const STUB
91 bool Disk::doubleCheck(StoreEntry &) STUB_RETVAL(false)
92 void Disk::statfs(StoreEntry &) const STUB
93 bool Disk::canLog(StoreEntry const &) const STUB_RETVAL(false)
94 void Disk::openLog() STUB
95 void Disk::closeLog() STUB
96 void Disk::logEntry(const StoreEntry &, int) const STUB
97 int Disk::writeCleanStart() STUB_RETVAL(0)
98 void Disk::writeCleanDone() STUB
99 }
100
101 #include "store/Disks.h"
102 namespace Store
103 {
104 Disks::Disks() {STUB}
105 void Disks::create() STUB
106 void Disks::init() STUB
107 StoreEntry *Disks::get(const cache_key *) STUB_RETVAL(nullptr)
108 uint64_t Disks::maxSize() const STUB_RETVAL(0)
109 uint64_t Disks::minSize() const STUB_RETVAL(0)
110 uint64_t Disks::currentSize() const STUB_RETVAL(0)
111 uint64_t Disks::currentCount() const STUB_RETVAL(0)
112 int64_t Disks::maxObjectSize() const STUB_RETVAL(0)
113 void Disks::getStats(StoreInfoStats &) const STUB
114 void Disks::stat(StoreEntry &) const STUB
115 void Disks::sync() STUB
116 void Disks::reference(StoreEntry &) STUB
117 bool Disks::dereference(StoreEntry &) STUB_RETVAL(false)
118 void Disks::updateHeaders(StoreEntry *) STUB
119 void Disks::maintain() STUB
120 bool Disks::anchorToCache(StoreEntry &, bool &) STUB_RETVAL(false)
121 bool Disks::updateAnchored(StoreEntry &) STUB_RETVAL(false)
122 void Disks::evictCached(StoreEntry &) STUB
123 void Disks::evictIfFound(const cache_key *) STUB
124 int Disks::callback() STUB_RETVAL(0)
125 void Disks::updateLimits() STUB
126 int64_t Disks::accumulateMore(const StoreEntry&) const STUB_RETVAL(0)
127 bool Disks::SmpAware() STUB_RETVAL(false)
128 bool Disks::hasReadableEntry(const StoreEntry &) const STUB_RETVAL(false)
129 }
130 void storeDirOpenSwapLogs(void) STUB
131 int storeDirWriteCleanLogs(int) STUB_RETVAL(0)
132 void storeDirCloseSwapLogs(void) STUB
133 void allocate_new_swapdir(Store::DiskConfig *) STUB
134 void free_cachedir(Store::DiskConfig *) STUB
135 STDIRSELECT *storeDirSelectSwapDir = nullptr;
136 void storeDirSwapLog(const StoreEntry *, int) STUB
137
138 #include "store/LocalSearch.h"
139 namespace Store
140 {
141 StoreSearch *NewLocalSearch() STUB_RETVAL(nullptr)
142 }
143