| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SUSTAINED_BANDWIDTH_RECORDER_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SUSTAINED_BANDWIDTH_RECORDER_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_SUSTAINED_BANDWIDTH_RECORDER_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_SUSTAINED_BANDWIDTH_RECORDER_PEER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "net/quic/quic_protocol.h" | 11 #include "net/quic/quic_protocol.h" |
| 9 | 12 |
| 10 namespace net { | 13 namespace net { |
| 11 | 14 |
| 12 class QuicSustainedBandwidthRecorder; | 15 class QuicSustainedBandwidthRecorder; |
| 13 | 16 |
| 14 namespace test { | 17 namespace test { |
| 15 | 18 |
| 16 class QuicSustainedBandwidthRecorderPeer { | 19 class QuicSustainedBandwidthRecorderPeer { |
| 17 public: | 20 public: |
| 18 static void SetBandwidthEstimate( | 21 static void SetBandwidthEstimate( |
| 19 QuicSustainedBandwidthRecorder* bandwidth_recorder, | 22 QuicSustainedBandwidthRecorder* bandwidth_recorder, |
| 20 int32 bandwidth_estimate_kbytes_per_second); | 23 int32_t bandwidth_estimate_kbytes_per_second); |
| 21 | 24 |
| 22 static void SetMaxBandwidthEstimate( | 25 static void SetMaxBandwidthEstimate( |
| 23 QuicSustainedBandwidthRecorder* bandwidth_recorder, | 26 QuicSustainedBandwidthRecorder* bandwidth_recorder, |
| 24 int32 max_bandwidth_estimate_kbytes_per_second, | 27 int32_t max_bandwidth_estimate_kbytes_per_second, |
| 25 int32 max_bandwidth_timestamp); | 28 int32_t max_bandwidth_timestamp); |
| 26 | 29 |
| 27 private: | 30 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(QuicSustainedBandwidthRecorderPeer); | 31 DISALLOW_COPY_AND_ASSIGN(QuicSustainedBandwidthRecorderPeer); |
| 29 }; | 32 }; |
| 30 | 33 |
| 31 } // namespace test | 34 } // namespace test |
| 32 } // namespace net | 35 } // namespace net |
| 33 | 36 |
| 34 #endif // NET_QUIC_TEST_TOOLS_QUIC_SUSTAINED_BANDWIDTH_RECORDER_PEER_H_ | 37 #endif // NET_QUIC_TEST_TOOLS_QUIC_SUSTAINED_BANDWIDTH_RECORDER_PEER_H_ |
| OLD | NEW |