#include "services/network/public/cpp/data_pipe_to_source_stream.h"
#include <string_view>
#include "base/containers/span.h"
#include "base/strings/cstring_view.h"
#include "base/test/task_environment.h"
#include "net/base/io_buffer.h"
#include "net/base/test_completion_callback.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
namespace {
const int kBigBufferSize = …;
const int kSmallBufferSize = …;
const int kBigPipeCapacity = …;
const int kSmallPipeCapacity = …;
enum class WriteMode { … };
struct DataPipeToSourceStreamTestParam { … };
}
class DataPipeToSourceStreamTest
: public ::testing::TestWithParam<DataPipeToSourceStreamTestParam> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(DataPipeToSourceStreamTest, EmptyStream) { … }
TEST_P(DataPipeToSourceStreamTest, Simple) { … }
TEST_P(DataPipeToSourceStreamTest, DestructorClosesConsumerEnd) { … }
}