chromium/services/audio/mixing_graph_impl_unittest.cc

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

#include "services/audio/mixing_graph_impl.h"
#include "media/base/channel_layout.h"
#include "media/base/loopback_audio_converter.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace audio {
// Wrapper for MixingGraphImpl that exposes converters_ and main_converter_ for
// testing.
class MixingGraphImplUnderTest : public MixingGraphImpl {};

class MockInput : public MixingGraph::Input {};

class MockConverterFactory {};

TEST(MixingGraphImpl, AddInputToMainConverter) {}

TEST(MixingGraphImpl, AddMultipleInputsToMainConverter) {}

TEST(MixingGraphImpl, AddInputWithChannelMixer) {}

TEST(MixingGraphImpl, AddInputWithResampler) {}

TEST(MixingGraphImpl, OutputDiscreteChannelLayout) {}

TEST(MixingGraphImpl, AddInputWithDiscreteChannelLayout) {}

TEST(MixingGraphImpl, BuildComplexGraph) {}

// Builds the same graph as above, but verifies the converter parameters.
TEST(MixingGraphImpl, VerifyConverters) {}

// Verifies operator< of AudioConverterKey.
TEST(MixingGraphImpl, AudioConverterKeySorting) {}

}  // namespace audio