stub_MemObject.cc
Go to the documentation of this file.
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
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  inmem_lo(0),
34  nclients(0),
35  ping_reply_callback(NULL),
36  ircb_data(NULL),
37  id(0),
38  object_sz(-1),
39  swap_hdr_sz(0)
40 {
41  memset(&clients, 0, sizeof(clients));
42  memset(&start_ping, 0, sizeof(start_ping));
43  memset(&abort, 0, sizeof(abort));
44 } // NOP instead of elided due to Store
45 
46 const char *MemObject::storeId() const STUB_RETVAL(NULL)
47 const char *MemObject::logUri() const STUB_RETVAL(NULL)
48 void MemObject::setUris(char const *aStoreId, char const *aLogUri, const HttpRequestMethod &aMethod) STUB
49 void MemObject::reset() STUB
50 void MemObject::delayRead(DeferredRead const &aRead) STUB
51 bool MemObject::readAheadPolicyCanRead() const STUB_RETVAL(false)
52 void MemObject::setNoDelay(bool const newValue) STUB
54 int MemObject::mostBytesWanted(int max, bool ignoreDelayPools) const STUB_RETVAL(-1)
55 #if USE_DELAY_POOLS
57 #endif
58 void MemObject::write(const StoreIOBuffer &writeBuffer) STUB
60 void MemObject::kickReads() STUB
61 int64_t MemObject::objectBytesOnDisk() const STUB_RETVAL(0)
62 bool MemObject::isContiguous() const STUB_RETVAL(false)
63 int64_t MemObject::expectedReplySize() const STUB_RETVAL(0)
64 void MemObject::markEndOfReplyHeaders() STUB
65 size_t MemObject::inUseCount() STUB_RETVAL(0)
66 int64_t MemObject::availableForSwapOut() const STUB_RETVAL(0)
67 
int64_t endOffset() const
Definition: stmem.cc:46
int64_t endOffset() const
Definition: MemObject.cc:232
struct MemObject::@86 abort
struct timeval start_ping
Definition: MemObject.h:159
int64_t lowestMemReaderOffset() const
Definition: MemObject.cc:284
#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:463
void write(const StoreIOBuffer &buf)
Definition: MemObject.cc:148
dlink_list clients
Definition: MemObject.h:103
mem_hdr data_hdr
Definition: MemObject.h:101
void trimSwappable()
Definition: MemObject.cc:371
#define NULL
Definition: types.h:166
#define false
Definition: GnuRegex.c:233

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors