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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void InjectFrame(const webrtc::VideoFrame& frame); | 150 void InjectFrame(const webrtc::VideoFrame& frame); |
151 | 151 |
152 void SetStats(const webrtc::VideoReceiveStream::Stats& stats); | 152 void SetStats(const webrtc::VideoReceiveStream::Stats& stats); |
153 | 153 |
154 private: | 154 private: |
155 // webrtc::VideoReceiveStream implementation. | 155 // webrtc::VideoReceiveStream implementation. |
156 void Start() override; | 156 void Start() override; |
157 void Stop() override; | 157 void Stop() override; |
158 | 158 |
159 webrtc::VideoReceiveStream::Stats GetStats() const override; | 159 webrtc::VideoReceiveStream::Stats GetStats() const override; |
| 160 void DisableFec() override {} |
160 | 161 |
161 webrtc::VideoReceiveStream::Config config_; | 162 webrtc::VideoReceiveStream::Config config_; |
162 bool receiving_; | 163 bool receiving_; |
163 webrtc::VideoReceiveStream::Stats stats_; | 164 webrtc::VideoReceiveStream::Stats stats_; |
164 }; | 165 }; |
165 | 166 |
166 class FakeCall final : public webrtc::Call, public webrtc::PacketReceiver { | 167 class FakeCall final : public webrtc::Call, public webrtc::PacketReceiver { |
167 public: | 168 public: |
168 explicit FakeCall(const webrtc::Call::Config& config); | 169 explicit FakeCall(const webrtc::Call::Config& config); |
169 ~FakeCall() override; | 170 ~FakeCall() override; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 std::vector<FakeAudioSendStream*> audio_send_streams_; | 229 std::vector<FakeAudioSendStream*> audio_send_streams_; |
229 std::vector<FakeVideoReceiveStream*> video_receive_streams_; | 230 std::vector<FakeVideoReceiveStream*> video_receive_streams_; |
230 std::vector<FakeAudioReceiveStream*> audio_receive_streams_; | 231 std::vector<FakeAudioReceiveStream*> audio_receive_streams_; |
231 | 232 |
232 int num_created_send_streams_; | 233 int num_created_send_streams_; |
233 int num_created_receive_streams_; | 234 int num_created_receive_streams_; |
234 }; | 235 }; |
235 | 236 |
236 } // namespace cricket | 237 } // namespace cricket |
237 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_UNITTEST_H_ | 238 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_UNITTEST_H_ |
OLD | NEW |