#include "media/audio/audio_input_device.h"
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "base/process/process_handle.h"
#include "base/run_loop.h"
#include "base/sync_socket.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/task_environment.h"
#include "media/base/audio_glitch_info.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
CancelableSyncSocket;
SyncSocket;
_;
DoAll;
Invoke;
InvokeWithoutArgs;
namespace media {
namespace {
const size_t kMemorySegmentCount = …;
class MockAudioInputIPC : public AudioInputIPC { … };
class MockCaptureCallback : public AudioCapturerSource::CaptureCallback { … };
class AssertingCaptureCallback : public AudioCapturerSource::CaptureCallback { … };
}
class AudioInputDeviceTest
: public ::testing::TestWithParam<AudioInputDevice::DeadStreamDetection> { … };
TEST_P(AudioInputDeviceTest, Noop) { … }
ACTION_P(ReportStateChange, device) { … }
TEST_P(AudioInputDeviceTest, FailToCreateStream) { … }
TEST_P(AudioInputDeviceTest, CreateStream) { … }
TEST_P(AudioInputDeviceTest, CaptureCallback) { … }
TEST_P(AudioInputDeviceTest, CaptureCallbackSocketError) { … }
INSTANTIATE_TEST_SUITE_P(…);
}