Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(795)

Side by Side Diff: webrtc/audio/audio_send_stream_unittest.cc

Issue 2838233002: Add PeerConnectionInterface::UpdateCallBitrate with call tests. (Closed)
Patch Set: Only update start from SetBitrateConfig when it changes; some comments and logging. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 struct ConfigHelper { 128 struct ConfigHelper {
129 ConfigHelper(bool audio_bwe_enabled, bool expect_set_encoder_call) 129 ConfigHelper(bool audio_bwe_enabled, bool expect_set_encoder_call)
130 : stream_config_(nullptr), 130 : stream_config_(nullptr),
131 simulated_clock_(123456), 131 simulated_clock_(123456),
132 send_side_cc_(rtc::MakeUnique<SendSideCongestionController>( 132 send_side_cc_(rtc::MakeUnique<SendSideCongestionController>(
133 &simulated_clock_, 133 &simulated_clock_,
134 nullptr /* observer */, 134 nullptr /* observer */,
135 &event_log_, 135 &event_log_,
136 &packet_router_)), 136 &packet_router_)),
137 fake_transport_(send_side_cc_.get()), 137 fake_transport_(&packet_router_, send_side_cc_.get()),
138 bitrate_allocator_(&limit_observer_), 138 bitrate_allocator_(&limit_observer_),
139 worker_queue_("ConfigHelper_worker_queue") { 139 worker_queue_("ConfigHelper_worker_queue") {
140 using testing::Invoke; 140 using testing::Invoke;
141 141
142 EXPECT_CALL(voice_engine_, 142 EXPECT_CALL(voice_engine_,
143 RegisterVoiceEngineObserver(_)).WillOnce(Return(0)); 143 RegisterVoiceEngineObserver(_)).WillOnce(Return(0));
144 EXPECT_CALL(voice_engine_, 144 EXPECT_CALL(voice_engine_,
145 DeRegisterVoiceEngineObserver()).WillOnce(Return(0)); 145 DeRegisterVoiceEngineObserver()).WillOnce(Return(0));
146 EXPECT_CALL(voice_engine_, audio_device_module()); 146 EXPECT_CALL(voice_engine_, audio_device_module());
147 EXPECT_CALL(voice_engine_, audio_processing()); 147 EXPECT_CALL(voice_engine_, audio_processing());
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 stream_config.send_codec_spec->cng_payload_type = rtc::Optional<int>(105); 537 stream_config.send_codec_spec->cng_payload_type = rtc::Optional<int>(105);
538 internal::AudioSendStream send_stream( 538 internal::AudioSendStream send_stream(
539 stream_config, helper.audio_state(), helper.worker_queue(), 539 stream_config, helper.audio_state(), helper.worker_queue(),
540 helper.transport(), helper.bitrate_allocator(), helper.event_log(), 540 helper.transport(), helper.bitrate_allocator(), helper.event_log(),
541 helper.rtcp_rtt_stats()); 541 helper.rtcp_rtt_stats());
542 send_stream.Reconfigure(stream_config); 542 send_stream.Reconfigure(stream_config);
543 } 543 }
544 544
545 } // namespace test 545 } // namespace test
546 } // namespace webrtc 546 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectionproxy.h ('k') | webrtc/call/call.h » ('j') | webrtc/call/call.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698