#include "src/protozero/test/fake_scattered_buffer.h"
#include <iomanip>
#include <sstream>
#include <utility>
#include "test/gtest_and_gmock.h"
namespace protozero {
namespace {
std::string ToHex(const void* data, size_t length) { … }
}
FakeScatteredBuffer::FakeScatteredBuffer(size_t chunk_size)
: … { … }
FakeScatteredBuffer::~FakeScatteredBuffer() { … }
ContiguousMemoryRange FakeScatteredBuffer::GetNewBuffer() { … }
std::string FakeScatteredBuffer::GetChunkAsString(size_t chunk_index) { … }
void FakeScatteredBuffer::GetBytes(size_t start, size_t length, uint8_t* buf) { … }
std::string FakeScatteredBuffer::GetBytesAsString(size_t start, size_t length) { … }
}