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

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

Issue 1520513003: Fixed lint warnings in webrtc/modules/remote_bitrate_estimator (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Include in alphabetic order Created 5 years 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) 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 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_ 11 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_
12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_ 12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_
13 13
14 #include <list> 14 #include <list>
15 #include <limits> 15 #include <limits>
16 #include <set>
16 #include <string> 17 #include <string>
17 18
18 #include "webrtc/base/constructormagic.h" 19 #include "webrtc/base/constructormagic.h"
19 #include "webrtc/base/scoped_ptr.h" 20 #include "webrtc/base/scoped_ptr.h"
20 #include "webrtc/modules/include/module.h" 21 #include "webrtc/modules/include/module.h"
21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe.h" 22 #include "webrtc/modules/remote_bitrate_estimator/test/bwe.h"
22 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h" 23 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h"
23 24
24 namespace webrtc { 25 namespace webrtc {
25 namespace testing { 26 namespace testing {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual ~TcpSender() {} 143 virtual ~TcpSender() {}
143 144
144 void RunFor(int64_t time_ms, Packets* in_out) override; 145 void RunFor(int64_t time_ms, Packets* in_out) override;
145 int GetFeedbackIntervalMs() const override { return 10; } 146 int GetFeedbackIntervalMs() const override { return 10; }
146 147
147 uint32_t TargetBitrateKbps() override; 148 uint32_t TargetBitrateKbps() override;
148 149
149 private: 150 private:
150 struct InFlight { 151 struct InFlight {
151 public: 152 public:
152 InFlight(const MediaPacket& packet) 153 explicit InFlight(const MediaPacket& packet)
153 : sequence_number(packet.header().sequenceNumber), 154 : sequence_number(packet.header().sequenceNumber),
154 time_ms(packet.send_time_ms()) {} 155 time_ms(packet.send_time_ms()) {}
155 156
156 InFlight(uint16_t seq_num, int64_t now_ms) 157 InFlight(uint16_t seq_num, int64_t now_ms)
157 : sequence_number(seq_num), time_ms(now_ms) {} 158 : sequence_number(seq_num), time_ms(now_ms) {}
158 159
159 bool operator<(const InFlight& rhs) const { 160 bool operator<(const InFlight& rhs) const {
160 return sequence_number < rhs.sequence_number; 161 return sequence_number < rhs.sequence_number;
161 } 162 }
162 163
(...skipping 22 matching lines...) Expand all
185 int total_sent_bytes_; 186 int total_sent_bytes_;
186 int send_limit_bytes_; // Initialized by default as kNoLimit. 187 int send_limit_bytes_; // Initialized by default as kNoLimit.
187 int64_t last_generated_packets_ms_; 188 int64_t last_generated_packets_ms_;
188 size_t num_recent_sent_packets_; 189 size_t num_recent_sent_packets_;
189 uint32_t bitrate_kbps_; 190 uint32_t bitrate_kbps_;
190 }; 191 };
191 } // namespace bwe 192 } // namespace bwe
192 } // namespace testing 193 } // namespace testing
193 } // namespace webrtc 194 } // namespace webrtc
194 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_ 195 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698