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 #include "base/test/histogram_tester.h" | 5 #include "base/test/histogram_tester.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
8 #include "base/metrics/histogram_samples.h" | 10 #include "base/metrics/histogram_samples.h" |
9 #include "base/metrics/metrics_hashes.h" | 11 #include "base/metrics/metrics_hashes.h" |
10 #include "base/metrics/sample_map.h" | 12 #include "base/metrics/sample_map.h" |
11 #include "base/metrics/statistics_recorder.h" | 13 #include "base/metrics/statistics_recorder.h" |
12 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
14 | 16 |
15 namespace base { | 17 namespace base { |
16 | 18 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 171 |
170 bool Bucket::operator==(const Bucket& other) const { | 172 bool Bucket::operator==(const Bucket& other) const { |
171 return min == other.min && count == other.count; | 173 return min == other.min && count == other.count; |
172 } | 174 } |
173 | 175 |
174 void PrintTo(const Bucket& bucket, std::ostream* os) { | 176 void PrintTo(const Bucket& bucket, std::ostream* os) { |
175 *os << "Bucket " << bucket.min << ": " << bucket.count; | 177 *os << "Bucket " << bucket.min << ": " << bucket.count; |
176 } | 178 } |
177 | 179 |
178 } // namespace base | 180 } // namespace base |
OLD | NEW |