#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/audio/audio_debug_recording_helper.h"
#include <limits>
#include <memory>
#include <utility>
#include "base/check_op.h"
#include "base/containers/heap_array.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_forward.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/test/test_file_util.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_bus_pool.h"
#include "media/base/audio_sample_types.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Return;
namespace media {
namespace {
const base::FilePath::CharType kFileName[] = …);
}
class MockAudioDebugFileWriter : public AudioDebugFileWriter { … };
class AudioDebugRecordingHelperUnderTest : public AudioDebugRecordingHelper { … };
class AudioDebugRecordingHelperTest : public ::testing::Test { … };
TEST_F(AudioDebugRecordingHelperTest, TestDestructionClosure) { … }
TEST_F(AudioDebugRecordingHelperTest, OnlyDisable) { … }
TEST_F(AudioDebugRecordingHelperTest, EnableDisable) { … }
TEST_F(AudioDebugRecordingHelperTest, OnData) { … }
}