]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_MemObject.cc
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
10 #include "comm/Connection.h"
11 #include "HttpReply.h"
12 #include "MemObject.h"
14 #include "DelayPools.h"
17 #define STUB_API "MemObject.cc"
18 #include "tests/STUB.h"
20 RemovalPolicy
* mem_policy
= NULL
;
23 MemObject::endOffset() const
25 // XXX: required by testStore
26 return data_hdr
.endOffset();
29 void MemObject::trimSwappable() STUB
30 void MemObject::trimUnSwappable() STUB
31 int64_t MemObject::policyLowestOffsetToKeep(bool swap
) const STUB_RETVAL(-1)
32 MemObject::MemObject() :
36 ping_reply_callback(NULL
),
44 memset(&clients
, 0, sizeof(clients
));
45 memset(&start_ping
, 0, sizeof(start_ping
));
46 memset(&abort
, 0, sizeof(abort
));
47 } // NOP instead of elided due to Store
49 HttpReply
const * MemObject::getReply() const
51 // XXX: required by testStore
54 const char *MemObject::storeId() const STUB_RETVAL(NULL
)
55 const char *MemObject::logUri() const STUB_RETVAL(NULL
)
56 void MemObject::setUris(char const *aStoreId
, char const *aLogUri
, const HttpRequestMethod
&aMethod
) STUB
57 void MemObject::reset() STUB
58 void MemObject::delayRead(DeferredRead
const &aRead
) STUB
59 bool MemObject::readAheadPolicyCanRead() const STUB_RETVAL(false)
60 void MemObject::setNoDelay(bool const newValue
) STUB
61 MemObject::~MemObject() STUB
62 int MemObject::mostBytesWanted(int max
, bool ignoreDelayPools
) const STUB_RETVAL(-1)
64 DelayId
MemObject::mostBytesAllowed() const STUB_RETVAL(DelayId())
66 void MemObject::unlinkRequest() STUB
67 void MemObject::write(const StoreIOBuffer
&writeBuffer
) STUB
68 void MemObject::replaceHttpReply(HttpReply
*newrep
) STUB
69 int64_t MemObject::lowestMemReaderOffset() const STUB_RETVAL(0)
70 void MemObject::kickReads() STUB
71 int64_t MemObject::objectBytesOnDisk() const STUB_RETVAL(0)
72 bool MemObject::isContiguous() const STUB_RETVAL(false)
73 int64_t MemObject::expectedReplySize() const STUB_RETVAL(0)
74 void MemObject::markEndOfReplyHeaders() STUB
75 size_t MemObject::inUseCount() STUB_RETVAL(0)
76 int64_t MemObject::availableForSwapOut() const STUB_RETVAL(0)