| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  144     EXPECT_CALL(*channel_proxy_, |  144     EXPECT_CALL(*channel_proxy_, | 
|  145                 SetSendAudioLevelIndicationStatus(true, kAudioLevelId)) |  145                 SetSendAudioLevelIndicationStatus(true, kAudioLevelId)) | 
|  146         .Times(1); |  146         .Times(1); | 
|  147  |  147  | 
|  148     if (audio_bwe_enabled) { |  148     if (audio_bwe_enabled) { | 
|  149       EXPECT_CALL(*channel_proxy_, |  149       EXPECT_CALL(*channel_proxy_, | 
|  150                   EnableSendTransportSequenceNumber(kTransportSequenceNumberId)) |  150                   EnableSendTransportSequenceNumber(kTransportSequenceNumberId)) | 
|  151           .Times(1); |  151           .Times(1); | 
|  152       EXPECT_CALL(*channel_proxy_, |  152       EXPECT_CALL(*channel_proxy_, | 
|  153                   RegisterSenderCongestionControlObjects( |  153                   RegisterSenderCongestionControlObjects( | 
|  154                       congestion_controller_.pacer(), &congestion_controller_, |  154                       congestion_controller_.pacer(), | 
 |  155                       congestion_controller_.GetTransportFeedbackObserver(), | 
|  155                       packet_router(), Ne(nullptr))) |  156                       packet_router(), Ne(nullptr))) | 
|  156           .Times(1); |  157           .Times(1); | 
|  157     } else { |  158     } else { | 
|  158       EXPECT_CALL(*channel_proxy_, |  159       EXPECT_CALL(*channel_proxy_, | 
|  159                   RegisterSenderCongestionControlObjects( |  160                   RegisterSenderCongestionControlObjects( | 
|  160                       congestion_controller_.pacer(), &congestion_controller_, |  161                       congestion_controller_.pacer(), | 
 |  162                       congestion_controller_.GetTransportFeedbackObserver(), | 
|  161                       packet_router(), Eq(nullptr))) |  163                       packet_router(), Eq(nullptr))) | 
|  162           .Times(1); |  164           .Times(1); | 
|  163     } |  165     } | 
|  164     EXPECT_CALL(*channel_proxy_, ResetCongestionControlObjects()).Times(1); |  166     EXPECT_CALL(*channel_proxy_, ResetCongestionControlObjects()).Times(1); | 
|  165     EXPECT_CALL(*channel_proxy_, RegisterExternalTransport(nullptr)).Times(1); |  167     EXPECT_CALL(*channel_proxy_, RegisterExternalTransport(nullptr)).Times(1); | 
|  166     EXPECT_CALL(*channel_proxy_, DeRegisterExternalTransport()).Times(1); |  168     EXPECT_CALL(*channel_proxy_, DeRegisterExternalTransport()).Times(1); | 
|  167     EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::NotNull())).Times(1); |  169     EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::NotNull())).Times(1); | 
|  168     EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::IsNull())) |  170     EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::IsNull())) | 
|  169         .Times(1);  // Destructor resets the event log |  171         .Times(1);  // Destructor resets the event log | 
|  170     EXPECT_CALL(*channel_proxy_, SetRtcpRttStats(&rtcp_rtt_stats_)).Times(1); |  172     EXPECT_CALL(*channel_proxy_, SetRtcpRttStats(&rtcp_rtt_stats_)).Times(1); | 
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  465   internal::AudioSendStream send_stream( |  467   internal::AudioSendStream send_stream( | 
|  466       helper.config(), helper.audio_state(), helper.worker_queue(), |  468       helper.config(), helper.audio_state(), helper.worker_queue(), | 
|  467       helper.packet_router(), helper.congestion_controller(), |  469       helper.packet_router(), helper.congestion_controller(), | 
|  468       helper.bitrate_allocator(), helper.event_log(), helper.rtcp_rtt_stats()); |  470       helper.bitrate_allocator(), helper.event_log(), helper.rtcp_rtt_stats()); | 
|  469   EXPECT_CALL(*helper.channel_proxy(), SetBitrate(_, 5000)); |  471   EXPECT_CALL(*helper.channel_proxy(), SetBitrate(_, 5000)); | 
|  470   send_stream.OnBitrateUpdated(50000, 0.0, 50, 5000); |  472   send_stream.OnBitrateUpdated(50000, 0.0, 50, 5000); | 
|  471 } |  473 } | 
|  472  |  474  | 
|  473 }  // namespace test |  475 }  // namespace test | 
|  474 }  // namespace webrtc |  476 }  // namespace webrtc | 
| OLD | NEW |