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