| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include <functional> | 10 #include <functional> |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 class BitrateEstimatorTest : public test::CallTest { | 102 class BitrateEstimatorTest : public test::CallTest { |
| 103 public: | 103 public: |
| 104 BitrateEstimatorTest() : mock_voice_engine_(decoder_factory_), | 104 BitrateEstimatorTest() : mock_voice_engine_(decoder_factory_), |
| 105 receive_config_(nullptr) {} | 105 receive_config_(nullptr) {} |
| 106 | 106 |
| 107 virtual ~BitrateEstimatorTest() { EXPECT_TRUE(streams_.empty()); } | 107 virtual ~BitrateEstimatorTest() { EXPECT_TRUE(streams_.empty()); } |
| 108 | 108 |
| 109 virtual void SetUp() { | 109 virtual void SetUp() { |
| 110 AudioState::Config audio_state_config; | 110 AudioState::Config audio_state_config; |
| 111 audio_state_config.voice_engine = &mock_voice_engine_; | 111 audio_state_config.voice_engine = &mock_voice_engine_; |
| 112 Call::Config config; | 112 Call::Config config(&event_log_); |
| 113 config.audio_state = AudioState::Create(audio_state_config); | 113 config.audio_state = AudioState::Create(audio_state_config); |
| 114 receiver_call_.reset(Call::Create(config)); | 114 receiver_call_.reset(Call::Create(config)); |
| 115 sender_call_.reset(Call::Create(config)); | 115 sender_call_.reset(Call::Create(config)); |
| 116 | 116 |
| 117 send_transport_.reset(new test::DirectTransport(sender_call_.get())); | 117 send_transport_.reset(new test::DirectTransport(sender_call_.get())); |
| 118 send_transport_->SetReceiver(receiver_call_->Receiver()); | 118 send_transport_->SetReceiver(receiver_call_->Receiver()); |
| 119 receive_transport_.reset(new test::DirectTransport(receiver_call_.get())); | 119 receive_transport_.reset(new test::DirectTransport(receiver_call_.get())); |
| 120 receive_transport_->SetReceiver(sender_call_->Receiver()); | 120 receive_transport_->SetReceiver(sender_call_->Receiver()); |
| 121 | 121 |
| 122 video_send_config_ = VideoSendStream::Config(send_transport_.get()); | 122 video_send_config_ = VideoSendStream::Config(send_transport_.get()); |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId); | 323 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId); |
| 324 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); | 324 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); |
| 325 receiver_log_.PushExpectedLogLine( | 325 receiver_log_.PushExpectedLogLine( |
| 326 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); | 326 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); |
| 327 streams_.push_back(new Stream(this, false)); | 327 streams_.push_back(new Stream(this, false)); |
| 328 streams_[0]->StopSending(); | 328 streams_[0]->StopSending(); |
| 329 streams_[1]->StopSending(); | 329 streams_[1]->StopSending(); |
| 330 EXPECT_TRUE(receiver_log_.Wait()); | 330 EXPECT_TRUE(receiver_log_.Wait()); |
| 331 } | 331 } |
| 332 } // namespace webrtc | 332 } // namespace webrtc |
| OLD | NEW |