stub_store.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2022 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"
22 
23 #include "Store.h"
25 bool StoreEntry::checkDeferRead(int) const STUB_RETVAL(false)
26 const char *StoreEntry::getMD5Text() const STUB_RETVAL(nullptr)
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::setNoDelay (bool const) STUB
68 bool StoreEntry::modifiedSince(const time_t, const int) const STUB_RETVAL(false)
69 bool StoreEntry::hasIfMatchEtag(const HttpRequest &) const STUB_RETVAL(false)
70 bool StoreEntry::hasIfNoneMatchEtag(const HttpRequest &) const STUB_RETVAL(false)
71 Store::Disk &StoreEntry::disk() const STUB_RETREF(Store::Disk)
72 size_t StoreEntry::inUseCount() STUB_RETVAL(0)
73 void *StoreEntry::operator new(size_t)
74 {
75  STUB
76  return new StoreEntry();
77 }
78 void StoreEntry::operator delete(void *) STUB
79 //#if USE_SQUID_ESI
80 //ESIElement::Pointer StoreEntry::cachedESITree STUB_RETVAL(nullptr)
81 //#endif
83 void StoreEntry::flush() STUB
84 int StoreEntry::unlock(const char *) STUB_RETVAL(0)
85 void StoreEntry::lock(const char *) STUB
86 void StoreEntry::touch() STUB
87 void StoreEntry::release(const bool) STUB
88 void StoreEntry::append(char const *, int) STUB
89 void StoreEntry::vappendf(const char *, va_list) STUB
90 void StoreEntry::setCollapsingRequirement(const bool) STUB
91 
92 void Store::Maintain(void *) STUB
93 
94 std::ostream &operator <<(std::ostream &os, const StoreEntry &)
95 {
96  STUB
97  return os;
98 }
99 
102 StoreEntry *storeGetPublic(const char *, const HttpRequestMethod&) STUB_RETVAL(nullptr)
105 StoreEntry *storeCreateEntry(const char *, const char *, const RequestFlags &, const HttpRequestMethod&) STUB_RETVAL(nullptr)
106 StoreEntry *storeCreatePureEntry(const char *, const char *, const HttpRequestMethod&) STUB_RETVAL(nullptr)
107 void storeConfigure(void) STUB
108 int expiresMoreThan(time_t, time_t) STUB_RETVAL(0)
109 void storeAppendPrintf(StoreEntry *, const char *,...) STUB
110 void storeAppendVPrintf(StoreEntry *, const char *, va_list) STUB
114 void storeFsInit(void) STUB
115 void storeFsDone(void) STUB
116 void storeReplAdd(const char *, REMOVALPOLICYCREATE *) STUB
117 void destroyStoreEntry(void *) STUB
118 void storeGetMemSpace(int) STUB
119 
#define false
Definition: GnuRegex.c:240
RemovalPolicy * REMOVALPOLICYCREATE(wordlist *args)
Definition: RemovalPolicy.h:80
#define STUB
macro to stub a void function.
Definition: STUB.h:33
#define STUB_RETREF(x)
Definition: STUB.h:51
void storeHeapPositionUpdate(StoreEntry *, SwapDir *)
void storeEntryReplaceObject(StoreEntry *, HttpReply *)
StoreIoStats store_io_stats
Definition: store_io.cc:16
void storeFsDone(void)
FREE destroyStoreEntry
Definition: Range.h:19
virtual void buffer()
Definition: store.cc:1578
bool checkDeferRead(int fd) const
Definition: store.cc:228
Store statistics related to low-level I/O.
Definition: StoreStats.h:58
manages a single cache_dir
Definition: Disk.h:22
enum _mem_status_t mem_status_t
store_client_t
Definition: enums.h:71
@ STORE_NON_CLIENT
Definition: enums.h:72
void Maintain(void *unused)
Definition: store.cc:1108
unsigned char cache_key
Store key.
Definition: forward.h:29
signed_int32_t sfileno
Definition: forward.h:22
int expiresMoreThan(time_t expires, time_t when)
Definition: store.cc:1321
void storeGetMemSpace(int size)
Definition: store.cc:1096
void storeAppendPrintf(StoreEntry *e, const char *fmt,...)
Definition: store.cc:830
void storeConfigure(void)
Definition: store.cc:1246
int storeTooManyDiskFilesOpen(void)
Definition: store.cc:864
StoreEntry * storeGetPublicByRequestMethod(HttpRequest *req, const HttpRequestMethod &method, const KeyScope keyScope)
Definition: store.cc:485
StoreEntry * storeCreatePureEntry(const char *url, const char *log_url, const HttpRequestMethod &method)
Definition: store.cc:716
StoreEntry * storeGetPublicByRequest(HttpRequest *req, const KeyScope keyScope)
Definition: store.cc:491
StoreEntry * storeCreateEntry(const char *url, const char *logUrl, const RequestFlags &flags, const HttpRequestMethod &method)
Definition: store.cc:734
void storeReplAdd(const char *type, REMOVALPOLICYCREATE *create)
Definition: store.cc:1622
void storeFsInit(void)
Definition: store.cc:1613
KeyScope
Definition: store_key_md5.h:18
const char * swapStatusStr[]
Definition: stub_store.cc:18
RemovalPolicy * createRemovalPolicy(RemovalPolicySettings *) STUB_RETVAL(nullptr) StoreIoStats store_io_stats
Definition: store.cc:1648
const char * pingStatusStr[]
Definition: stub_store.cc:16
const char * memStatusStr[]
Definition: stub_store.cc:17
size_t HttpReply *STUB StoreEntry const KeyScope STUB_RETVAL(nullptr) StoreEntry *storeGetPublicByRequestMethod(HttpRequest *
size_t HttpReply *STUB StoreEntry * storeGetPublic(const char *, const HttpRequestMethod &) STUB_RETVAL(nullptr) StoreEntry *storeGetPublicByRequest(HttpRequest *
Definition: store.cc:479
size_t HttpReply *STUB StoreEntry const KeyScope const HttpRequestMethod const KeyScope const char const RequestFlags const HttpRequestMethod const char const HttpRequestMethod time_t const char STUB void SwapDir *STUB void storeSwapFileNumberSet(StoreEntry *, sfileno) STUB void storeFsInit(void) STUB void storeFsDone(void) STUB void storeReplAdd(const char *
size_t HttpReply *STUB StoreEntry const KeyScope const HttpRequestMethod const KeyScope const char const RequestFlags const HttpRequestMethod const char const HttpRequestMethod time_t const char STUB void storeAppendVPrintf(StoreEntry *, const char *, va_list) STUB int storeTooManyDiskFilesOpen(void) STUB_RETVAL(0) void storeHeapPositionUpdate(StoreEntry *
Definition: store.cc:840
const char * storeStatusStr[]
Definition: stub_store.cc:15
size_t storeEntryInUse() STUB_RETVAL(0) void storeEntryReplaceObject(StoreEntry *

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors