Index: webrtc/video/end_to_end_tests.cc |
diff --git a/webrtc/video/end_to_end_tests.cc b/webrtc/video/end_to_end_tests.cc |
index fbc852fceea5240f564bd40901b556f86ecb8ed1..4744049a0f2bbd64e210fc8330d65ae275be8fc5 100644 |
--- a/webrtc/video/end_to_end_tests.cc |
+++ b/webrtc/video/end_to_end_tests.cc |
@@ -2811,7 +2811,9 @@ void EndToEndTest::VerifyHistogramStats(bool use_rtx, |
std::string video_prefix = |
screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; |
- |
+ // The content type extension is disabled in non screenshare test, |
+ // therefore no slicing on simulcast id should be present. |
+ std::string video_suffix = screenshare ? ".S0" : ""; |
// Verify that stats have been updated once. |
EXPECT_EQ(2, metrics::NumSamples("WebRTC.Call.LifetimeInSeconds")); |
EXPECT_EQ(1, metrics::NumSamples( |
@@ -2847,8 +2849,8 @@ void EndToEndTest::VerifyHistogramStats(bool use_rtx, |
EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InputHeightInPixels")); |
EXPECT_EQ(1, metrics::NumSamples(video_prefix + "SentWidthInPixels")); |
EXPECT_EQ(1, metrics::NumSamples(video_prefix + "SentHeightInPixels")); |
- EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.ReceivedWidthInPixels")); |
- EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.ReceivedHeightInPixels")); |
+ EXPECT_EQ(1, metrics::NumSamples(video_prefix + "ReceivedWidthInPixels")); |
+ EXPECT_EQ(1, metrics::NumSamples(video_prefix + "ReceivedHeightInPixels")); |
EXPECT_EQ(1, metrics::NumEvents(video_prefix + "InputWidthInPixels", |
kDefaultWidth)); |
@@ -2858,9 +2860,9 @@ void EndToEndTest::VerifyHistogramStats(bool use_rtx, |
1, metrics::NumEvents(video_prefix + "SentWidthInPixels", kDefaultWidth)); |
EXPECT_EQ(1, metrics::NumEvents(video_prefix + "SentHeightInPixels", |
kDefaultHeight)); |
- EXPECT_EQ(1, metrics::NumEvents("WebRTC.Video.ReceivedWidthInPixels", |
+ EXPECT_EQ(1, metrics::NumEvents(video_prefix + "ReceivedWidthInPixels", |
kDefaultWidth)); |
- EXPECT_EQ(1, metrics::NumEvents("WebRTC.Video.ReceivedHeightInPixels", |
+ EXPECT_EQ(1, metrics::NumEvents(video_prefix + "ReceivedHeightInPixels", |
kDefaultHeight)); |
EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InputFramesPerSecond")); |
@@ -2873,10 +2875,14 @@ void EndToEndTest::VerifyHistogramStats(bool use_rtx, |
EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.CurrentDelayInMs")); |
EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.OnewayDelayInMs")); |
- EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EndToEndDelayInMs")); |
- EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EndToEndDelayMaxInMs")); |
- EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InterframeDelayInMs")); |
- EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InterframeDelayMaxInMs")); |
+ EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EndToEndDelayInMs" + |
+ video_suffix)); |
+ EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EndToEndDelayMaxInMs" + |
+ video_suffix)); |
+ EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InterframeDelayInMs" + |
+ video_suffix)); |
+ EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InterframeDelayMaxInMs" + |
+ video_suffix)); |
EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); |