chromium/components/cast_streaming/renderer/common/buffer_requester_unittest.cc

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

#include "components/cast_streaming/renderer/common/buffer_requester.h"

#include <utility>

#include "base/memory/weak_ptr.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "media/base/audio_codecs.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/channel_layout.h"
#include "media/base/decoder_buffer.h"
#include "media/base/media_util.h"
#include "media/base/sample_format.h"
#include "media/mojo/common/media_type_converters.h"
#include "media/mojo/common/mojo_data_pipe_read_write.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cast_streaming {
namespace {

class MockAudioBufferRequestReceiver : public mojom::AudioBufferRequester {};

class MockClient : public AudioBufferRequester::Client {};

}  // namespace

class BufferRequesterTest : public testing::Test {};

TEST_F(BufferRequesterTest, BufferReceivedOverMojoTriggersCallback) {}

TEST_F(BufferRequesterTest, ConfigReceivedOverMojoCallsClientCallback) {}

}  // namespace cast_streaming