#include "media/audio/aecdump_recording_manager.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/test/task_environment.h"
#include "base/test/test_file_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
InSequence;
NiceMock;
Sequence;
namespace media {
namespace {
class MockAecdumpRecordingSource : public AecdumpRecordingSource { … };
class AecdumpRecordingManagerTest : public ::testing::Test { … };
TEST_F(AecdumpRecordingManagerTest, EnableDisableDoesNotCrash) { … }
TEST_F(AecdumpRecordingManagerTest,
EnableDisableWithOneSourceStartsStopsSource) { … }
TEST_F(AecdumpRecordingManagerTest,
EnableDisableWithTwoSourcesStartsStopsSources) { … }
TEST_F(AecdumpRecordingManagerTest,
RegisterDeregisterSourceBeforeEnableDisableDoesNotStartStopSource) { … }
TEST_F(AecdumpRecordingManagerTest,
RegisterDeregisterSourceAfterEnableDisableDoesNotStartStopSource) { … }
TEST_F(AecdumpRecordingManagerTest,
RegisterDeregisterSourceDuringRecordingStartsStopsSource) { … }
TEST_F(AecdumpRecordingManagerTest,
DeregisterSourceBeforeFileCreationCallbackDoesNotStartSource) { … }
TEST_F(AecdumpRecordingManagerTest,
StopRecordingBeforeFileCreationCallbackDoesNotStartSource) { … }
TEST_F(AecdumpRecordingManagerTest,
RestartRecordingBeforeFileCreationCallbackDoesNotStartSourceTwice) { … }
TEST_F(AecdumpRecordingManagerTest,
DestroyManagerBeforeFileCreationCallbackDoesNotCrash) { … }
}
}