]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_store.cc
Activate extra compiler checks (#667)
[thirdparty/squid.git] / src / tests / stub_store.cc
1 /*
2 * Copyright (C) 1996-2021 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 #include "RequestFlags.h"
11
12 #define STUB_API "store.cc"
13 #include "tests/STUB.h"
14
15 const char *storeStatusStr[] = { };
16 const char *pingStatusStr[] = { };
17 const char *memStatusStr[] = { };
18 const char *swapStatusStr[] = { };
19
20 #include "RemovalPolicy.h"
21 RemovalPolicy * createRemovalPolicy(RemovalPolicySettings *) STUB_RETVAL(nullptr)
22
23 #include "Store.h"
24 StoreIoStats store_io_stats;
25 bool StoreEntry::checkDeferRead(int) const STUB_RETVAL(false)
26 const char *StoreEntry::getMD5Text() const STUB_RETVAL(nullptr)
27 StoreEntry::StoreEntry() STUB
28 StoreEntry::~StoreEntry() STUB
29 void StoreEntry::write(StoreIOBuffer) STUB
30 bool StoreEntry::isAccepting() const STUB_RETVAL(false)
31 size_t StoreEntry::bytesWanted(Range<size_t> const, bool) const STUB_RETVAL(0)
32 void StoreEntry::complete() STUB
33 store_client_t StoreEntry::storeClientType() const STUB_RETVAL(STORE_NON_CLIENT)
34 char const *StoreEntry::getSerialisedMetaData(size_t &) const STUB_RETVAL(nullptr)
35 void StoreEntry::replaceHttpReply(const HttpReplyPointer &, bool) STUB
36 bool StoreEntry::mayStartSwapOut() STUB_RETVAL(false)
37 void StoreEntry::trimMemory(const bool) STUB
38 void StoreEntry::abort() STUB
39 bool StoreEntry::makePublic(const KeyScope) STUB
40 void StoreEntry::makePrivate(const bool) STUB
41 bool StoreEntry::setPublicKey(const KeyScope) STUB
42 void StoreEntry::setPrivateKey(const bool, const bool) STUB
43 void StoreEntry::expireNow() STUB
44 void StoreEntry::releaseRequest(const bool) STUB
45 void StoreEntry::negativeCache() STUB
46 bool StoreEntry::cacheNegatively() STUB
47 void StoreEntry::swapOut() STUB
48 void StoreEntry::swapOutFileClose(int) STUB
49 const char *StoreEntry::url() const STUB_RETVAL(nullptr)
50 bool StoreEntry::checkCachable() STUB_RETVAL(false)
51 int StoreEntry::checkNegativeHit() const STUB_RETVAL(0)
52 int StoreEntry::validToSend() const STUB_RETVAL(0)
53 bool StoreEntry::memoryCachable() STUB_RETVAL(false)
54 void StoreEntry::createMemObject() STUB
55 void StoreEntry::createMemObject(const char *, const char *, const HttpRequestMethod &) STUB
56 void StoreEntry::ensureMemObject(const char *, const char *, const HttpRequestMethod &) STUB
57 void StoreEntry::dump(int) const STUB
58 void StoreEntry::hashDelete() STUB
59 void StoreEntry::hashInsert(const cache_key *) STUB
60 void StoreEntry::registerAbortCallback(const AsyncCall::Pointer &) STUB
61 void StoreEntry::reset() STUB
62 void StoreEntry::setMemStatus(mem_status_t) STUB
63 bool StoreEntry::timestampsSet() STUB_RETVAL(false)
64 void StoreEntry::unregisterAbortCallback(const char *) STUB
65 void StoreEntry::destroyMemObject() STUB
66 int StoreEntry::checkTooSmall() STUB_RETVAL(0)
67 void StoreEntry::delayAwareRead(const Comm::ConnectionPointer&, char *, int, AsyncCall::Pointer) STUB
68 void StoreEntry::setNoDelay (bool const) STUB
69 bool StoreEntry::modifiedSince(const time_t, const int) const STUB_RETVAL(false)
70 bool StoreEntry::hasIfMatchEtag(const HttpRequest &) const STUB_RETVAL(false)
71 bool StoreEntry::hasIfNoneMatchEtag(const HttpRequest &) const STUB_RETVAL(false)
72 Store::Disk &StoreEntry::disk() const STUB_RETREF(Store::Disk)
73 size_t StoreEntry::inUseCount() STUB_RETVAL(0)
74 void *StoreEntry::operator new(size_t)
75 {
76 STUB
77 return new StoreEntry();
78 }
79 void StoreEntry::operator delete(void *) STUB
80 //#if USE_SQUID_ESI
81 //ESIElement::Pointer StoreEntry::cachedESITree STUB_RETVAL(nullptr)
82 //#endif
83 void StoreEntry::buffer() STUB
84 void StoreEntry::flush() STUB
85 int StoreEntry::unlock(const char *) STUB_RETVAL(0)
86 void StoreEntry::lock(const char *) STUB
87 void StoreEntry::touch() STUB
88 void StoreEntry::release(const bool) STUB
89 void StoreEntry::append(char const *, int) STUB
90 void StoreEntry::vappendf(const char *, va_list) STUB
91 void StoreEntry::setCollapsingRequirement(const bool) STUB
92
93 void Store::Maintain(void *) STUB
94
95 std::ostream &operator <<(std::ostream &os, const StoreEntry &)
96 {
97 STUB
98 return os;
99 }
100
101 size_t storeEntryInUse() STUB_RETVAL(0)
102 void storeEntryReplaceObject(StoreEntry *, HttpReply *) STUB
103 StoreEntry *storeGetPublic(const char *, const HttpRequestMethod&) STUB_RETVAL(nullptr)
104 StoreEntry *storeGetPublicByRequest(HttpRequest *, const KeyScope) STUB_RETVAL(nullptr)
105 StoreEntry *storeGetPublicByRequestMethod(HttpRequest *, const HttpRequestMethod&, const KeyScope) STUB_RETVAL(nullptr)
106 StoreEntry *storeCreateEntry(const char *, const char *, const RequestFlags &, const HttpRequestMethod&) STUB_RETVAL(nullptr)
107 StoreEntry *storeCreatePureEntry(const char *, const char *, const HttpRequestMethod&) STUB_RETVAL(nullptr)
108 void storeConfigure(void) STUB
109 int expiresMoreThan(time_t, time_t) STUB_RETVAL(0)
110 void storeAppendPrintf(StoreEntry *, const char *,...) STUB
111 void storeAppendVPrintf(StoreEntry *, const char *, va_list) STUB
112 int storeTooManyDiskFilesOpen(void) STUB_RETVAL(0)
113 void storeHeapPositionUpdate(StoreEntry *, SwapDir *) STUB
114 void storeSwapFileNumberSet(StoreEntry *, sfileno) STUB
115 void storeFsInit(void) STUB
116 void storeFsDone(void) STUB
117 void storeReplAdd(const char *, REMOVALPOLICYCREATE *) STUB
118 void destroyStoreEntry(void *) STUB
119 void storeGetMemSpace(int) STUB
120