| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 int num_swapped_frames_; | 167 int num_swapped_frames_; |
| 168 rtc::Optional<webrtc::VideoFrame> last_frame_; | 168 rtc::Optional<webrtc::VideoFrame> last_frame_; |
| 169 webrtc::VideoSendStream::Stats stats_; | 169 webrtc::VideoSendStream::Stats stats_; |
| 170 int num_encoder_reconfigurations_ = 0; | 170 int num_encoder_reconfigurations_ = 0; |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 class FakeVideoReceiveStream final : public webrtc::VideoReceiveStream { | 173 class FakeVideoReceiveStream final : public webrtc::VideoReceiveStream { |
| 174 public: | 174 public: |
| 175 explicit FakeVideoReceiveStream(webrtc::VideoReceiveStream::Config config); | 175 explicit FakeVideoReceiveStream(webrtc::VideoReceiveStream::Config config); |
| 176 | 176 |
| 177 const webrtc::VideoReceiveStream::Config& GetConfig(); | 177 const webrtc::VideoReceiveStream::Config& GetConfig() const; |
| 178 | 178 |
| 179 bool IsReceiving() const; | 179 bool IsReceiving() const; |
| 180 | 180 |
| 181 void InjectFrame(const webrtc::VideoFrame& frame); | 181 void InjectFrame(const webrtc::VideoFrame& frame); |
| 182 | 182 |
| 183 void SetStats(const webrtc::VideoReceiveStream::Stats& stats); | 183 void SetStats(const webrtc::VideoReceiveStream::Stats& stats); |
| 184 | 184 |
| 185 void EnableEncodedFrameRecording(rtc::PlatformFile file, | 185 void EnableEncodedFrameRecording(rtc::PlatformFile file, |
| 186 size_t byte_limit) override; | 186 size_t byte_limit) override; |
| 187 | 187 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 302 |
| 303 int num_created_send_streams_; | 303 int num_created_send_streams_; |
| 304 int num_created_receive_streams_; | 304 int num_created_receive_streams_; |
| 305 | 305 |
| 306 int audio_transport_overhead_; | 306 int audio_transport_overhead_; |
| 307 int video_transport_overhead_; | 307 int video_transport_overhead_; |
| 308 }; | 308 }; |
| 309 | 309 |
| 310 } // namespace cricket | 310 } // namespace cricket |
| 311 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_ | 311 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_ |
| OLD | NEW |