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

Unified Diff: webrtc/media/engine/webrtcvideoengine2_unittest.cc

Issue 2607913002: RTCMediaStreamTrackStats.framesReceived collected by RTCStatsCollector. (Closed)
Patch Set: Rebase with master Created 3 years, 11 months 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
« no previous file with comments | « webrtc/media/engine/webrtcvideoengine2.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/engine/webrtcvideoengine2_unittest.cc
diff --git a/webrtc/media/engine/webrtcvideoengine2_unittest.cc b/webrtc/media/engine/webrtcvideoengine2_unittest.cc
index bf017670170b17566855a917ffd9df0c89777d02..4667ea8f3fff76a95071d2af78c4ac6c3e05f247 100644
--- a/webrtc/media/engine/webrtcvideoengine2_unittest.cc
+++ b/webrtc/media/engine/webrtcvideoengine2_unittest.cc
@@ -3301,7 +3301,9 @@ TEST_F(WebRtcVideoChannel2Test, GetStatsTranslatesDecodeStatsCorrectly) {
stats.render_delay_ms = 8;
stats.width = 9;
stats.height = 10;
- stats.frames_decoded = 11;
+ stats.frame_counts.key_frames = 11;
+ stats.frame_counts.delta_frames = 12;
+ stats.frames_decoded = 13;
stream->SetStats(stats);
cricket::VideoMediaInfo info;
@@ -3317,6 +3319,8 @@ TEST_F(WebRtcVideoChannel2Test, GetStatsTranslatesDecodeStatsCorrectly) {
EXPECT_EQ(stats.render_delay_ms, info.receivers[0].render_delay_ms);
EXPECT_EQ(stats.width, info.receivers[0].frame_width);
EXPECT_EQ(stats.height, info.receivers[0].frame_height);
+ EXPECT_EQ(stats.frame_counts.key_frames + stats.frame_counts.delta_frames,
+ info.receivers[0].frames_received);
EXPECT_EQ(stats.frames_decoded, info.receivers[0].frames_decoded);
}
« no previous file with comments | « webrtc/media/engine/webrtcvideoengine2.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698