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