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 "wtf/PtrUtil.h" | 8 #include "wtf/PtrUtil.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 HistogramTester::HistogramTester() : m_histogramTester(wrapUnique(new base::Hist
ogramTester)) { } | 12 HistogramTester::HistogramTester() : m_histogramTester(wrapUnique(new base::Hist
ogramTester)) { } |
13 | 13 |
14 HistogramTester::~HistogramTester() { } | 14 HistogramTester::~HistogramTester() { } |
15 | 15 |
16 void HistogramTester::expectUniqueSample(const std::string& name, base::Histogra
mBase::Sample sample, base::HistogramBase::Count count) const | 16 void HistogramTester::expectUniqueSample(const std::string& name, base::Histogra
mBase::Sample sample, base::HistogramBase::Count count) const |
17 { | 17 { |
18 m_histogramTester->ExpectUniqueSample(name, sample, count); | 18 m_histogramTester->ExpectUniqueSample(name, sample, count); |
19 } | 19 } |
20 | 20 |
| 21 void HistogramTester::expectBucketCount(const std::string& name, base::Histogram
Base::Sample sample, base::HistogramBase::Count count) const |
| 22 { |
| 23 m_histogramTester->ExpectBucketCount(name, sample, count); |
| 24 } |
| 25 |
21 void HistogramTester::expectTotalCount(const std::string& name, base::HistogramB
ase::Count count) const | 26 void HistogramTester::expectTotalCount(const std::string& name, base::HistogramB
ase::Count count) const |
22 { | 27 { |
23 m_histogramTester->ExpectTotalCount(name, count); | 28 m_histogramTester->ExpectTotalCount(name, count); |
24 } | 29 } |
25 | 30 |
26 } // namespace blink | 31 } // namespace blink |
OLD | NEW |