chromium/components/mirroring/service/captured_audio_input_unittest.cc

// Copyright 2018 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/mirroring/service/captured_audio_input.h"

#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "components/mirroring/mojom/session_observer.mojom.h"
#include "media/base/audio_capturer_source.h"
#include "media/base/audio_parameters.h"
#include "media/mojo/mojom/audio_data_pipe.mojom.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "mojo/public/cpp/system/buffer.h"
#include "mojo/public/cpp/system/platform_handle.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/utility/utility.h"

InvokeWithoutArgs;

namespace mirroring {

AudioSourceErrorCode;

namespace {

class MockStream final : public media::mojom::AudioInputStream {};

class MockDelegate final : public media::AudioInputIPCDelegate {};

}  // namespace

class CapturedAudioInputTest : public ::testing::Test {};

TEST_F(CapturedAudioInputTest, CreateStream) {}

TEST_F(CapturedAudioInputTest, PropagatesStreamError) {}

TEST_F(CapturedAudioInputTest, PropagatesStreamPermissionsError) {}

TEST_F(CapturedAudioInputTest, PropagatesMutedStateChange) {}

TEST_F(CapturedAudioInputTest, SetVolume) {}

TEST_F(CapturedAudioInputTest, Record) {}

}  // namespace mirroring