| Index: webrtc/base/ratetracker.h
|
| diff --git a/webrtc/base/ratetracker.h b/webrtc/base/ratetracker.h
|
| index 6ae9bec119d23552c6f967416ad897af81741ffa..9d86b6ad668193fe2288544eea87333ce0bb81d7 100644
|
| --- a/webrtc/base/ratetracker.h
|
| +++ b/webrtc/base/ratetracker.h
|
| @@ -27,25 +27,22 @@ class RateTracker {
|
| // Computes the average rate over the most recent interval_milliseconds,
|
| // or if the first sample was added within this period, computes the rate
|
| // since the first sample was added.
|
| - double ComputeRateForInterval(int64_t interval_milliseconds) const;
|
| + virtual double ComputeRateForInterval(int64_t interval_milliseconds) const;
|
|
|
| // Computes the average rate over the rate tracker's recording interval
|
| // of bucket_milliseconds * bucket_count.
|
| - double ComputeRate() const {
|
| - return ComputeRateForInterval(bucket_milliseconds_ *
|
| - static_cast<int64_t>(bucket_count_));
|
| - }
|
| + virtual double ComputeRate() const;
|
|
|
| // Computes the average rate since the first sample was added to the
|
| // rate tracker.
|
| - double ComputeTotalRate() const;
|
| + virtual double ComputeTotalRate() const;
|
|
|
| // The total number of samples added.
|
| - size_t TotalSampleCount() const;
|
| + virtual size_t TotalSampleCount() const;
|
|
|
| // Reads the current time in order to determine the appropriate bucket for
|
| // these samples, and increments the count for that bucket by sample_count.
|
| - void AddSamples(size_t sample_count);
|
| + virtual void AddSamples(size_t sample_count);
|
|
|
| protected:
|
| // overrideable for tests
|
|
|