OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 PacketProcessorListener* listener_; | 245 PacketProcessorListener* listener_; |
246 const FlowIds flow_ids_; | 246 const FlowIds flow_ids_; |
247 | 247 |
248 DISALLOW_COPY_AND_ASSIGN(PacketProcessor); | 248 DISALLOW_COPY_AND_ASSIGN(PacketProcessor); |
249 }; | 249 }; |
250 | 250 |
251 class RateCounterFilter : public PacketProcessor { | 251 class RateCounterFilter : public PacketProcessor { |
252 public: | 252 public: |
253 RateCounterFilter(PacketProcessorListener* listener, | 253 RateCounterFilter(PacketProcessorListener* listener, |
254 int flow_id, | 254 int flow_id, |
255 const char* name); | 255 const char* name, |
256 RateCounterFilter(PacketProcessorListener* listener, | 256 const std::string& plot_name); |
257 const FlowIds& flow_ids, | |
258 const char* name); | |
259 RateCounterFilter(PacketProcessorListener* listener, | 257 RateCounterFilter(PacketProcessorListener* listener, |
260 const FlowIds& flow_ids, | 258 const FlowIds& flow_ids, |
261 const char* name, | 259 const char* name, |
262 int64_t start_plotting_time_ms); | 260 const std::string& plot_name); |
| 261 RateCounterFilter(PacketProcessorListener* listener, |
| 262 const FlowIds& flow_ids, |
| 263 const char* name, |
| 264 int64_t start_plotting_time_ms, |
| 265 const std::string& plot_name); |
263 virtual ~RateCounterFilter(); | 266 virtual ~RateCounterFilter(); |
264 | 267 |
265 void LogStats(); | 268 void LogStats(); |
266 Stats<double> GetBitrateStats() const; | 269 Stats<double> GetBitrateStats() const; |
267 virtual void Plot(int64_t timestamp_ms); | 270 virtual void Plot(int64_t timestamp_ms); |
268 virtual void RunFor(int64_t time_ms, Packets* in_out); | 271 virtual void RunFor(int64_t time_ms, Packets* in_out); |
269 | 272 |
270 private: | 273 private: |
271 Stats<double> packets_per_second_stats_; | 274 Stats<double> packets_per_second_stats_; |
272 Stats<double> kbps_stats_; | 275 Stats<double> kbps_stats_; |
273 std::string name_; | 276 std::string name_; |
274 int64_t start_plotting_time_ms_; | 277 int64_t start_plotting_time_ms_; |
| 278 // Algorithm name if single flow, Total link utilization if all flows. |
| 279 std::string plot_name_; |
275 | 280 |
276 DISALLOW_IMPLICIT_CONSTRUCTORS(RateCounterFilter); | 281 DISALLOW_IMPLICIT_CONSTRUCTORS(RateCounterFilter); |
277 }; | 282 }; |
278 | 283 |
279 class LossFilter : public PacketProcessor { | 284 class LossFilter : public PacketProcessor { |
280 public: | 285 public: |
281 LossFilter(PacketProcessorListener* listener, int flow_id); | 286 LossFilter(PacketProcessorListener* listener, int flow_id); |
282 LossFilter(PacketProcessorListener* listener, const FlowIds& flow_ids); | 287 LossFilter(PacketProcessorListener* listener, const FlowIds& flow_ids); |
283 virtual ~LossFilter() {} | 288 virtual ~LossFilter() {} |
284 | 289 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 uint32_t frame_counter_; | 488 uint32_t frame_counter_; |
484 int compensation_bytes_; | 489 int compensation_bytes_; |
485 int compensation_per_frame_; | 490 int compensation_per_frame_; |
486 DISALLOW_IMPLICIT_CONSTRUCTORS(PeriodicKeyFrameSource); | 491 DISALLOW_IMPLICIT_CONSTRUCTORS(PeriodicKeyFrameSource); |
487 }; | 492 }; |
488 } // namespace bwe | 493 } // namespace bwe |
489 } // namespace testing | 494 } // namespace testing |
490 } // namespace webrtc | 495 } // namespace webrtc |
491 | 496 |
492 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_FRAMEWORK_H_ | 497 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_FRAMEWORK_H_ |
OLD | NEW |