Chromium Code Reviews| 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 1bf9814412a6380f550af82afcede438d0a22ec5..f098ce2d239e309bc23ee64dc55429f572cdbcab 100644 |
| --- a/webrtc/video/send_statistics_proxy_unittest.cc |
| +++ b/webrtc/video/send_statistics_proxy_unittest.cc |
| @@ -288,6 +288,14 @@ TEST_F(SendStatisticsProxyTest, SendSideDelay) { |
| ExpectEqual(expected_, stats); |
| } |
| +TEST_F(SendStatisticsProxyTest, OnEncodedFrame) { |
| + const int kEncodeTimeMs = 11; |
| + statistics_proxy_->OnEncodedFrame(kEncodeTimeMs); |
| + |
| + VideoSendStream::Stats stats = statistics_proxy_->GetStats(); |
| + EXPECT_EQ(kEncodeTimeMs, stats.avg_encode_time_ms); |
|
pbos-webrtc
2015/12/07 10:55:02
If you wanna, add two samples and make sure the av
|
| +} |
| + |
| TEST_F(SendStatisticsProxyTest, NoSubstreams) { |
| uint32_t excluded_ssrc = |
| std::max( |