chromium/services/network/public/cpp/source_stream_to_data_pipe_unittest.cc

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

#include "services/network/public/cpp/source_stream_to_data_pipe.h"

#include <optional>

#include "base/containers/span.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "net/base/net_errors.h"
#include "net/filter/mock_source_stream.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace network {

namespace {

const int kBigPipeCapacity =;
const int kSmallPipeCapacity =;

enum class ReadResultType {};

struct SourceStreamToDataPipeTestParam {};

class DummyPendingSourceStream : public net::SourceStream {};

}  // namespace

class SourceStreamToDataPipeTest
    : public ::testing::TestWithParam<SourceStreamToDataPipeTestParam> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(SourceStreamToDataPipeTest, EmptyStream) {}

TEST_P(SourceStreamToDataPipeTest, Simple) {}

TEST_P(SourceStreamToDataPipeTest, Error) {}

TEST_P(SourceStreamToDataPipeTest, ConsumerClosed) {}

TEST_P(SourceStreamToDataPipeTest, MayHaveMoreBytes) {}

TEST(SourceStreamToDataPipeCallbackTest, CompletionCallbackAfterDestructed) {}

}  // namespace network