| 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/PassOwnPtr.h" | 8 #include "wtf/PtrUtil.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 HistogramTester::HistogramTester() : m_histogramTester(adoptPtr(new base::Histog
ramTester)) { } | 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::expectTotalCount(const std::string& name, base::HistogramB
ase::Count count) const | 21 void HistogramTester::expectTotalCount(const std::string& name, base::HistogramB
ase::Count count) const |
| 22 { | 22 { |
| 23 m_histogramTester->ExpectTotalCount(name, count); | 23 m_histogramTester->ExpectTotalCount(name, count); |
| 24 } | 24 } |
| 25 | 25 |
| 26 } // namespace blink | 26 } // namespace blink |
| OLD | NEW |