stub_MemObject.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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
22int64_t
24{
25 // XXX: required by testStore
26 return data_hdr.endOffset();
27}
28
30void MemObject::trimUnSwappable() STUB
31int64_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
37const char *MemObject::storeId() const STUB_RETVAL(nullptr)
38const char *MemObject::logUri() const STUB_RETVAL(nullptr)
39void MemObject::setUris(char const *, char const *, const HttpRequestMethod &) STUB
40void MemObject::reset() STUB
41void MemObject::delayRead(const AsyncCallPointer &) STUB
42bool MemObject::readAheadPolicyCanRead() const STUB_RETVAL(false)
43void MemObject::setNoDelay(bool const) STUB
45int MemObject::mostBytesWanted(int, bool) const STUB_RETVAL(-1)
46#if USE_DELAY_POOLS
48#endif
51void MemObject::kickReads() STUB
52int64_t MemObject::objectBytesOnDisk() const STUB_RETVAL(0)
53bool MemObject::isContiguous() const STUB_RETVAL(false)
54int64_t MemObject::expectedReplySize() const STUB_RETVAL(0)
55void MemObject::markEndOfReplyHeaders() STUB
56size_t MemObject::inUseCount() STUB_RETVAL(0)
57int64_t MemObject::availableForSwapOut() const STUB_RETVAL(0)
58
#define false
Definition: GnuRegex.c:240
#define STUB
macro to stub a void function.
Definition: STUB.h:33
#define STUB_RETVAL(x)
Definition: STUB.h:41
int64_t lowestMemReaderOffset() const
Definition: MemObject.cc:277
DelayId mostBytesAllowed() const
Definition: MemObject.cc:460
IRCB * ping_reply_callback
Definition: MemObject.h:191
void trimSwappable()
Definition: MemObject.cc:365
mem_hdr data_hdr
Definition: MemObject.h:138
struct timeval start_ping
Definition: MemObject.h:190
void write(const StoreIOBuffer &buf)
Definition: MemObject.cc:136
int64_t endOffset() const
Definition: MemObject.cc:214
const char * storeId() const
Definition: MemObject.cc:53
int64_t endOffset() const
Definition: stmem.cc:45
RemovalPolicy * mem_policy

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors