chromium/mojo/public/cpp/system/tests/data_pipe_unittest.cc

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

#include "mojo/public/c/system/data_pipe.h"

#include <limits>
#include <vector>

#include "base/compiler_specific.h"
#include "base/containers/span.h"
#include "base/test/task_environment.h"
#include "mojo/public/c/system/types.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace mojo {
namespace {

TEST(DataPipeCppTest, BeginWriteDataGracefullyHandlesBigSizeHint) {}

TEST(DataPipeCppTest, EndWriteDataErrorWhenSizeTooBig) {}

// Test that `WriteData` continues to work well when `*num_bytes` is greater
// than `std::numeric_limits<uint32.::max()`.
TEST(DataPipeCppTest, WriteDataGracefullyHandlesBigSize) {}

TEST(DataPipeCppTest, ReadDataGracefullyHandlesBigSize) {}

TEST(DataPipeCppTest, EndReadDataErrorWhenSizeTooBig) {}

}  // namespace
}  // namespace mojo