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