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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/packet_sender.cc

Issue 2779893004: Reland of Log created probe clusters to RtcEventLog. (Closed)
Patch Set: Dependency fix. Created 3 years, 8 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/modules/pacing/paced_sender_unittest.cc ('k') | no next file » | 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 RecordBitrate(); 149 RecordBitrate();
150 } 150 }
151 151
152 uint32_t VideoSender::TargetBitrateKbps() { 152 uint32_t VideoSender::TargetBitrateKbps() {
153 return (source_->bits_per_second() + 500) / 1000; 153 return (source_->bits_per_second() + 500) / 1000;
154 } 154 }
155 155
156 PacedVideoSender::PacedVideoSender(PacketProcessorListener* listener, 156 PacedVideoSender::PacedVideoSender(PacketProcessorListener* listener,
157 VideoSource* source, 157 VideoSource* source,
158 BandwidthEstimatorType estimator) 158 BandwidthEstimatorType estimator)
159 : VideoSender(listener, source, estimator), 159 : VideoSender(listener, source, estimator), pacer_(&clock_, this, nullptr) {
160 pacer_(&clock_, this) {
161 modules_.push_back(&pacer_); 160 modules_.push_back(&pacer_);
162 pacer_.SetEstimatedBitrate(source->bits_per_second()); 161 pacer_.SetEstimatedBitrate(source->bits_per_second());
163 } 162 }
164 163
165 PacedVideoSender::~PacedVideoSender() { 164 PacedVideoSender::~PacedVideoSender() {
166 for (Packet* packet : pacer_queue_) 165 for (Packet* packet : pacer_queue_)
167 delete packet; 166 delete packet;
168 for (Packet* packet : queue_) 167 for (Packet* packet : queue_)
169 delete packet; 168 delete packet;
170 } 169 }
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 RecordBitrate(); 478 RecordBitrate();
480 } 479 }
481 480
482 uint32_t TcpSender::TargetBitrateKbps() { 481 uint32_t TcpSender::TargetBitrateKbps() {
483 return bitrate_kbps_; 482 return bitrate_kbps_;
484 } 483 }
485 484
486 } // namespace bwe 485 } // namespace bwe
487 } // namespace testing 486 } // namespace testing
488 } // namespace webrtc 487 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/pacing/paced_sender_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698