CapturingStoreEntry.h
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#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
20public:
22
26
27 void buffer() override {
28 _buffer_calls += 1;
29 }
30
31 void flush() override {
32 _flush_calls += 1;
33 }
34
35 void append(char const * buf, int len) override {
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
void buffer() override
void append(char const *buf, int len) override
Appends a c-string to existing packed data.
MEMPROXY_CLASS(CapturingStoreEntry)
void append(char const *buf, int len)
Definition: String.cc:130

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors