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

Side by Side Diff: webrtc/media/engine/webrtcvideoengine2_unittest.cc

Issue 2680893002: Revert of Add QP sum stats for received streams. (Closed)
Patch Set: Rebase Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 3412 matching lines...) Expand 10 before | Expand all | Expand 10 after
3423 stats.target_delay_ms = 5; 3423 stats.target_delay_ms = 5;
3424 stats.jitter_buffer_ms = 6; 3424 stats.jitter_buffer_ms = 6;
3425 stats.min_playout_delay_ms = 7; 3425 stats.min_playout_delay_ms = 7;
3426 stats.render_delay_ms = 8; 3426 stats.render_delay_ms = 8;
3427 stats.width = 9; 3427 stats.width = 9;
3428 stats.height = 10; 3428 stats.height = 10;
3429 stats.frame_counts.key_frames = 11; 3429 stats.frame_counts.key_frames = 11;
3430 stats.frame_counts.delta_frames = 12; 3430 stats.frame_counts.delta_frames = 12;
3431 stats.frames_rendered = 13; 3431 stats.frames_rendered = 13;
3432 stats.frames_decoded = 14; 3432 stats.frames_decoded = 14;
3433 stats.qp_sum = rtc::Optional<uint64_t>(15);
3434 stream->SetStats(stats); 3433 stream->SetStats(stats);
3435 3434
3436 cricket::VideoMediaInfo info; 3435 cricket::VideoMediaInfo info;
3437 ASSERT_TRUE(channel_->GetStats(&info)); 3436 ASSERT_TRUE(channel_->GetStats(&info));
3438 EXPECT_EQ(stats.decoder_implementation_name, 3437 EXPECT_EQ(stats.decoder_implementation_name,
3439 info.receivers[0].decoder_implementation_name); 3438 info.receivers[0].decoder_implementation_name);
3440 EXPECT_EQ(stats.decode_ms, info.receivers[0].decode_ms); 3439 EXPECT_EQ(stats.decode_ms, info.receivers[0].decode_ms);
3441 EXPECT_EQ(stats.max_decode_ms, info.receivers[0].max_decode_ms); 3440 EXPECT_EQ(stats.max_decode_ms, info.receivers[0].max_decode_ms);
3442 EXPECT_EQ(stats.current_delay_ms, info.receivers[0].current_delay_ms); 3441 EXPECT_EQ(stats.current_delay_ms, info.receivers[0].current_delay_ms);
3443 EXPECT_EQ(stats.target_delay_ms, info.receivers[0].target_delay_ms); 3442 EXPECT_EQ(stats.target_delay_ms, info.receivers[0].target_delay_ms);
3444 EXPECT_EQ(stats.jitter_buffer_ms, info.receivers[0].jitter_buffer_ms); 3443 EXPECT_EQ(stats.jitter_buffer_ms, info.receivers[0].jitter_buffer_ms);
3445 EXPECT_EQ(stats.min_playout_delay_ms, info.receivers[0].min_playout_delay_ms); 3444 EXPECT_EQ(stats.min_playout_delay_ms, info.receivers[0].min_playout_delay_ms);
3446 EXPECT_EQ(stats.render_delay_ms, info.receivers[0].render_delay_ms); 3445 EXPECT_EQ(stats.render_delay_ms, info.receivers[0].render_delay_ms);
3447 EXPECT_EQ(stats.width, info.receivers[0].frame_width); 3446 EXPECT_EQ(stats.width, info.receivers[0].frame_width);
3448 EXPECT_EQ(stats.height, info.receivers[0].frame_height); 3447 EXPECT_EQ(stats.height, info.receivers[0].frame_height);
3449 EXPECT_EQ(stats.frame_counts.key_frames + stats.frame_counts.delta_frames, 3448 EXPECT_EQ(stats.frame_counts.key_frames + stats.frame_counts.delta_frames,
3450 info.receivers[0].frames_received); 3449 info.receivers[0].frames_received);
3451 EXPECT_EQ(stats.frames_rendered, info.receivers[0].frames_rendered); 3450 EXPECT_EQ(stats.frames_rendered, info.receivers[0].frames_rendered);
3452 EXPECT_EQ(stats.frames_decoded, info.receivers[0].frames_decoded); 3451 EXPECT_EQ(stats.frames_decoded, info.receivers[0].frames_decoded);
3453 EXPECT_EQ(stats.qp_sum, info.receivers[0].qp_sum);
3454 } 3452 }
3455 3453
3456 TEST_F(WebRtcVideoChannel2Test, GetStatsTranslatesReceivePacketStatsCorrectly) { 3454 TEST_F(WebRtcVideoChannel2Test, GetStatsTranslatesReceivePacketStatsCorrectly) {
3457 FakeVideoReceiveStream* stream = AddRecvStream(); 3455 FakeVideoReceiveStream* stream = AddRecvStream();
3458 webrtc::VideoReceiveStream::Stats stats; 3456 webrtc::VideoReceiveStream::Stats stats;
3459 stats.rtp_stats.transmitted.payload_bytes = 2; 3457 stats.rtp_stats.transmitted.payload_bytes = 2;
3460 stats.rtp_stats.transmitted.header_bytes = 3; 3458 stats.rtp_stats.transmitted.header_bytes = 3;
3461 stats.rtp_stats.transmitted.padding_bytes = 4; 3459 stats.rtp_stats.transmitted.padding_bytes = 4;
3462 stats.rtp_stats.transmitted.packets = 5; 3460 stats.rtp_stats.transmitted.packets = 5;
3463 stats.rtcp_stats.cumulative_lost = 6; 3461 stats.rtcp_stats.cumulative_lost = 6;
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
4249 } 4247 }
4250 4248
4251 TEST_F(WebRtcVideoChannel2SimulcastTest, SetSendCodecsForSimulcastScreenshare) { 4249 TEST_F(WebRtcVideoChannel2SimulcastTest, SetSendCodecsForSimulcastScreenshare) {
4252 webrtc::test::ScopedFieldTrials override_field_trials_( 4250 webrtc::test::ScopedFieldTrials override_field_trials_(
4253 "WebRTC-SimulcastScreenshare/Enabled/"); 4251 "WebRTC-SimulcastScreenshare/Enabled/");
4254 VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 2, true, 4252 VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 2, true,
4255 true); 4253 true);
4256 } 4254 }
4257 4255
4258 } // namespace cricket 4256 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvideoengine2.cc ('k') | webrtc/modules/video_coding/codecs/test/videoprocessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698