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 |
11 #include "webrtc/media/engine/fakewebrtccall.h" | 11 #include "webrtc/media/engine/fakewebrtccall.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <utility> | 14 #include <utility> |
15 | 15 |
16 #include "webrtc/api/call/audio_sink.h" | 16 #include "webrtc/api/call/audio_sink.h" |
17 #include "webrtc/base/checks.h" | |
18 #include "webrtc/base/platform_file.h" | |
19 #include "webrtc/base/gunit.h" | |
20 #include "webrtc/media/base/rtputils.h" | 17 #include "webrtc/media/base/rtputils.h" |
| 18 #include "webrtc/rtc_base/checks.h" |
| 19 #include "webrtc/rtc_base/gunit.h" |
| 20 #include "webrtc/rtc_base/platform_file.h" |
21 | 21 |
22 namespace cricket { | 22 namespace cricket { |
23 FakeAudioSendStream::FakeAudioSendStream( | 23 FakeAudioSendStream::FakeAudioSendStream( |
24 int id, const webrtc::AudioSendStream::Config& config) | 24 int id, const webrtc::AudioSendStream::Config& config) |
25 : id_(id), config_(config) { | 25 : id_(id), config_(config) { |
26 RTC_DCHECK(config.voe_channel_id != -1); | 26 RTC_DCHECK(config.voe_channel_id != -1); |
27 } | 27 } |
28 | 28 |
29 void FakeAudioSendStream::Reconfigure( | 29 void FakeAudioSendStream::Reconfigure( |
30 const webrtc::AudioSendStream::Config& config) { | 30 const webrtc::AudioSendStream::Config& config) { |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 } | 626 } |
627 | 627 |
628 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { | 628 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { |
629 last_sent_packet_ = sent_packet; | 629 last_sent_packet_ = sent_packet; |
630 if (sent_packet.packet_id >= 0) { | 630 if (sent_packet.packet_id >= 0) { |
631 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; | 631 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; |
632 } | 632 } |
633 } | 633 } |
634 | 634 |
635 } // namespace cricket | 635 } // namespace cricket |
OLD | NEW |