fake_audio_log_factory.h 961 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef MEDIA_AUDIO_FAKE_AUDIO_LOG_FACTORY_H_
  5. #define MEDIA_AUDIO_FAKE_AUDIO_LOG_FACTORY_H_
  6. #include <memory>
  7. #include "base/compiler_specific.h"
  8. #include "media/audio/audio_logging.h"
  9. #include "media/base/media_export.h"
  10. namespace media {
  11. // Creates stub AudioLog instances, for testing, which do nothing.
  12. class MEDIA_EXPORT FakeAudioLogFactory : public AudioLogFactory {
  13. public:
  14. FakeAudioLogFactory();
  15. FakeAudioLogFactory(const FakeAudioLogFactory&) = delete;
  16. FakeAudioLogFactory& operator=(const FakeAudioLogFactory&) = delete;
  17. ~FakeAudioLogFactory() override;
  18. std::unique_ptr<AudioLog> CreateAudioLog(AudioComponent component,
  19. int component_id) override;
  20. };
  21. } // namespace media
  22. #endif // MEDIA_AUDIO_FAKE_AUDIO_LOG_FACTORY_H_