Change blimp README to use Markdown.
[chromium-blink-merge.git] / media / audio / fake_audio_log_factory.cc
blobfd5cf4580dca2081056ec4bfbe224205fd948aa8
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"
7 #include <string>
9 namespace media {
11 class FakeAudioLogImpl : public AudioLog {
12 public:
13 FakeAudioLogImpl() {}
14 ~FakeAudioLogImpl() override {}
15 void OnCreated(int component_id,
16 const media::AudioParameters& params,
17 const std::string& device_id) override {}
18 void OnStarted(int component_id) override {}
19 void OnStopped(int component_id) override {}
20 void OnClosed(int component_id) override {}
21 void OnError(int component_id) override {}
22 void OnSetVolume(int component_id, double volume) override {}
23 void OnSwitchOutputDevice(int component_id,
24 const std::string& device_id) override {}
27 FakeAudioLogFactory::FakeAudioLogFactory() {}
28 FakeAudioLogFactory::~FakeAudioLogFactory() {}
30 scoped_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog(
31 AudioComponent component) {
32 return scoped_ptr<AudioLog>(new FakeAudioLogImpl());
35 } // namespace media