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

Unified Diff: webrtc/audio/audio_send_stream_unittest.cc

Issue 2546493002: Update smoothed bitrate. (Closed)
Patch Set: Check if AdaptCodec runs on worker queue. Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/audio/audio_send_stream_unittest.cc
diff --git a/webrtc/audio/audio_send_stream_unittest.cc b/webrtc/audio/audio_send_stream_unittest.cc
index 4efd91b3e5618e2c6e5e4951836c9c124aebce56..7973e14bf1a0526cb7e7204c370539607683e2ec 100644
--- a/webrtc/audio/audio_send_stream_unittest.cc
+++ b/webrtc/audio/audio_send_stream_unittest.cc
@@ -419,6 +419,7 @@ TEST(AudioSendStreamTest, DoesNotPassHigherBitrateThanMaxBitrate) {
helper.bitrate_allocator(), helper.event_log(), helper.rtcp_rtt_stats());
EXPECT_CALL(*helper.channel_proxy(),
SetBitrate(helper.config().max_bitrate_bps, _));
+ EXPECT_CALL(*helper.channel_proxy(), AdaptCodec());
send_stream.OnBitrateUpdated(helper.config().max_bitrate_bps + 5000, 0.0, 50,
6000);
}
@@ -430,6 +431,7 @@ TEST(AudioSendStreamTest, ProbingIntervalOnBitrateUpdated) {
helper.packet_router(), helper.congestion_controller(),
helper.bitrate_allocator(), helper.event_log(), helper.rtcp_rtt_stats());
EXPECT_CALL(*helper.channel_proxy(), SetBitrate(_, 5000));
+ EXPECT_CALL(*helper.channel_proxy(), AdaptCodec());
send_stream.OnBitrateUpdated(50000, 0.0, 50, 5000);
}

Powered by Google App Engine
This is Rietveld 408576698