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

Side by Side Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api.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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 EXPECT_EQ(0, module_->SetTransportOverhead(false, false, 0)); 132 EXPECT_EQ(0, module_->SetTransportOverhead(false, false, 0));
133 EXPECT_EQ(1234 - 20 - 8, module_->MaxPayloadLength()); 133 EXPECT_EQ(1234 - 20 - 8, module_->MaxPayloadLength());
134 } 134 }
135 135
136 TEST_F(RtpRtcpAPITest, SSRC) { 136 TEST_F(RtpRtcpAPITest, SSRC) {
137 module_->SetSSRC(test_ssrc_); 137 module_->SetSSRC(test_ssrc_);
138 EXPECT_EQ(test_ssrc_, module_->SSRC()); 138 EXPECT_EQ(test_ssrc_, module_->SSRC());
139 } 139 }
140 140
141 TEST_F(RtpRtcpAPITest, RTCP) { 141 TEST_F(RtpRtcpAPITest, RTCP) {
142 EXPECT_EQ(kRtcpOff, module_->RTCP()); 142 EXPECT_EQ(RtcpMode::kOff, module_->RTCP());
143 module_->SetRTCPStatus(kRtcpCompound); 143 module_->SetRTCPStatus(RtcpMode::kCompound);
144 EXPECT_EQ(kRtcpCompound, module_->RTCP()); 144 EXPECT_EQ(RtcpMode::kCompound, module_->RTCP());
145 145
146 EXPECT_EQ(0, module_->SetCNAME("john.doe@test.test")); 146 EXPECT_EQ(0, module_->SetCNAME("john.doe@test.test"));
147 147
148 EXPECT_FALSE(module_->TMMBR()); 148 EXPECT_FALSE(module_->TMMBR());
149 module_->SetTMMBRStatus(true); 149 module_->SetTMMBRStatus(true);
150 EXPECT_TRUE(module_->TMMBR()); 150 EXPECT_TRUE(module_->TMMBR());
151 module_->SetTMMBRStatus(false); 151 module_->SetTMMBRStatus(false);
152 EXPECT_FALSE(module_->TMMBR()); 152 EXPECT_FALSE(module_->TMMBR());
153 153
154 EXPECT_EQ(kNackOff, rtp_receiver_->NACK()); 154 EXPECT_EQ(kNackOff, rtp_receiver_->NACK());
(...skipping 23 matching lines...) Expand all
178 RTPHeader rtx_header; 178 RTPHeader rtx_header;
179 rtx_header.ssrc = kRtxSsrc; 179 rtx_header.ssrc = kRtxSsrc;
180 rtx_header.payloadType = kRtxPayloadType; 180 rtx_header.payloadType = kRtxPayloadType;
181 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header)); 181 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header));
182 rtx_header.ssrc = 0; 182 rtx_header.ssrc = 0;
183 EXPECT_FALSE(rtp_payload_registry_->IsRtx(rtx_header)); 183 EXPECT_FALSE(rtp_payload_registry_->IsRtx(rtx_header));
184 rtx_header.ssrc = kRtxSsrc; 184 rtx_header.ssrc = kRtxSsrc;
185 rtx_header.payloadType = 0; 185 rtx_header.payloadType = 0;
186 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header)); 186 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header));
187 } 187 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698