#include "media/cast/openscreen/decoder_buffer_reader.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "media/mojo/common/media_type_converters.h"
#include "media/mojo/common/mojo_data_pipe_read_write.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media::cast {
namespace {
constexpr uint32_t kDefaultDataPipeCapacityBytes = …;
}
class DecoderBufferReaderTest : public testing::Test { … };
TEST_F(DecoderBufferReaderTest, ProvideBufferCalledThenRead) { … }
TEST_F(DecoderBufferReaderTest, DataPipePopulatedThenRead) { … }
TEST_F(DecoderBufferReaderTest, ReadBufferAsyncCalledFirst) { … }
TEST_F(DecoderBufferReaderTest, AllDataPopulatedFirst) { … }
}