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 22 matching lines...) Expand all Loading... |
33 void FakeAudioSendStream::SetStats( | 33 void FakeAudioSendStream::SetStats( |
34 const webrtc::AudioSendStream::Stats& stats) { | 34 const webrtc::AudioSendStream::Stats& stats) { |
35 stats_ = stats; | 35 stats_ = stats; |
36 } | 36 } |
37 | 37 |
38 FakeAudioSendStream::TelephoneEvent | 38 FakeAudioSendStream::TelephoneEvent |
39 FakeAudioSendStream::GetLatestTelephoneEvent() const { | 39 FakeAudioSendStream::GetLatestTelephoneEvent() const { |
40 return latest_telephone_event_; | 40 return latest_telephone_event_; |
41 } | 41 } |
42 | 42 |
43 bool FakeAudioSendStream::SendTelephoneEvent(int payload_type, int event, | 43 bool FakeAudioSendStream::SendTelephoneEvent(int payload_type, |
| 44 int payload_frequency, int event, |
44 int duration_ms) { | 45 int duration_ms) { |
45 latest_telephone_event_.payload_type = payload_type; | 46 latest_telephone_event_.payload_type = payload_type; |
| 47 latest_telephone_event_.payload_frequency = payload_frequency; |
46 latest_telephone_event_.event_code = event; | 48 latest_telephone_event_.event_code = event; |
47 latest_telephone_event_.duration_ms = duration_ms; | 49 latest_telephone_event_.duration_ms = duration_ms; |
48 return true; | 50 return true; |
49 } | 51 } |
50 | 52 |
51 void FakeAudioSendStream::SetMuted(bool muted) { | 53 void FakeAudioSendStream::SetMuted(bool muted) { |
52 muted_ = muted; | 54 muted_ = muted; |
53 } | 55 } |
54 | 56 |
55 webrtc::AudioSendStream::Stats FakeAudioSendStream::GetStats() const { | 57 webrtc::AudioSendStream::Stats FakeAudioSendStream::GetStats() const { |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 } | 531 } |
530 | 532 |
531 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { | 533 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { |
532 last_sent_packet_ = sent_packet; | 534 last_sent_packet_ = sent_packet; |
533 if (sent_packet.packet_id >= 0) { | 535 if (sent_packet.packet_id >= 0) { |
534 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; | 536 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; |
535 } | 537 } |
536 } | 538 } |
537 | 539 |
538 } // namespace cricket | 540 } // namespace cricket |
OLD | NEW |