#include "third_party/blink/renderer/modules/media/audio/audio_renderer_mixer_manager.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/scoped_refptr.h"
#include "base/notreached.h"
#include "base/run_loop.h"
#include "build/build_config.h"
#include "media/audio/audio_device_description.h"
#include "media/base/audio_parameters.h"
#include "media/base/fake_audio_render_callback.h"
#include "media/base/mock_audio_renderer_sink.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/modules/media/audio/audio_renderer_mixer.h"
#include "third_party/blink/renderer/modules/media/audio/audio_renderer_mixer_input.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
namespace {
constexpr int kSampleRate = …;
constexpr int kBufferSize = …;
constexpr int kHardwareSampleRate = …;
constexpr int kHardwareBufferSize = …;
constexpr media::ChannelLayout kChannelLayout = …;
constexpr media::ChannelLayout kAnotherChannelLayout = …;
const char* const kDefaultDeviceId = …;
constexpr char kAnotherDeviceId[] = …;
constexpr char kMatchedDeviceId[] = …;
constexpr char kNonexistentDeviceId[] = …;
const LocalFrameToken kLocalFrameToken;
const FrameToken kFrameToken;
const FrameToken kAnotherFrameToken;
}
AudioLatency;
AudioParameters;
class AudioRendererMixerManagerTest : public testing::Test { … };
TEST_F(AudioRendererMixerManagerTest, GetReturnMixer) { … }
TEST_F(AudioRendererMixerManagerTest, ReturnMixerWithError) { … }
TEST_F(AudioRendererMixerManagerTest, MixerReuse) { … }
TEST_F(AudioRendererMixerManagerTest, CreateInput) { … }
TEST_F(AudioRendererMixerManagerTest, DISABLED_CreateInputWithSessionId) { … }
TEST_F(AudioRendererMixerManagerTest, MixerDevices) { … }
TEST_F(AudioRendererMixerManagerTest, OneMixerDifferentDefaultDeviceIDs) { … }
TEST_F(AudioRendererMixerManagerTest, NonexistentDevice) { … }
TEST_F(AudioRendererMixerManagerTest, LatencyMixing) { … }
TEST_F(AudioRendererMixerManagerTest, EffectsMixing) { … }
TEST_F(AudioRendererMixerManagerTest, MixerParamsLatencyPlayback) { … }
TEST_F(AudioRendererMixerManagerTest,
MixerParamsLatencyPlaybackLargeDeviceBufferSize) { … }
TEST_F(AudioRendererMixerManagerTest, MixerParamsLatencyPlaybackFakeAudio) { … }
TEST_F(AudioRendererMixerManagerTest, MixerParamsLatencyRtc) { … }
TEST_F(AudioRendererMixerManagerTest, MixerParamsLatencyRtcFakeAudio) { … }
TEST_F(AudioRendererMixerManagerTest, MixerParamsLatencyInteractive) { … }
TEST_F(AudioRendererMixerManagerTest, MixerParamsBitstreamFormat) { … }
}