1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_BASE_ANDROID_TEST_STATISTICS_H_
6 #define MEDIA_BASE_ANDROID_TEST_STATISTICS_H_
10 // Class that computes statistics: number of calls, minimum and maximum values.
11 // It is used for in tests PTS statistics to verify that playback did actually
17 Minimax() : num_values_(0) {}
20 void AddValue(const T
& value
) {
23 else if (value
< min_
)
25 else if (max_
< value
)
37 const T
& min() const { return min_
; }
38 const T
& max() const { return max_
; }
39 int num_values() const { return num_values_
; }
49 #endif // MEDIA_BASE_ANDROID_TEST_STATISTICS_H_