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

Unified Diff: remoting/protocol/fake_video_renderer.cc

Issue 1559933003: Pass VideoRenderer interface to ConnectionToHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_frame_consumer
Patch Set: Created 4 years, 11 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/fake_video_renderer.h ('k') | remoting/protocol/ice_connection_to_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_video_renderer.cc
diff --git a/remoting/protocol/fake_video_renderer.cc b/remoting/protocol/fake_video_renderer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..faecf9b3555bbd88183f67e8a7346bf4dad3b04d
--- /dev/null
+++ b/remoting/protocol/fake_video_renderer.cc
@@ -0,0 +1,40 @@
+// 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.
+
+#include "remoting/protocol/fake_video_renderer.h"
+
+#include <utility>
+
+#include "base/callback.h"
+#include "base/logging.h"
+#include "remoting/proto/video.pb.h"
+
+namespace remoting {
+namespace protocol {
+
+FakeVideoStub::FakeVideoStub() {}
+FakeVideoStub::~FakeVideoStub() {}
+
+void FakeVideoStub::ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
+ const base::Closure& done) {
+ received_packets_.push_back(std::move(video_packet));
+ done.Run();
+}
+
+FakeVideoRenderer::FakeVideoRenderer() {}
+FakeVideoRenderer::~FakeVideoRenderer() {}
+
+void FakeVideoRenderer::OnSessionConfig(const SessionConfig& config) {}
+
+FakeVideoStub* FakeVideoRenderer::GetVideoStub() {
+ return &video_stub_;
+}
+
+FrameConsumer* FakeVideoRenderer::GetFrameConsumer() {
+ NOTIMPLEMENTED();
+ return nullptr;
+}
+
+} // namespace protocol
+} // namespace remoting
« no previous file with comments | « remoting/protocol/fake_video_renderer.h ('k') | remoting/protocol/ice_connection_to_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698