| 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 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 private: | 102 private: |
| 103 // Pop oldest element from the back of the list and remove it from the map. | 103 // Pop oldest element from the back of the list and remove it from the map. |
| 104 void RemoveTail(); | 104 void RemoveTail(); |
| 105 // Add new element to the front of the list and insert it in the map. | 105 // Add new element to the front of the list and insert it in the map. |
| 106 void UpdateHead(PacketIdentifierNode* new_head); | 106 void UpdateHead(PacketIdentifierNode* new_head); |
| 107 size_t capacity_; | 107 size_t capacity_; |
| 108 std::map<uint16_t, PacketNodeIt, SequenceNumberOlderThan> map_; | 108 std::map<uint16_t, PacketNodeIt, SequenceNumberOlderThan> map_; |
| 109 std::list<PacketIdentifierNode*> list_; | 109 std::list<PacketIdentifierNode*> list_; |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 const int kMinBitrateKbps = 50; | 112 const int kMinBitrateKbps = 10; |
| 113 const int kMaxBitrateKbps = 2500; | 113 const int kMaxBitrateKbps = 2500; |
| 114 | 114 |
| 115 class BweSender : public Module { | 115 class BweSender : public Module { |
| 116 public: | 116 public: |
| 117 BweSender() {} | 117 BweSender() {} |
| 118 explicit BweSender(int bitrate_kbps) : bitrate_kbps_(bitrate_kbps) {} | 118 explicit BweSender(int bitrate_kbps) : bitrate_kbps_(bitrate_kbps) {} |
| 119 virtual ~BweSender() {} | 119 virtual ~BweSender() {} |
| 120 | 120 |
| 121 virtual int GetFeedbackIntervalMs() const = 0; | 121 virtual int GetFeedbackIntervalMs() const = 0; |
| 122 virtual void GiveFeedback(const FeedbackPacket& feedback) = 0; | 122 virtual void GiveFeedback(const FeedbackPacket& feedback) = 0; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 BitrateObserver* observer, | 189 BitrateObserver* observer, |
| 190 Clock* clock); | 190 Clock* clock); |
| 191 | 191 |
| 192 BweReceiver* CreateBweReceiver(BandwidthEstimatorType type, | 192 BweReceiver* CreateBweReceiver(BandwidthEstimatorType type, |
| 193 int flow_id, | 193 int flow_id, |
| 194 bool plot); | 194 bool plot); |
| 195 } // namespace bwe | 195 } // namespace bwe |
| 196 } // namespace testing | 196 } // namespace testing |
| 197 } // namespace webrtc | 197 } // namespace webrtc |
| 198 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_H_ | 198 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_H_ |
| OLD | NEW |