| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 webrtc::Call::Config GetConfig() const; | 170 webrtc::Call::Config GetConfig() const; |
| 171 const std::vector<FakeVideoSendStream*>& GetVideoSendStreams(); | 171 const std::vector<FakeVideoSendStream*>& GetVideoSendStreams(); |
| 172 const std::vector<FakeVideoReceiveStream*>& GetVideoReceiveStreams(); | 172 const std::vector<FakeVideoReceiveStream*>& GetVideoReceiveStreams(); |
| 173 | 173 |
| 174 const std::vector<FakeAudioSendStream*>& GetAudioSendStreams(); | 174 const std::vector<FakeAudioSendStream*>& GetAudioSendStreams(); |
| 175 const FakeAudioSendStream* GetAudioSendStream(uint32_t ssrc); | 175 const FakeAudioSendStream* GetAudioSendStream(uint32_t ssrc); |
| 176 const std::vector<FakeAudioReceiveStream*>& GetAudioReceiveStreams(); | 176 const std::vector<FakeAudioReceiveStream*>& GetAudioReceiveStreams(); |
| 177 const FakeAudioReceiveStream* GetAudioReceiveStream(uint32_t ssrc); | 177 const FakeAudioReceiveStream* GetAudioReceiveStream(uint32_t ssrc); |
| 178 | 178 |
| 179 rtc::SentPacket last_sent_packet() const { return last_sent_packet_; } | 179 rtc::SentPacket last_sent_packet() const { return last_sent_packet_; } |
| 180 |
| 181 // This is useful if we care about the last media packet (with id populated) |
| 182 // but not the last ICE packet (with -1 ID). |
| 183 int last_sent_nonnegative_packet_id() const { |
| 184 return last_sent_nonnegative_packet_id_; |
| 185 } |
| 186 |
| 180 webrtc::NetworkState GetNetworkState(webrtc::MediaType media) const; | 187 webrtc::NetworkState GetNetworkState(webrtc::MediaType media) const; |
| 181 int GetNumCreatedSendStreams() const; | 188 int GetNumCreatedSendStreams() const; |
| 182 int GetNumCreatedReceiveStreams() const; | 189 int GetNumCreatedReceiveStreams() const; |
| 183 void SetStats(const webrtc::Call::Stats& stats); | 190 void SetStats(const webrtc::Call::Stats& stats); |
| 184 | 191 |
| 185 private: | 192 private: |
| 186 webrtc::AudioSendStream* CreateAudioSendStream( | 193 webrtc::AudioSendStream* CreateAudioSendStream( |
| 187 const webrtc::AudioSendStream::Config& config) override; | 194 const webrtc::AudioSendStream::Config& config) override; |
| 188 void DestroyAudioSendStream(webrtc::AudioSendStream* send_stream) override; | 195 void DestroyAudioSendStream(webrtc::AudioSendStream* send_stream) override; |
| 189 | 196 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 215 void OnNetworkRouteChanged(const std::string& transport_name, | 222 void OnNetworkRouteChanged(const std::string& transport_name, |
| 216 const rtc::NetworkRoute& network_route) override {} | 223 const rtc::NetworkRoute& network_route) override {} |
| 217 void SignalChannelNetworkState(webrtc::MediaType media, | 224 void SignalChannelNetworkState(webrtc::MediaType media, |
| 218 webrtc::NetworkState state) override; | 225 webrtc::NetworkState state) override; |
| 219 void OnSentPacket(const rtc::SentPacket& sent_packet) override; | 226 void OnSentPacket(const rtc::SentPacket& sent_packet) override; |
| 220 | 227 |
| 221 webrtc::Call::Config config_; | 228 webrtc::Call::Config config_; |
| 222 webrtc::NetworkState audio_network_state_; | 229 webrtc::NetworkState audio_network_state_; |
| 223 webrtc::NetworkState video_network_state_; | 230 webrtc::NetworkState video_network_state_; |
| 224 rtc::SentPacket last_sent_packet_; | 231 rtc::SentPacket last_sent_packet_; |
| 232 int last_sent_nonnegative_packet_id_ = -1; |
| 225 webrtc::Call::Stats stats_; | 233 webrtc::Call::Stats stats_; |
| 226 std::vector<FakeVideoSendStream*> video_send_streams_; | 234 std::vector<FakeVideoSendStream*> video_send_streams_; |
| 227 std::vector<FakeAudioSendStream*> audio_send_streams_; | 235 std::vector<FakeAudioSendStream*> audio_send_streams_; |
| 228 std::vector<FakeVideoReceiveStream*> video_receive_streams_; | 236 std::vector<FakeVideoReceiveStream*> video_receive_streams_; |
| 229 std::vector<FakeAudioReceiveStream*> audio_receive_streams_; | 237 std::vector<FakeAudioReceiveStream*> audio_receive_streams_; |
| 230 | 238 |
| 231 int num_created_send_streams_; | 239 int num_created_send_streams_; |
| 232 int num_created_receive_streams_; | 240 int num_created_receive_streams_; |
| 233 }; | 241 }; |
| 234 | 242 |
| 235 } // namespace cricket | 243 } // namespace cricket |
| 236 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_UNITTEST_H_ | 244 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_UNITTEST_H_ |
| OLD | NEW |