OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/testing/HistogramTester.h" | 5 #include "platform/testing/HistogramTester.h" |
6 | 6 |
7 #include "base/test/histogram_tester.h" | 7 #include "base/test/histogram_tester.h" |
8 #include "platform/wtf/PtrUtil.h" | 8 #include "platform/wtf/PtrUtil.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 15 matching lines...) Expand all Loading... |
26 base::HistogramBase::Sample sample, | 26 base::HistogramBase::Sample sample, |
27 base::HistogramBase::Count count) const { | 27 base::HistogramBase::Count count) const { |
28 histogram_tester_->ExpectBucketCount(name, sample, count); | 28 histogram_tester_->ExpectBucketCount(name, sample, count); |
29 } | 29 } |
30 | 30 |
31 void HistogramTester::ExpectTotalCount(const std::string& name, | 31 void HistogramTester::ExpectTotalCount(const std::string& name, |
32 base::HistogramBase::Count count) const { | 32 base::HistogramBase::Count count) const { |
33 histogram_tester_->ExpectTotalCount(name, count); | 33 histogram_tester_->ExpectTotalCount(name, count); |
34 } | 34 } |
35 | 35 |
| 36 base::HistogramBase::Count HistogramTester::GetBucketCount( |
| 37 const std::string& name, |
| 38 base::HistogramBase::Sample sample) const { |
| 39 return histogram_tester_->GetBucketCount(name, sample); |
| 40 } |
| 41 |
36 } // namespace blink | 42 } // namespace blink |
OLD | NEW |