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 #include "media/audio/fake_audio_log_factory.h" | 5 #include "media/audio/fake_audio_log_factory.h" |
6 | 6 |
7 namespace media { | 7 namespace media { |
8 | 8 |
9 class FakeAudioLogImpl : public AudioLog { | 9 class FakeAudioLogImpl : public AudioLog { |
10 public: | 10 public: |
11 FakeAudioLogImpl() {} | 11 FakeAudioLogImpl() {} |
12 virtual ~FakeAudioLogImpl() {} | 12 virtual ~FakeAudioLogImpl() {} |
13 virtual void OnCreated(int component_id, | 13 virtual void OnCreated(int component_id, |
14 const media::AudioParameters& params, | 14 const media::AudioParameters& params, |
15 const std::string& input_device_id, | 15 const std::string& device_id) OVERRIDE {} |
16 const std::string& output_device_id) OVERRIDE {} | |
17 virtual void OnStarted(int component_id) OVERRIDE {} | 16 virtual void OnStarted(int component_id) OVERRIDE {} |
18 virtual void OnStopped(int component_id) OVERRIDE {} | 17 virtual void OnStopped(int component_id) OVERRIDE {} |
19 virtual void OnClosed(int component_id) OVERRIDE {} | 18 virtual void OnClosed(int component_id) OVERRIDE {} |
20 virtual void OnError(int component_id) OVERRIDE {} | 19 virtual void OnError(int component_id) OVERRIDE {} |
21 virtual void OnSetVolume(int component_id, double volume) OVERRIDE {} | 20 virtual void OnSetVolume(int component_id, double volume) OVERRIDE {} |
22 }; | 21 }; |
23 | 22 |
24 FakeAudioLogFactory::FakeAudioLogFactory() {} | 23 FakeAudioLogFactory::FakeAudioLogFactory() {} |
25 FakeAudioLogFactory::~FakeAudioLogFactory() {} | 24 FakeAudioLogFactory::~FakeAudioLogFactory() {} |
26 | 25 |
27 scoped_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog( | 26 scoped_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog( |
28 AudioComponent component) { | 27 AudioComponent component) { |
29 return scoped_ptr<AudioLog>(new FakeAudioLogImpl()); | 28 return scoped_ptr<AudioLog>(new FakeAudioLogImpl()); |
30 } | 29 } |
31 | 30 |
32 } // namespace media | 31 } // namespace media |
OLD | NEW |