#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/base/compound_buffer.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <string>
#include "base/containers/heap_array.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "net/base/io_buffer.h"
#include "testing/gtest/include/gtest/gtest.h"
IOBuffer;
IOBufferWithSize;
namespace remoting {
namespace {
const int kDataSize = …;
const int kChunkSizes0[] = …;
const int kChunkSizes1[] = …;
const int kCopySizes0[] = …;
const int kCopySizes1[] = …;
const int kCropSizes[] = …;
}
class CompoundBufferTest : public testing::Test { … };
TEST_F(CompoundBufferTest, Append) { … }
TEST_F(CompoundBufferTest, AppendCopyOf) { … }
TEST_F(CompoundBufferTest, Prepend) { … }
TEST_F(CompoundBufferTest, PrependCopyOf) { … }
TEST_F(CompoundBufferTest, CropFront) { … }
TEST_F(CompoundBufferTest, CropBack) { … }
TEST_F(CompoundBufferTest, CopyFrom) { … }
TEST_F(CompoundBufferTest, InputStream) { … }
}