Index: webrtc/video/receive_statistics_proxy_unittest.cc |
diff --git a/webrtc/video/receive_statistics_proxy_unittest.cc b/webrtc/video/receive_statistics_proxy_unittest.cc |
index 0b8b3a6be153b8ac4eec5d231268c1640a13ef60..068b221f94d858aff1a9d59885f4848c99bd1c0b 100644 |
--- a/webrtc/video/receive_statistics_proxy_unittest.cc |
+++ b/webrtc/video/receive_statistics_proxy_unittest.cc |
@@ -98,6 +98,21 @@ TEST_F(ReceiveStatisticsProxyTest, OnDecodedFrameIncreasesQpSum) { |
statistics_proxy_->GetStats().qp_sum); |
} |
+TEST_F(ReceiveStatisticsProxyTest, ReportsContentType) { |
+ const std::string kRealtimeString("realtime"); |
+ const std::string kScreenshareString("screen"); |
+ EXPECT_EQ(kRealtimeString, videocontenttypehelpers::ToString( |
+ statistics_proxy_->GetStats().content_type)); |
+ statistics_proxy_->OnDecodedFrame(rtc::Optional<uint8_t>(3u), |
+ VideoContentType::SCREENSHARE); |
+ EXPECT_EQ(kScreenshareString, videocontenttypehelpers::ToString( |
+ statistics_proxy_->GetStats().content_type)); |
+ statistics_proxy_->OnDecodedFrame(rtc::Optional<uint8_t>(3u), |
+ VideoContentType::UNSPECIFIED); |
+ EXPECT_EQ(kRealtimeString, videocontenttypehelpers::ToString( |
+ statistics_proxy_->GetStats().content_type)); |
+} |
+ |
TEST_F(ReceiveStatisticsProxyTest, ReportsMaxInterframeDelay) { |
const int64_t kInterframeDelayMs1 = 100; |
const int64_t kInterframeDelayMs2 = 200; |