OLD | NEW |
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 void FakeAudioReceiveStream::IncrementReceivedPackets() { | 87 void FakeAudioReceiveStream::IncrementReceivedPackets() { |
88 received_packets_++; | 88 received_packets_++; |
89 } | 89 } |
90 | 90 |
91 webrtc::AudioReceiveStream::Stats FakeAudioReceiveStream::GetStats() const { | 91 webrtc::AudioReceiveStream::Stats FakeAudioReceiveStream::GetStats() const { |
92 return stats_; | 92 return stats_; |
93 } | 93 } |
94 | 94 |
95 void FakeAudioReceiveStream::SetSink( | 95 void FakeAudioReceiveStream::SetSink( |
96 const rtc::scoped_refptr<webrtc::AudioSinkInterface>& sink) { | 96 rtc::scoped_ptr<webrtc::AudioSinkInterface> sink) { |
97 sink_ = sink; | 97 sink_ = std::move(sink); |
98 } | 98 } |
99 | 99 |
100 FakeVideoSendStream::FakeVideoSendStream( | 100 FakeVideoSendStream::FakeVideoSendStream( |
101 const webrtc::VideoSendStream::Config& config, | 101 const webrtc::VideoSendStream::Config& config, |
102 const webrtc::VideoEncoderConfig& encoder_config) | 102 const webrtc::VideoEncoderConfig& encoder_config) |
103 : sending_(false), | 103 : sending_(false), |
104 config_(config), | 104 config_(config), |
105 codec_settings_set_(false), | 105 codec_settings_set_(false), |
106 num_swapped_frames_(0) { | 106 num_swapped_frames_(0) { |
107 RTC_DCHECK(config.encoder_settings.encoder != NULL); | 107 RTC_DCHECK(config.encoder_settings.encoder != NULL); |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 } | 434 } |
435 | 435 |
436 void FakeCall::SignalNetworkState(webrtc::NetworkState state) { | 436 void FakeCall::SignalNetworkState(webrtc::NetworkState state) { |
437 network_state_ = state; | 437 network_state_ = state; |
438 } | 438 } |
439 | 439 |
440 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { | 440 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { |
441 last_sent_packet_ = sent_packet; | 441 last_sent_packet_ = sent_packet; |
442 } | 442 } |
443 } // namespace cricket | 443 } // namespace cricket |
OLD | NEW |