#include "components/cast_streaming/renderer/common/decoder_buffer_provider_impl.h"
#include <memory>
#include "base/functional/callback.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/decoder_buffer.h"
#include "media/mojo/common/media_type_converters.h"
#include "media/mojo/common/mojo_data_pipe_read_write.h"
#include "media/mojo/mojom/media_types.mojom-forward.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cast_streaming {
namespace {
constexpr uint32_t kDefaultDataPipeCapacityBytes = …;
class MockClient
: public DecoderBufferProviderImpl<media::AudioDecoderConfig>::Client { … };
}
class DecoderBufferProviderImplTest : public testing::Test { … };
TEST_F(DecoderBufferProviderImplTest, CreationTest) { … }
TEST_F(DecoderBufferProviderImplTest, InvalidationCallbackTest) { … }
TEST_F(DecoderBufferProviderImplTest, ReadTest) { … }
}