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

Side by Side Diff: webrtc/call/rtc_event_log_unittest.cc

Issue 2131913003: Revert of Refactor NACK bitrate allocation (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « webrtc/base/rate_statistics.cc ('k') | webrtc/common_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 RTPSender rtp_sender(false, // bool audio 115 RTPSender rtp_sender(false, // bool audio
116 clock, // Clock* clock 116 clock, // Clock* clock
117 nullptr, // Transport* 117 nullptr, // Transport*
118 nullptr, // PacedSender* 118 nullptr, // PacedSender*
119 nullptr, // PacketRouter* 119 nullptr, // PacketRouter*
120 nullptr, // SendTimeObserver* 120 nullptr, // SendTimeObserver*
121 nullptr, // BitrateStatisticsObserver* 121 nullptr, // BitrateStatisticsObserver*
122 nullptr, // FrameCountObserver* 122 nullptr, // FrameCountObserver*
123 nullptr, // SendSideDelayObserver* 123 nullptr, // SendSideDelayObserver*
124 nullptr, // RtcEventLog* 124 nullptr, // RtcEventLog*
125 nullptr, // SendPacketObserver* 125 nullptr); // SendPacketObserver*
126 nullptr); // NackRateLimiter*
127 126
128 std::vector<uint32_t> csrcs; 127 std::vector<uint32_t> csrcs;
129 for (unsigned i = 0; i < csrcs_count; i++) { 128 for (unsigned i = 0; i < csrcs_count; i++) {
130 csrcs.push_back(prng->Rand<uint32_t>()); 129 csrcs.push_back(prng->Rand<uint32_t>());
131 } 130 }
132 rtp_sender.SetCsrcs(csrcs); 131 rtp_sender.SetCsrcs(csrcs);
133 rtp_sender.SetSSRC(prng->Rand<uint32_t>()); 132 rtp_sender.SetSSRC(prng->Rand<uint32_t>());
134 rtp_sender.SetStartTimestamp(prng->Rand<uint32_t>(), true); 133 rtp_sender.SetStartTimestamp(prng->Rand<uint32_t>(), true);
135 rtp_sender.SetSequenceNumber(prng->Rand<uint16_t>()); 134 rtp_sender.SetSequenceNumber(prng->Rand<uint16_t>());
136 135
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 rtcp_packet.size()); 471 rtcp_packet.size());
473 472
474 RtcEventLogTestHelper::VerifyLogEndEvent(parsed_log, 3); 473 RtcEventLogTestHelper::VerifyLogEndEvent(parsed_log, 3);
475 474
476 // Clean up temporary file - can be pretty slow. 475 // Clean up temporary file - can be pretty slow.
477 remove(temp_filename.c_str()); 476 remove(temp_filename.c_str());
478 } 477 }
479 } // namespace webrtc 478 } // namespace webrtc
480 479
481 #endif // ENABLE_RTC_EVENT_LOG 480 #endif // ENABLE_RTC_EVENT_LOG
OLDNEW
« no previous file with comments | « webrtc/base/rate_statistics.cc ('k') | webrtc/common_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698