#include "services/audio/debug_recording.h"
#include <memory>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "media/audio/aecdump_recording_manager.h"
#include "media/audio/audio_debug_recording_test.h"
#include "media/audio/mock_audio_debug_recording_manager.h"
#include "media/audio/mock_audio_manager.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/audio/public/cpp/debug_recording_session.h"
#include "services/audio/public/mojom/debug_recording.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
_;
Exactly;
Sequence;
namespace audio {
namespace {
const base::FilePath::CharType kBaseFileName[] = …);
void FileCreated(base::File file) { … }
}
class MockFileProvider : public mojom::DebugRecordingFileProvider { … };
class MockAecdumpRecordingManager : public media::AecdumpRecordingManager { … };
class DebugRecordingTest : public media::AudioDebugRecordingTest { … };
TEST_F(DebugRecordingTest, EnableResetEnablesDisablesDebugRecording) { … }
TEST_F(DebugRecordingTest, ResetWithoutEnableDoesNotDisableDebugRecording) { … }
TEST_F(DebugRecordingTest, CreateFileCallsFileProviderCreateFile) { … }
TEST_F(DebugRecordingTest, SequencialCreate) { … }
TEST_F(DebugRecordingTest, ConcurrentCreate) { … }
}