Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: talk/media/webrtc/fakewebrtccall.cc

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 const FakeAudioReceiveStream* FakeCall::GetAudioReceiveStream(uint32_t ssrc) { 230 const FakeAudioReceiveStream* FakeCall::GetAudioReceiveStream(uint32_t ssrc) {
231 for (const auto p : GetAudioReceiveStreams()) { 231 for (const auto p : GetAudioReceiveStreams()) {
232 if (p->GetConfig().rtp.remote_ssrc == ssrc) { 232 if (p->GetConfig().rtp.remote_ssrc == ssrc) {
233 return p; 233 return p;
234 } 234 }
235 } 235 }
236 return nullptr; 236 return nullptr;
237 } 237 }
238 238
239 webrtc::SentPacket FakeCall::last_packet_sent() const {
240 return last_packet_sent_;
241 }
242
239 webrtc::NetworkState FakeCall::GetNetworkState() const { 243 webrtc::NetworkState FakeCall::GetNetworkState() const {
240 return network_state_; 244 return network_state_;
241 } 245 }
242 246
243 webrtc::AudioSendStream* FakeCall::CreateAudioSendStream( 247 webrtc::AudioSendStream* FakeCall::CreateAudioSendStream(
244 const webrtc::AudioSendStream::Config& config) { 248 const webrtc::AudioSendStream::Config& config) {
245 return nullptr; 249 return nullptr;
246 } 250 }
247 251
248 void FakeCall::DestroyAudioSendStream(webrtc::AudioSendStream* send_stream) { 252 void FakeCall::DestroyAudioSendStream(webrtc::AudioSendStream* send_stream) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 364 }
361 365
362 void FakeCall::SetBitrateConfig( 366 void FakeCall::SetBitrateConfig(
363 const webrtc::Call::Config::BitrateConfig& bitrate_config) { 367 const webrtc::Call::Config::BitrateConfig& bitrate_config) {
364 config_.bitrate_config = bitrate_config; 368 config_.bitrate_config = bitrate_config;
365 } 369 }
366 370
367 void FakeCall::SignalNetworkState(webrtc::NetworkState state) { 371 void FakeCall::SignalNetworkState(webrtc::NetworkState state) {
368 network_state_ = state; 372 network_state_ = state;
369 } 373 }
374
375 void FakeCall::OnSentPacket(const webrtc::SentPacket& packet_sent) {
376 last_packet_sent_ = packet_sent;
377 }
370 } // namespace cricket 378 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698