Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: media/base/android/test_statistics.h

Issue 2283493003: Delete browser MSE implementation. (Closed)
Patch Set: Actually delete MSP. Cleanse references. Remove AudioTrack usage. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/android/test_statistics.h
diff --git a/media/base/android/test_statistics.h b/media/base/android/test_statistics.h
deleted file mode 100644
index 9c889b49943c42984abb1b74a1771d74c3576ba7..0000000000000000000000000000000000000000
--- a/media/base/android/test_statistics.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_BASE_ANDROID_TEST_STATISTICS_H_
-#define MEDIA_BASE_ANDROID_TEST_STATISTICS_H_
-
-namespace media {
-
-// Class that computes statistics: number of calls, minimum and maximum values.
-// It is used for in tests PTS statistics to verify that playback did actually
-// happen.
-
-template <typename T>
-class Minimax {
- public:
- Minimax() : num_values_(0) {}
- ~Minimax() {}
-
- void AddValue(const T& value) {
- if (num_values_ == 0)
- min_ = max_ = value;
- else if (value < min_)
- min_ = value;
- else if (max_ < value)
- max_ = value;
-
- ++num_values_;
- }
-
- void Clear() {
- min_ = T();
- max_ = T();
- num_values_ = 0;
- }
-
- const T& min() const { return min_; }
- const T& max() const { return max_; }
- int num_values() const { return num_values_; }
-
- private:
- T min_;
- T max_;
- int num_values_;
-};
-
-} // namespace media
-
-#endif // MEDIA_BASE_ANDROID_TEST_STATISTICS_H_

Powered by Google App Engine
This is Rietveld 408576698