Index: components/copresence/mediums/audio/audio_player_stub.cc |
diff --git a/components/copresence/mediums/audio/audio_player_stub.cc b/components/copresence/mediums/audio/audio_player_stub.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d3a6c4da0183c9d51fd70453856e27293c206177 |
--- /dev/null |
+++ b/components/copresence/mediums/audio/audio_player_stub.cc |
@@ -0,0 +1,37 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/copresence/mediums/audio/audio_player_stub.h" |
+ |
+#include "media/base/audio_bus.h" |
+ |
+namespace copresence { |
+ |
+AudioPlayerStub::AudioPlayerStub() : is_playing_(false) { |
+} |
+ |
+AudioPlayerStub::~AudioPlayerStub() { |
+} |
+ |
+void AudioPlayerStub::Initialize() { |
+} |
+ |
+void AudioPlayerStub::Play( |
+ const scoped_refptr<media::AudioBusRefCounted>& /* samples */) { |
+ is_playing_ = true; |
+} |
+ |
+void AudioPlayerStub::Stop() { |
+ is_playing_ = false; |
+} |
+ |
+void AudioPlayerStub::Finalize() { |
+ delete this; |
+} |
+ |
+bool AudioPlayerStub::IsPlaying() { |
+ return is_playing_; |
+} |
+ |
+} // namespace copresence |