chromium/remoting/base/compound_buffer_unittest.cc

// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#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 =;

// Chunk sizes used to append and prepend data to the buffer.
const int kChunkSizes0[] =;
const int kChunkSizes1[] =;

// Chunk sizes used to test CopyFrom().
const int kCopySizes0[] =;
const int kCopySizes1[] =;

const int kCropSizes[] =;

}  // namespace

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) {}

}  // namespace remoting