#include "content/browser/renderer_host/media/audio_input_device_manager.h"
#include <stddef.h>
#include <memory>
#include <string>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "content/public/test/browser_task_environment.h"
#include "media/audio/audio_system_impl.h"
#include "media/audio/audio_thread_impl.h"
#include "media/audio/mock_audio_manager.h"
#include "media/base/media_switches.h"
#include "media/base/test_helpers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/mediastream/media_stream_request.h"
InSequence;
namespace content {
class MockAudioInputDeviceManagerListener
: public MediaStreamProviderListener { … };
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#define MAYBE_AudioInputDeviceManagerTest …
#else
#define MAYBE_AudioInputDeviceManagerTest …
#endif
class MAYBE_AudioInputDeviceManagerTest : public testing::Test { … };
TEST_F(MAYBE_AudioInputDeviceManagerTest, OpenAndCloseDevice) { … }
TEST_F(MAYBE_AudioInputDeviceManagerTest, OpenMultipleDevices) { … }
TEST_F(MAYBE_AudioInputDeviceManagerTest, OpenNotExistingDevice) { … }
TEST_F(MAYBE_AudioInputDeviceManagerTest, OpenDeviceTwice) { … }
TEST_F(MAYBE_AudioInputDeviceManagerTest, AccessAndCloseSession) { … }
TEST_F(MAYBE_AudioInputDeviceManagerTest, AccessInvalidSession) { … }
class AudioInputDeviceManagerNoDevicesTest
: public MAYBE_AudioInputDeviceManagerTest { … };
TEST_F(AudioInputDeviceManagerNoDevicesTest,
ParametersValidWithoutAudioDevices) { … }
}