stub_MemObject.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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) 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(nullptr)
38 const char *MemObject::logUri() const STUB_RETVAL(nullptr)
39 void MemObject::setUris(char const *, char const *, const HttpRequestMethod &) STUB
40 void MemObject::reset() STUB
41 void MemObject::delayRead(const AsyncCallPointer &) STUB
42 bool MemObject::readAheadPolicyCanRead() const STUB_RETVAL(false)
43 void MemObject::setNoDelay(bool const) STUB
45 int MemObject::mostBytesWanted(int, bool) const STUB_RETVAL(-1)
46 #if USE_DELAY_POOLS
48 #endif
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 
const char * storeId() const
Definition: MemObject.cc:53
#define STUB_RETVAL(x)
Definition: STUB.h:42
mem_hdr data_hdr
Definition: MemObject.h:148
struct timeval start_ping
Definition: MemObject.h:207
DelayId mostBytesAllowed() const
Definition: MemObject.cc:466
int64_t endOffset() const
Definition: MemObject.cc:214
RemovalPolicy * mem_policy
int64_t endOffset() const
Definition: stmem.cc:45
void write(const StoreIOBuffer &buf)
Definition: MemObject.cc:136
#define STUB
macro to stub a void function.
Definition: STUB.h:34
void trimSwappable()
Definition: MemObject.cc:371
int64_t lowestMemReaderOffset() const
Definition: MemObject.cc:277
IRCB * ping_reply_callback
Definition: MemObject.h:208

 

Introduction

Documentation

Support

Miscellaneous