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 13 matching lines...) Expand all Loading... |
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #include "talk/media/webrtc/fakewebrtccall.h" | 28 #include "talk/media/webrtc/fakewebrtccall.h" |
29 | 29 |
30 #include <algorithm> | 30 #include <algorithm> |
31 #include <utility> | 31 #include <utility> |
32 | 32 |
33 #include "talk/media/base/rtputils.h" | 33 #include "talk/media/base/rtputils.h" |
| 34 #include "webrtc/audio/audio_sink.h" |
34 #include "webrtc/base/checks.h" | 35 #include "webrtc/base/checks.h" |
35 #include "webrtc/base/gunit.h" | 36 #include "webrtc/base/gunit.h" |
36 #include "webrtc/audio/audio_sink.h" | |
37 | 37 |
38 namespace cricket { | 38 namespace cricket { |
39 FakeAudioSendStream::FakeAudioSendStream( | 39 FakeAudioSendStream::FakeAudioSendStream( |
40 const webrtc::AudioSendStream::Config& config) : config_(config) { | 40 const webrtc::AudioSendStream::Config& config) : config_(config) { |
41 RTC_DCHECK(config.voe_channel_id != -1); | 41 RTC_DCHECK(config.voe_channel_id != -1); |
42 } | 42 } |
43 | 43 |
44 const webrtc::AudioSendStream::Config& | 44 const webrtc::AudioSendStream::Config& |
45 FakeAudioSendStream::GetConfig() const { | 45 FakeAudioSendStream::GetConfig() const { |
46 return config_; | 46 return config_; |
(...skipping 387 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 |