OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 } | 302 } |
303 | 303 |
304 void FakeVideoReceiveStream::InjectFrame(const webrtc::VideoFrame& frame) { | 304 void FakeVideoReceiveStream::InjectFrame(const webrtc::VideoFrame& frame) { |
305 config_.renderer->OnFrame(frame); | 305 config_.renderer->OnFrame(frame); |
306 } | 306 } |
307 | 307 |
308 webrtc::VideoReceiveStream::Stats FakeVideoReceiveStream::GetStats() const { | 308 webrtc::VideoReceiveStream::Stats FakeVideoReceiveStream::GetStats() const { |
309 return stats_; | 309 return stats_; |
310 } | 310 } |
311 | 311 |
| 312 rtc::Optional<webrtc::TimingFrameInfo> |
| 313 FakeVideoReceiveStream::GetAndResetTimingFrameInfo() { |
| 314 return rtc::Optional<webrtc::TimingFrameInfo>(); |
| 315 } |
| 316 |
312 void FakeVideoReceiveStream::Start() { | 317 void FakeVideoReceiveStream::Start() { |
313 receiving_ = true; | 318 receiving_ = true; |
314 } | 319 } |
315 | 320 |
316 void FakeVideoReceiveStream::Stop() { | 321 void FakeVideoReceiveStream::Stop() { |
317 receiving_ = false; | 322 receiving_ = false; |
318 } | 323 } |
319 | 324 |
320 void FakeVideoReceiveStream::SetStats( | 325 void FakeVideoReceiveStream::SetStats( |
321 const webrtc::VideoReceiveStream::Stats& stats) { | 326 const webrtc::VideoReceiveStream::Stats& stats) { |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 } | 631 } |
627 | 632 |
628 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { | 633 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { |
629 last_sent_packet_ = sent_packet; | 634 last_sent_packet_ = sent_packet; |
630 if (sent_packet.packet_id >= 0) { | 635 if (sent_packet.packet_id >= 0) { |
631 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; | 636 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; |
632 } | 637 } |
633 } | 638 } |
634 | 639 |
635 } // namespace cricket | 640 } // namespace cricket |
OLD | NEW |