| 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 19 matching lines...) Expand all Loading... |
| 30 #include <algorithm> | 30 #include <algorithm> |
| 31 | 31 |
| 32 #include "talk/media/base/rtputils.h" | 32 #include "talk/media/base/rtputils.h" |
| 33 #include "webrtc/base/checks.h" | 33 #include "webrtc/base/checks.h" |
| 34 #include "webrtc/base/gunit.h" | 34 #include "webrtc/base/gunit.h" |
| 35 | 35 |
| 36 namespace cricket { | 36 namespace cricket { |
| 37 FakeAudioReceiveStream::FakeAudioReceiveStream( | 37 FakeAudioReceiveStream::FakeAudioReceiveStream( |
| 38 const webrtc::AudioReceiveStream::Config& config) | 38 const webrtc::AudioReceiveStream::Config& config) |
| 39 : config_(config), received_packets_(0) { | 39 : config_(config), received_packets_(0) { |
| 40 DCHECK(config.voe_channel_id != -1); |
| 40 } | 41 } |
| 41 | 42 |
| 42 webrtc::AudioReceiveStream::Stats FakeAudioReceiveStream::GetStats() const { | 43 webrtc::AudioReceiveStream::Stats FakeAudioReceiveStream::GetStats() const { |
| 43 return webrtc::AudioReceiveStream::Stats(); | 44 return webrtc::AudioReceiveStream::Stats(); |
| 44 } | 45 } |
| 45 | 46 |
| 46 const webrtc::AudioReceiveStream::Config& | 47 const webrtc::AudioReceiveStream::Config& |
| 47 FakeAudioReceiveStream::GetConfig() const { | 48 FakeAudioReceiveStream::GetConfig() const { |
| 48 return config_; | 49 return config_; |
| 49 } | 50 } |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 354 |
| 354 void FakeCall::SetBitrateConfig( | 355 void FakeCall::SetBitrateConfig( |
| 355 const webrtc::Call::Config::BitrateConfig& bitrate_config) { | 356 const webrtc::Call::Config::BitrateConfig& bitrate_config) { |
| 356 config_.bitrate_config = bitrate_config; | 357 config_.bitrate_config = bitrate_config; |
| 357 } | 358 } |
| 358 | 359 |
| 359 void FakeCall::SignalNetworkState(webrtc::Call::NetworkState state) { | 360 void FakeCall::SignalNetworkState(webrtc::Call::NetworkState state) { |
| 360 network_state_ = state; | 361 network_state_ = state; |
| 361 } | 362 } |
| 362 } // namespace cricket | 363 } // namespace cricket |
| OLD | NEW |