| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_AUDIO_FAKE_AUDIO_LOG_FACTORY_H_ | 5 #ifndef MEDIA_AUDIO_FAKE_AUDIO_LOG_FACTORY_H_ |
| 6 #define MEDIA_AUDIO_FAKE_AUDIO_LOG_FACTORY_H_ | 6 #define MEDIA_AUDIO_FAKE_AUDIO_LOG_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 9 #include "media/audio/audio_logging.h" | 10 #include "media/audio/audio_logging.h" |
| 10 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
| 11 | 12 |
| 12 namespace media { | 13 namespace media { |
| 13 | 14 |
| 14 // Creates stub AudioLog instances, for testing, which do nothing. | 15 // Creates stub AudioLog instances, for testing, which do nothing. |
| 15 class MEDIA_EXPORT FakeAudioLogFactory | 16 class MEDIA_EXPORT FakeAudioLogFactory |
| 16 : NON_EXPORTED_BASE(public AudioLogFactory) { | 17 : NON_EXPORTED_BASE(public AudioLogFactory) { |
| 17 public: | 18 public: |
| 18 FakeAudioLogFactory(); | 19 FakeAudioLogFactory(); |
| 19 ~FakeAudioLogFactory() override; | 20 ~FakeAudioLogFactory() override; |
| 20 scoped_ptr<AudioLog> CreateAudioLog(AudioComponent component) override; | 21 scoped_ptr<AudioLog> CreateAudioLog(AudioComponent component) override; |
| 21 | 22 |
| 22 private: | 23 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(FakeAudioLogFactory); | 24 DISALLOW_COPY_AND_ASSIGN(FakeAudioLogFactory); |
| 24 }; | 25 }; |
| 25 | 26 |
| 26 } // namespace media | 27 } // namespace media |
| 27 | 28 |
| 28 #endif // MEDIA_AUDIO_FAKE_AUDIO_LOG_FACTORY_H_ | 29 #endif // MEDIA_AUDIO_FAKE_AUDIO_LOG_FACTORY_H_ |
| OLD | NEW |