]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_store.cc
Made test-builds.sh happy by adding missing stubs and adjusting existing ones.
[thirdparty/squid.git] / src / tests / stub_store.cc
1 #include "squid.h"
2 #include "RequestFlags.h"
3
4 #define STUB_API "store.cc"
5 #include "tests/STUB.h"
6
7 const char *storeStatusStr[] = { };
8 const char *pingStatusStr[] = { };
9 const char *memStatusStr[] = { };
10 const char *swapStatusStr[] = { };
11
12 /* and code defined in the wrong .cc file */
13 #include "SwapDir.h"
14 void StoreController::maintain() STUB
15 #include "RemovalPolicy.h"
16 RemovalPolicy * createRemovalPolicy(RemovalPolicySettings * settings) STUB_RETVAL(NULL)
17
18 #include "Store.h"
19 StorePointer Store::CurrentRoot = NULL;
20 StoreIoStats store_io_stats;
21 bool StoreEntry::checkDeferRead(int fd) const STUB_RETVAL(false)
22 const char *StoreEntry::getMD5Text() const STUB_RETVAL(NULL)
23 StoreEntry::StoreEntry() STUB
24 StoreEntry::~StoreEntry() STUB
25 HttpReply const *StoreEntry::getReply() const STUB_RETVAL(NULL)
26 void StoreEntry::write(StoreIOBuffer) STUB
27 bool StoreEntry::isAccepting() const STUB_RETVAL(false)
28 size_t StoreEntry::bytesWanted(Range<size_t> const, bool) const STUB_RETVAL(0)
29 void StoreEntry::complete() STUB
30 store_client_t StoreEntry::storeClientType() const STUB_RETVAL(STORE_NON_CLIENT)
31 char const *StoreEntry::getSerialisedMetaData() STUB_RETVAL(NULL)
32 void StoreEntry::replaceHttpReply(HttpReply *, bool andStartWriting) STUB
33 bool StoreEntry::mayStartSwapOut() STUB_RETVAL(false)
34 void StoreEntry::trimMemory(const bool preserveSwappable) STUB
35 void StoreEntry::abort() STUB
36 void StoreEntry::unlink() STUB
37 void StoreEntry::makePublic() STUB
38 void StoreEntry::makePrivate() STUB
39 void StoreEntry::setPublicKey() STUB
40 void StoreEntry::setPrivateKey() STUB
41 void StoreEntry::expireNow() STUB
42 void StoreEntry::releaseRequest() STUB
43 void StoreEntry::negativeCache() STUB
44 void StoreEntry::cacheNegatively() STUB
45 void StoreEntry::purgeMem() STUB
46 void StoreEntry::swapOut() STUB
47 void StoreEntry::swapOutFileClose(int how) STUB
48 const char *StoreEntry::url() const STUB_RETVAL(NULL)
49 int StoreEntry::checkCachable() STUB_RETVAL(0)
50 int StoreEntry::checkNegativeHit() const STUB_RETVAL(0)
51 int StoreEntry::locked() const STUB_RETVAL(0)
52 int StoreEntry::validToSend() const STUB_RETVAL(0)
53 bool StoreEntry::memoryCachable() const STUB_RETVAL(false)
54 MemObject *StoreEntry::makeMemObject() STUB_RETVAL(NULL)
55 void StoreEntry::createMemObject(const char *, const char *, const HttpRequestMethod &aMethod) STUB
56 void StoreEntry::dump(int debug_lvl) const STUB
57 void StoreEntry::hashDelete() STUB
58 void StoreEntry::hashInsert(const cache_key *) STUB
59 void StoreEntry::registerAbort(STABH * cb, void *) STUB
60 void StoreEntry::reset() STUB
61 void StoreEntry::setMemStatus(mem_status_t) STUB
62 void StoreEntry::timestampsSet() STUB
63 void StoreEntry::unregisterAbort() STUB
64 void StoreEntry::destroyMemObject() STUB
65 int StoreEntry::checkTooSmall() STUB_RETVAL(0)
66 void StoreEntry::delayAwareRead(const Comm::ConnectionPointer&, char *buf, int len, AsyncCall::Pointer callback) STUB
67 void StoreEntry::setNoDelay (bool const) STUB
68 bool StoreEntry::modifiedSince(HttpRequest * request) const STUB_RETVAL(false)
69 bool StoreEntry::hasIfMatchEtag(const HttpRequest &request) const STUB_RETVAL(false)
70 bool StoreEntry::hasIfNoneMatchEtag(const HttpRequest &request) const STUB_RETVAL(false)
71 RefCount<SwapDir> StoreEntry::store() const STUB_RETVAL(NULL)
72 size_t StoreEntry::inUseCount() STUB_RETVAL(0)
73 void StoreEntry::getPublicByRequestMethod(StoreClient * aClient, HttpRequest * request, const HttpRequestMethod& method) STUB
74 void StoreEntry::getPublicByRequest(StoreClient * aClient, HttpRequest * request) STUB
75 void StoreEntry::getPublic(StoreClient * aClient, const char *uri, const HttpRequestMethod& method) STUB
76 void *StoreEntry::operator new(size_t byteCount)
77 {
78 STUB
79 return new StoreEntry();
80 }
81 void StoreEntry::operator delete(void *address) STUB
82 void StoreEntry::setReleaseFlag() STUB
83 //#if USE_SQUID_ESI
84 //ESIElement::Pointer StoreEntry::cachedESITree STUB_RETVAL(NULL)
85 //#endif
86 void StoreEntry::append(char const *, int len) STUB
87 void StoreEntry::buffer() STUB
88 void StoreEntry::flush() STUB
89 int StoreEntry::unlock(const char *) STUB_RETVAL(0)
90 int64_t StoreEntry::objectLen() const STUB_RETVAL(0)
91 int64_t StoreEntry::contentLen() const STUB_RETVAL(0)
92 void StoreEntry::lock(const char *) STUB
93 void StoreEntry::touch() STUB
94 void StoreEntry::release() STUB
95
96 NullStoreEntry *NullStoreEntry::getInstance() STUB_RETVAL(NULL)
97 const char *NullStoreEntry::getMD5Text() const STUB_RETVAL(NULL)
98 void NullStoreEntry::operator delete(void *address) STUB
99 // private virtual. Why is this linked from outside?
100 const char *NullStoreEntry::getSerialisedMetaData() STUB_RETVAL(NULL)
101
102 void Store::Root(Store *) STUB
103 void Store::Root(RefCount<Store>) STUB
104 void Store::Stats(StoreEntry * output) STUB
105 void Store::Maintain(void *unused) STUB
106 void Store::create() STUB
107 void Store::diskFull() STUB
108 void Store::sync() STUB
109 void Store::unlink(StoreEntry &) STUB
110
111 std::ostream &operator <<(std::ostream &os, const StoreEntry &)
112 {
113 STUB
114 return os;
115 }
116
117 size_t storeEntryInUse() STUB_RETVAL(0)
118 void storeEntryReplaceObject(StoreEntry *, HttpReply *) STUB
119 StoreEntry *storeGetPublic(const char *uri, const HttpRequestMethod& method) STUB_RETVAL(NULL)
120 StoreEntry *storeGetPublicByRequest(HttpRequest * request) STUB_RETVAL(NULL)
121 StoreEntry *storeGetPublicByRequestMethod(HttpRequest * request, const HttpRequestMethod& method) STUB_RETVAL(NULL)
122 StoreEntry *storeCreateEntry(const char *, const char *, const RequestFlags &, const HttpRequestMethod&) STUB_RETVAL(NULL)
123 StoreEntry *storeCreatePureEntry(const char *storeId, const char *logUrl, const RequestFlags &, const HttpRequestMethod&) STUB_RETVAL(NULL)
124 void storeInit(void) STUB
125 void storeConfigure(void) STUB
126 void storeFreeMemory(void) STUB
127 int expiresMoreThan(time_t, time_t) STUB_RETVAL(0)
128 void storeAppendPrintf(StoreEntry *, const char *,...) STUB
129 void storeAppendVPrintf(StoreEntry *, const char *, va_list ap) STUB
130 int storeTooManyDiskFilesOpen(void) STUB_RETVAL(0)
131 void storeHeapPositionUpdate(StoreEntry *, SwapDir *) STUB
132 void storeSwapFileNumberSet(StoreEntry * e, sfileno filn) STUB
133 void storeFsInit(void) STUB
134 void storeFsDone(void) STUB
135 void storeReplAdd(const char *, REMOVALPOLICYCREATE *) STUB
136 void destroyStoreEntry(void *) STUB
137 // in Packer.cc !? void packerToStoreInit(Packer * p, StoreEntry * e) STUB
138 void storeGetMemSpace(int size) STUB
139
140 #if !_USE_INLINE_ /* stubs for Store.cci */
141 bool StoreEntry::isEmpty () const STUB_RETVAL(true)
142 HttpReply const *NullStoreEntry::getReply() const STUB_RETVAL(NULL)
143
144 Store &Store::Root()
145 {
146 CPPUNIT_ASSERT(CurrentRoot != NULL);
147 return *CurrentRoot;
148 }
149 #endif /* !_USE_INLINE_ */