]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_MemObject.cc
2 #include "comm/Connection.h"
6 #include "DelayPools.h"
9 #define STUB_API "MemObject.cc"
10 #include "tests/STUB.h"
12 RemovalPolicy
* mem_policy
= NULL
;
15 MemObject::endOffset() const
17 // XXX: required by testStore
18 return data_hdr
.endOffset();
21 void MemObject::trimSwappable() STUB
22 void MemObject::trimUnSwappable() STUB
23 int64_t MemObject::policyLowestOffsetToKeep(bool swap
) const STUB_RETVAL(-1)
24 MemObject::MemObject() :
28 ping_reply_callback(NULL
),
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
41 HttpReply
const * MemObject::getReply() const
43 // XXX: required by testStore
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)
54 DelayId
MemObject::mostBytesAllowed() const STUB_RETVAL(DelayId())
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)