stub_MemObject.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2018 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 
21 
22 int64_t
24 {
25  // XXX: required by testStore
26  return data_hdr.endOffset();
27 }
28 
30 void MemObject::trimUnSwappable() STUB
31 int64_t MemObject::policyLowestOffsetToKeep(bool swap) const STUB_RETVAL(-1)
33  ping_reply_callback = nullptr;
34  memset(&start_ping, 0, sizeof(start_ping));
35 } // NOP instead of elided due to Store
36 
37 const char *MemObject::storeId() const STUB_RETVAL(NULL)
38 const char *MemObject::logUri() const STUB_RETVAL(NULL)
39 void MemObject::setUris(char const *aStoreId, char const *aLogUri, const HttpRequestMethod &aMethod) STUB
40 void MemObject::reset() STUB
41 void MemObject::delayRead(DeferredRead const &aRead) STUB
42 bool MemObject::readAheadPolicyCanRead() const STUB_RETVAL(false)
43 void MemObject::setNoDelay(bool const newValue) STUB
44 MemObject::~MemObject() STUB
45 int MemObject::mostBytesWanted(int max, bool ignoreDelayPools) const STUB_RETVAL(-1)
46 #if USE_DELAY_POOLS
48 #endif
49 void MemObject::write(const StoreIOBuffer &writeBuffer) STUB
51 void MemObject::kickReads() STUB
52 int64_t MemObject::objectBytesOnDisk() const STUB_RETVAL(0)
53 bool MemObject::isContiguous() const STUB_RETVAL(false)
54 int64_t MemObject::expectedReplySize() const STUB_RETVAL(0)
55 void MemObject::markEndOfReplyHeaders() STUB
56 size_t MemObject::inUseCount() STUB_RETVAL(0)
57 int64_t MemObject::availableForSwapOut() const STUB_RETVAL(0)
58 
int64_t endOffset() const
Definition: stmem.cc:46
int64_t endOffset() const
Definition: MemObject.cc:218
RemovalPolicy * mem_policy
Definition: MemObject.cc:45
struct timeval start_ping
Definition: MemObject.h:157
A const & max(A const &lhs, A const &rhs)
int64_t lowestMemReaderOffset() const
Definition: MemObject.cc:270
#define STUB_RETVAL(x)
Definition: STUB.h:41
const char * storeId() const
Definition: MemObject.cc:54
#define STUB
macro to stub a void function.
Definition: STUB.h:33
DelayId mostBytesAllowed() const
Definition: MemObject.cc:449
void write(const StoreIOBuffer &buf)
Definition: MemObject.cc:136
mem_hdr data_hdr
Definition: MemObject.h:103
void trimSwappable()
Definition: MemObject.cc:357
IRCB * ping_reply_callback
Definition: MemObject.h:158
#define NULL
Definition: types.h:166
#define false
Definition: GnuRegex.c:233

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors