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

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

Issue 2992043002: Renamed fields in common_types.h/RtcpStatistics. (Closed)
Patch Set: Rebase on new master Created 3 years, 4 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 3691 matching lines...) Expand 10 before | Expand all | Expand 10 after
3702 EXPECT_EQ(stats.qp_sum, info.receivers[0].qp_sum); 3702 EXPECT_EQ(stats.qp_sum, info.receivers[0].qp_sum);
3703 } 3703 }
3704 3704
3705 TEST_F(WebRtcVideoChannelTest, GetStatsTranslatesReceivePacketStatsCorrectly) { 3705 TEST_F(WebRtcVideoChannelTest, GetStatsTranslatesReceivePacketStatsCorrectly) {
3706 FakeVideoReceiveStream* stream = AddRecvStream(); 3706 FakeVideoReceiveStream* stream = AddRecvStream();
3707 webrtc::VideoReceiveStream::Stats stats; 3707 webrtc::VideoReceiveStream::Stats stats;
3708 stats.rtp_stats.transmitted.payload_bytes = 2; 3708 stats.rtp_stats.transmitted.payload_bytes = 2;
3709 stats.rtp_stats.transmitted.header_bytes = 3; 3709 stats.rtp_stats.transmitted.header_bytes = 3;
3710 stats.rtp_stats.transmitted.padding_bytes = 4; 3710 stats.rtp_stats.transmitted.padding_bytes = 4;
3711 stats.rtp_stats.transmitted.packets = 5; 3711 stats.rtp_stats.transmitted.packets = 5;
3712 stats.rtcp_stats.cumulative_lost = 6; 3712 stats.rtcp_stats.packets_lost = 6;
3713 stats.rtcp_stats.fraction_lost = 7; 3713 stats.rtcp_stats.fraction_lost = 7;
3714 stream->SetStats(stats); 3714 stream->SetStats(stats);
3715 3715
3716 cricket::VideoMediaInfo info; 3716 cricket::VideoMediaInfo info;
3717 ASSERT_TRUE(channel_->GetStats(&info)); 3717 ASSERT_TRUE(channel_->GetStats(&info));
3718 EXPECT_EQ(stats.rtp_stats.transmitted.payload_bytes + 3718 EXPECT_EQ(stats.rtp_stats.transmitted.payload_bytes +
3719 stats.rtp_stats.transmitted.header_bytes + 3719 stats.rtp_stats.transmitted.header_bytes +
3720 stats.rtp_stats.transmitted.padding_bytes, 3720 stats.rtp_stats.transmitted.padding_bytes,
3721 info.receivers[0].bytes_rcvd); 3721 info.receivers[0].bytes_rcvd);
3722 EXPECT_EQ(stats.rtp_stats.transmitted.packets, 3722 EXPECT_EQ(stats.rtp_stats.transmitted.packets,
3723 info.receivers[0].packets_rcvd); 3723 info.receivers[0].packets_rcvd);
3724 EXPECT_EQ(stats.rtcp_stats.cumulative_lost, info.receivers[0].packets_lost); 3724 EXPECT_EQ(stats.rtcp_stats.packets_lost, info.receivers[0].packets_lost);
3725 EXPECT_EQ(static_cast<float>(stats.rtcp_stats.fraction_lost) / (1 << 8), 3725 EXPECT_EQ(static_cast<float>(stats.rtcp_stats.fraction_lost) / (1 << 8),
3726 info.receivers[0].fraction_lost); 3726 info.receivers[0].fraction_lost);
3727 } 3727 }
3728 3728
3729 TEST_F(WebRtcVideoChannelTest, TranslatesCallStatsCorrectly) { 3729 TEST_F(WebRtcVideoChannelTest, TranslatesCallStatsCorrectly) {
3730 AddSendStream(); 3730 AddSendStream();
3731 AddSendStream(); 3731 AddSendStream();
3732 webrtc::Call::Stats stats; 3732 webrtc::Call::Stats stats;
3733 stats.rtt_ms = 123; 3733 stats.rtt_ms = 123;
3734 fake_call_->SetStats(stats); 3734 fake_call_->SetStats(stats);
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
4681 4681
4682 TEST_F(WebRtcVideoChannelSimulcastTest, 4682 TEST_F(WebRtcVideoChannelSimulcastTest,
4683 NoSimulcastScreenshareWithoutConference) { 4683 NoSimulcastScreenshareWithoutConference) {
4684 webrtc::test::ScopedFieldTrials override_field_trials_( 4684 webrtc::test::ScopedFieldTrials override_field_trials_(
4685 "WebRTC-SimulcastScreenshare/Enabled/"); 4685 "WebRTC-SimulcastScreenshare/Enabled/");
4686 VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 1, true, 4686 VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 1, true,
4687 false); 4687 false);
4688 } 4688 }
4689 4689
4690 } // namespace cricket 4690 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvideoengine.cc ('k') | webrtc/modules/audio_coding/neteq/neteq_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698