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

Unified Diff: remoting/protocol/audio_pump_unittest.cc

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/BUILD.gn ('k') | remoting/protocol/audio_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/audio_pump_unittest.cc
diff --git a/remoting/protocol/audio_pump_unittest.cc b/remoting/protocol/audio_pump_unittest.cc
index a118bec8f01499f66ca45516683b42953ea1f878..67ce2ac9ed1e1677cb58afd44473e095c9cec552 100644
--- a/remoting/protocol/audio_pump_unittest.cc
+++ b/remoting/protocol/audio_pump_unittest.cc
@@ -17,6 +17,7 @@
#include "remoting/proto/audio.pb.h"
#include "remoting/protocol/audio_source.h"
#include "remoting/protocol/audio_stub.h"
+#include "remoting/protocol/fake_audio_source.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
@@ -33,24 +34,6 @@ std::unique_ptr<AudioPacket> MakeAudioPacket() {
} // namespace
-class FakeAudioSource : public AudioSource {
- public:
- FakeAudioSource() {}
- ~FakeAudioSource() override {}
-
- bool Start(const PacketCapturedCallback& callback) override {
- callback_ = callback;
- return true;
- }
-
- const PacketCapturedCallback& callback() { return callback_; }
-
- private:
- PacketCapturedCallback callback_;
-
- DISALLOW_COPY_AND_ASSIGN(FakeAudioSource);
-};
-
class FakeAudioEncoder : public AudioEncoder {
public:
FakeAudioEncoder() {}
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/audio_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698