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 #include "remoting/protocol/fake_video_renderer.h" |
| 6 |
| 7 #include <utility> |
| 8 |
| 9 #include "base/callback.h" |
| 10 #include "base/logging.h" |
| 11 #include "remoting/proto/video.pb.h" |
| 12 |
| 13 namespace remoting { |
| 14 namespace protocol { |
| 15 |
| 16 FakeVideoStub::FakeVideoStub() {} |
| 17 FakeVideoStub::~FakeVideoStub() {} |
| 18 |
| 19 void FakeVideoStub::ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet, |
| 20 const base::Closure& done) { |
| 21 received_packets_.push_back(std::move(video_packet)); |
| 22 done.Run(); |
| 23 } |
| 24 |
| 25 FakeVideoRenderer::FakeVideoRenderer() {} |
| 26 FakeVideoRenderer::~FakeVideoRenderer() {} |
| 27 |
| 28 void FakeVideoRenderer::OnSessionConfig(const SessionConfig& config) {} |
| 29 |
| 30 FakeVideoStub* FakeVideoRenderer::GetVideoStub() { |
| 31 return &video_stub_; |
| 32 } |
| 33 |
| 34 FrameConsumer* FakeVideoRenderer::GetFrameConsumer() { |
| 35 NOTIMPLEMENTED(); |
| 36 return nullptr; |
| 37 } |
| 38 |
| 39 } // namespace protocol |
| 40 } // namespace remoting |
OLD | NEW |