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