]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_MemObject.cc
Made "make check" happier by syncing test case with Store API changes
[thirdparty/squid.git] / src / tests / stub_MemObject.cc
1 #include "squid.h"
2 #include "comm/Connection.h"
3 #include "HttpReply.h"
4 #include "MemObject.h"
5 #if USE_DELAY_POOLS
6 #include "DelayPools.h"
7 #endif
8
9 #define STUB_API "MemObject.cc"
10 #include "tests/STUB.h"
11
12 RemovalPolicy * mem_policy = NULL;
13
14 int64_t
15 MemObject::endOffset() const
16 {
17 // XXX: required by testStore
18 return data_hdr.endOffset();
19 }
20
21 void MemObject::trimSwappable() STUB
22 void MemObject::trimUnSwappable() STUB
23 int64_t MemObject::policyLowestOffsetToKeep(bool swap) const STUB_RETVAL(-1)
24 MemObject::MemObject() :
25 inmem_lo(0),
26 nclients(0),
27 request(NULL),
28 ping_reply_callback(NULL),
29 ircb_data(NULL),
30 id(0),
31 object_sz(-1),
32 swap_hdr_sz(0),
33 vary_headers(NULL),
34 _reply(NULL)
35 {
36 memset(&clients, 0, sizeof(clients));
37 memset(&start_ping, 0, sizeof(start_ping));
38 memset(&abort, 0, sizeof(abort));
39 } // NOP instead of elided due to Store
40
41 HttpReply const * MemObject::getReply() const
42 {
43 // XXX: required by testStore
44 return NULL;
45 }
46 void MemObject::setUris(char const *aStoreId, char const *aLogUri, const HttpRequestMethod &aMethod) STUB
47 void MemObject::reset() STUB
48 void MemObject::delayRead(DeferredRead const &aRead) STUB
49 bool MemObject::readAheadPolicyCanRead() const STUB_RETVAL(false)
50 void MemObject::setNoDelay(bool const newValue) STUB
51 MemObject::~MemObject() STUB
52 int MemObject::mostBytesWanted(int max, bool ignoreDelayPools) const STUB_RETVAL(-1)
53 #if USE_DELAY_POOLS
54 DelayId MemObject::mostBytesAllowed() const STUB_RETVAL(DelayId())
55 #endif
56 void MemObject::unlinkRequest() STUB
57 void MemObject::write(const StoreIOBuffer &writeBuffer) STUB
58 void MemObject::replaceHttpReply(HttpReply *newrep) STUB
59 int64_t MemObject::lowestMemReaderOffset() const STUB_RETVAL(0)
60 void MemObject::kickReads() STUB
61 int64_t MemObject::objectBytesOnDisk() const STUB_RETVAL(0)
62 bool MemObject::isContiguous() const STUB_RETVAL(false)
63 int64_t MemObject::expectedReplySize() const STUB_RETVAL(0)
64 void MemObject::markEndOfReplyHeaders() STUB
65 size_t MemObject::inUseCount() STUB_RETVAL(0)
66 int64_t MemObject::availableForSwapOut() const STUB_RETVAL(0)