Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Unified Diff: remoting/protocol/fake_audio_source.h

Issue 2392963003: Add Audio support in Chromoting host when using WebRTC. (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/connection_unittest.cc ('k') | remoting/protocol/fake_audio_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_audio_source.h
diff --git a/remoting/protocol/fake_audio_source.h b/remoting/protocol/fake_audio_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..4465b29124c00b309a38d88280248ebfc76c44b0
--- /dev/null
+++ b/remoting/protocol/fake_audio_source.h
@@ -0,0 +1,33 @@
+// Copyright 2016 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.
+
+#ifndef REMOTING_PROTOCOL_FAKE_AUDIO_SOURCE_H_
+#define REMOTING_PROTOCOL_FAKE_AUDIO_SOURCE_H_
+
+#include "base/callback.h"
+#include "remoting/protocol/audio_source.h"
+
+namespace remoting {
+namespace protocol {
+
+class FakeAudioSource : public AudioSource {
+ public:
+ FakeAudioSource();
+ ~FakeAudioSource() override;
+
+ // AudioSource interface.
+ bool Start(const PacketCapturedCallback& callback) override;
+
+ const PacketCapturedCallback& callback() { return callback_; }
+
+ private:
+ PacketCapturedCallback callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(FakeAudioSource);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_FAKE_AUDIO_SOURCE_H_
« no previous file with comments | « remoting/protocol/connection_unittest.cc ('k') | remoting/protocol/fake_audio_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698