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 "remoting/proto/video.pb.h" |
| 11 |
| 12 namespace remoting { |
| 13 namespace protocol { |
| 14 |
| 15 FakeVideoStub::FakeVideoStub() {} |
| 16 FakeVideoStub::~FakeVideoStub() {} |
| 17 |
| 18 void FakeVideoStub::ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet, |
| 19 const base::Closure& done) { |
| 20 received_packets_.push_back(std::move(video_packet)); |
| 21 done.Run(); |
| 22 } |
| 23 |
| 24 FakeVideoRenderer::FakeVideoRenderer() {} |
| 25 FakeVideoRenderer::~FakeVideoRenderer() {} |
| 26 |
| 27 void FakeVideoRenderer::OnSessionConfig(const SessionConfig& config) {} |
| 28 |
| 29 FakeVideoStub* FakeVideoRenderer::GetVideoStub() { |
| 30 return &video_stub_; |
| 31 } |
| 32 |
| 33 } // namespace protocol |
| 34 } // namespace remoting |
OLD | NEW |