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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_format_remb_unittest.cc

Issue 1373903003: Unify newapi::RtcpMode and RTCPMethod. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: ehm, compile the code Created 5 years, 2 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 TEST_F(RtcpFormatRembTest, TestRembStatus) { 109 TEST_F(RtcpFormatRembTest, TestRembStatus) {
110 EXPECT_FALSE(rtcp_sender_->REMB()); 110 EXPECT_FALSE(rtcp_sender_->REMB());
111 rtcp_sender_->SetREMBStatus(true); 111 rtcp_sender_->SetREMBStatus(true);
112 EXPECT_TRUE(rtcp_sender_->REMB()); 112 EXPECT_TRUE(rtcp_sender_->REMB());
113 rtcp_sender_->SetREMBStatus(false); 113 rtcp_sender_->SetREMBStatus(false);
114 EXPECT_FALSE(rtcp_sender_->REMB()); 114 EXPECT_FALSE(rtcp_sender_->REMB());
115 } 115 }
116 116
117 TEST_F(RtcpFormatRembTest, TestNonCompund) { 117 TEST_F(RtcpFormatRembTest, TestNonCompund) {
118 uint32_t SSRC = 456789; 118 uint32_t SSRC = 456789;
119 rtcp_sender_->SetRTCPStatus(kRtcpNonCompound); 119 rtcp_sender_->SetRTCPStatus(RtcpMode::kReducedSize);
120 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(1, SSRC)); 120 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(1, SSRC));
121 RTCPSender::FeedbackState feedback_state = 121 RTCPSender::FeedbackState feedback_state =
122 dummy_rtp_rtcp_impl_->GetFeedbackState(); 122 dummy_rtp_rtcp_impl_->GetFeedbackState();
123 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); 123 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb));
124 } 124 }
125 125
126 TEST_F(RtcpFormatRembTest, TestCompund) { 126 TEST_F(RtcpFormatRembTest, TestCompund) {
127 uint32_t SSRCs[2] = {456789, 98765}; 127 uint32_t SSRCs[2] = {456789, 98765};
128 rtcp_sender_->SetRTCPStatus(kRtcpCompound); 128 rtcp_sender_->SetRTCPStatus(RtcpMode::kCompound);
129 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(SSRCs, SSRCs + 2)); 129 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(SSRCs, SSRCs + 2));
130 RTCPSender::FeedbackState feedback_state = 130 RTCPSender::FeedbackState feedback_state =
131 dummy_rtp_rtcp_impl_->GetFeedbackState(); 131 dummy_rtp_rtcp_impl_->GetFeedbackState();
132 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); 132 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb));
133 } 133 }
134 } // namespace 134 } // namespace
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtcp_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698