]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/CapturingStoreEntry.h
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_TESTS_CAPTURINGSTORE_ENTRY_H
10 #define SQUID_TESTS_CAPTURINGSTORE_ENTRY_H
14 /* class that captures various call data for test analysis */
16 class CapturingStoreEntry
: public StoreEntry
18 MEMPROXY_CLASS(CapturingStoreEntry
);
21 CapturingStoreEntry() : _buffer_calls(0), _flush_calls(0) {}
23 String _appended_text
;
27 virtual void buffer() {
31 virtual void flush() {
35 virtual void append(char const * buf
, int len
) {
36 _appended_text
.append(buf
, len
);