| OLD | NEW |
| 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 |
| 11 #include "webrtc/modules/remote_bitrate_estimator/test/packet_sender.h" | 11 #include "webrtc/modules/remote_bitrate_estimator/test/packet_sender.h" |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <list> | 14 #include <list> |
| 15 #include <sstream> | 15 #include <sstream> |
| 16 | 16 |
| 17 #include "webrtc/base/checks.h" |
| 17 #include "webrtc/modules/include/module_common_types.h" | 18 #include "webrtc/modules/include/module_common_types.h" |
| 18 #include "webrtc/modules/remote_bitrate_estimator/test/bwe.h" | 19 #include "webrtc/modules/remote_bitrate_estimator/test/bwe.h" |
| 19 #include "webrtc/modules/remote_bitrate_estimator/test/metric_recorder.h" | 20 #include "webrtc/modules/remote_bitrate_estimator/test/metric_recorder.h" |
| 20 #include "webrtc/rtc_base/checks.h" | |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 namespace testing { | 23 namespace testing { |
| 24 namespace bwe { | 24 namespace bwe { |
| 25 | 25 |
| 26 void PacketSender::Pause() { | 26 void PacketSender::Pause() { |
| 27 running_ = false; | 27 running_ = false; |
| 28 if (metric_recorder_ != nullptr) { | 28 if (metric_recorder_ != nullptr) { |
| 29 metric_recorder_->PauseFlow(); | 29 metric_recorder_->PauseFlow(); |
| 30 } | 30 } |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 RecordBitrate(); | 478 RecordBitrate(); |
| 479 } | 479 } |
| 480 | 480 |
| 481 uint32_t TcpSender::TargetBitrateKbps() { | 481 uint32_t TcpSender::TargetBitrateKbps() { |
| 482 return bitrate_kbps_; | 482 return bitrate_kbps_; |
| 483 } | 483 } |
| 484 | 484 |
| 485 } // namespace bwe | 485 } // namespace bwe |
| 486 } // namespace testing | 486 } // namespace testing |
| 487 } // namespace webrtc | 487 } // namespace webrtc |
| OLD | NEW |