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

Side by Side Diff: webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestSenderReceiver.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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 throw "_rtp->RegisterIncomingRTPCallback"; 120 throw "_rtp->RegisterIncomingRTPCallback";
121 exit(1); 121 exit(1);
122 } 122 }
123 123
124 if (_rtp->RegisterIncomingDataCallback(this) != 0) 124 if (_rtp->RegisterIncomingDataCallback(this) != 0)
125 { 125 {
126 throw "_rtp->RegisterIncomingRTPCallback"; 126 throw "_rtp->RegisterIncomingRTPCallback";
127 exit(1); 127 exit(1);
128 } 128 }
129 129
130 if (_rtp->SetRTCPStatus(kRtcpNonCompound) != 0) 130 if (_rtp->SetRTCPStatus(RtcpMode::kReducedSize) != 0) {
131 {
132 throw "_rtp->SetRTCPStatus"; 131 throw "_rtp->SetRTCPStatus";
133 exit(1); 132 exit(1);
134 } 133 }
135 134
136 if (_rtp->SetTMMBRStatus(true) != 0) 135 if (_rtp->SetTMMBRStatus(true) != 0)
137 { 136 {
138 throw "_rtp->SetTMMBRStatus"; 137 throw "_rtp->SetTMMBRStatus";
139 exit(1); 138 exit(1);
140 } 139 }
141 140
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 throw "_rtp->RegisterSendPayload"; 335 throw "_rtp->RegisterSendPayload";
337 exit(1); 336 exit(1);
338 } 337 }
339 338
340 if (_rtp->RegisterIncomingVideoCallback(this) != 0) 339 if (_rtp->RegisterIncomingVideoCallback(this) != 0)
341 { 340 {
342 throw "_rtp->RegisterIncomingVideoCallback"; 341 throw "_rtp->RegisterIncomingVideoCallback";
343 exit(1); 342 exit(1);
344 } 343 }
345 344
346 if (_rtp->SetRTCPStatus(kRtcpNonCompound) != 0) 345 if (_rtp->SetRTCPStatus(RtcpMode::kReducedSize) != 0) {
347 {
348 throw "_rtp->SetRTCPStatus"; 346 throw "_rtp->SetRTCPStatus";
349 exit(1); 347 exit(1);
350 } 348 }
351 349
352 if (_rtp->SetSendBitrate(startBitrateKbps*1000, 0, MAX_BITRATE_KBPS) != 0) 350 if (_rtp->SetSendBitrate(startBitrateKbps*1000, 0, MAX_BITRATE_KBPS) != 0)
353 { 351 {
354 throw "_rtp->SetSendBitrate"; 352 throw "_rtp->SetSendBitrate";
355 exit(1); 353 exit(1);
356 } 354 }
357 355
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 402
405 if (_sendRecCB) 403 if (_sendRecCB)
406 { 404 {
407 _sendRecCB->OnOnNetworkChanged(maxBitrateBps, 405 _sendRecCB->OnOnNetworkChanged(maxBitrateBps,
408 fractionLost, 406 fractionLost,
409 roundTripTimeMs, 407 roundTripTimeMs,
410 bwEstimateKbitMin, 408 bwEstimateKbitMin,
411 bwEstimateKbitMax); 409 bwEstimateKbitMax);
412 } 410 }
413 } 411 }
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc ('k') | webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698