| Index: webrtc/video/send_statistics_proxy_unittest.cc
|
| diff --git a/webrtc/video/send_statistics_proxy_unittest.cc b/webrtc/video/send_statistics_proxy_unittest.cc
|
| index ae0584232447f795f5f8dcc55632934423726e7d..8e6b7bcab3159e0c7e1566a1853bc002d88ba201 100644
|
| --- a/webrtc/video/send_statistics_proxy_unittest.cc
|
| +++ b/webrtc/video/send_statistics_proxy_unittest.cc
|
| @@ -129,11 +129,10 @@ TEST_F(SendStatisticsProxyTest, RtcpStatistics) {
|
| }
|
|
|
| TEST_F(SendStatisticsProxyTest, EncodedBitrateAndFramerate) {
|
| - const int media_bitrate_bps = 500;
|
| - const int encode_fps = 29;
|
| + int media_bitrate_bps = 500;
|
| + int encode_fps = 29;
|
|
|
| - ViEEncoderObserver* encoder_observer = statistics_proxy_.get();
|
| - encoder_observer->OutgoingRate(0, encode_fps, media_bitrate_bps);
|
| + statistics_proxy_->OnOutgoingRate(encode_fps, media_bitrate_bps);
|
|
|
| VideoSendStream::Stats stats = statistics_proxy_->GetStats();
|
| EXPECT_EQ(media_bitrate_bps, stats.media_bitrate_bps);
|
| @@ -145,12 +144,11 @@ TEST_F(SendStatisticsProxyTest, Suspended) {
|
| EXPECT_FALSE(statistics_proxy_->GetStats().suspended);
|
|
|
| // Verify that we can set it to true.
|
| - ViEEncoderObserver* encoder_observer = statistics_proxy_.get();
|
| - encoder_observer->SuspendChange(0, true);
|
| + statistics_proxy_->OnSuspendChange(true);
|
| EXPECT_TRUE(statistics_proxy_->GetStats().suspended);
|
|
|
| // Verify that we can set it back to false again.
|
| - encoder_observer->SuspendChange(0, false);
|
| + statistics_proxy_->OnSuspendChange(false);
|
| EXPECT_FALSE(statistics_proxy_->GetStats().suspended);
|
| }
|
|
|
|
|