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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 protected: | 50 protected: |
51 void UpdateMetrics(int64_t arrival_time_ms, | 51 void UpdateMetrics(int64_t arrival_time_ms, |
52 int64_t send_time_ms, | 52 int64_t send_time_ms, |
53 size_t payload_size); | 53 size_t payload_size); |
54 | 54 |
55 Stats<double> delay_stats_; | 55 Stats<double> delay_stats_; |
56 rtc::scoped_ptr<BweReceiver> bwe_receiver_; | 56 rtc::scoped_ptr<BweReceiver> bwe_receiver_; |
57 | 57 |
58 private: | 58 private: |
| 59 void PlotDelay(int64_t arrival_time_ms, int64_t send_time_ms); |
59 MetricRecorder* metric_recorder_; | 60 MetricRecorder* metric_recorder_; |
| 61 bool plot_delay_; // Used in case there isn't a metric recorder. |
| 62 int64_t last_delay_plot_ms_; |
| 63 std::string delay_prefix_; |
| 64 BandwidthEstimatorType bwe_type_; |
60 | 65 |
61 DISALLOW_IMPLICIT_CONSTRUCTORS(PacketReceiver); | 66 DISALLOW_IMPLICIT_CONSTRUCTORS(PacketReceiver); |
62 }; | 67 }; |
63 } // namespace bwe | 68 } // namespace bwe |
64 } // namespace testing | 69 } // namespace testing |
65 } // namespace webrtc | 70 } // namespace webrtc |
66 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_RECEIVER_H_ | 71 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_RECEIVER_H_ |
OLD | NEW |