CapturingStoreEntry.h
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 #ifndef SQUID_TESTS_CAPTURINGSTORE_ENTRY_H
10 #define SQUID_TESTS_CAPTURINGSTORE_ENTRY_H
11 
12 #include "Store.h"
13 
14 /* class that captures various call data for test analysis */
15 
17 {
19 
20 public:
22 
26 
27  virtual void buffer() {
28  _buffer_calls += 1;
29  }
30 
31  virtual void flush() {
32  _flush_calls += 1;
33  }
34 
35  virtual void append(char const * buf, int len) {
36  if (!buf || len < 0) // old 'String' can't handle these cases
37  return;
38  _appended_text.append(buf, len);
39  }
40 };
41 
42 #endif
43 
virtual void append(char const *buf, int len)
Appends a c-string to existing packed data.
void append(char const *buf, int len)
Definition: String.cc:161
int unsigned int const char *desc STUB void int len
Definition: stub_fd.cc:20
void const char * buf
Definition: stub_helper.cc:16
MEMPROXY_CLASS(CapturingStoreEntry)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors