// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ #define MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ #include <memory> #include <string> #include "base/functional/callback_forward.h" #include "media/audio/audio_debug_recording_manager.h" #include "media/audio/audio_manager.h" #include "testing/gmock/include/gmock/gmock.h" namespace media { // This class is a simple mock around AudioManager, used exclusively for tests, // which avoids to use the actual (system and platform dependent) AudioManager. // Some bots do not have input devices, thus using the actual AudioManager // would causing failures on classes which expect that. class MockAudioManager : public AudioManager { … }; } // namespace media. #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_