OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #ifndef REMOTING_PROTOCOL_FAKE_AUDIO_SOURCE_H_ |
| 6 #define REMOTING_PROTOCOL_FAKE_AUDIO_SOURCE_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "remoting/protocol/audio_source.h" |
| 10 |
| 11 namespace remoting { |
| 12 namespace protocol { |
| 13 |
| 14 class FakeAudioSource : public AudioSource { |
| 15 public: |
| 16 FakeAudioSource(); |
| 17 ~FakeAudioSource() override; |
| 18 |
| 19 // AudioSource interface. |
| 20 bool Start(const PacketCapturedCallback& callback) override; |
| 21 |
| 22 const PacketCapturedCallback& callback() { return callback_; } |
| 23 |
| 24 private: |
| 25 PacketCapturedCallback callback_; |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(FakeAudioSource); |
| 28 }; |
| 29 |
| 30 } // namespace protocol |
| 31 } // namespace remoting |
| 32 |
| 33 #endif // REMOTING_PROTOCOL_FAKE_AUDIO_SOURCE_H_ |
OLD | NEW |