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

// Copyright 2019 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/cpp/system/string_data_source.h"

#include <algorithm>
#include <list>
#include <memory>
#include <string>
#include <string_view>

#include "base/containers/span.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/public/cpp/system/data_pipe_producer.h"
#include "mojo/public/cpp/system/simple_watcher.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace mojo {
namespace {

// Test helper. Reads a consumer handle, accumulating data into a string. Reads
// until encountering an error (e.g. peer closure), at which point it invokes an
// async callback.
class DataPipeReader {};

class StringDataSourceTest : public testing::Test {};

TEST_F(StringDataSourceTest, EqualCapacity) {}

TEST_F(StringDataSourceTest, UnderCapacity) {}

TEST_F(StringDataSourceTest, OverCapacity) {}

TEST_F(StringDataSourceTest, TinyPipe) {}

TEST_F(StringDataSourceTest, MultipleWrites) {}

}  // namespace
}  // namespace mojo