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

Side by Side Diff: third_party/WebKit/Source/platform/testing/HistogramTester.cpp

Issue 1827793004: Add initial UMA metrics for ScrollAnchoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase master Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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/PassOwnPtr.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(adoptPtr(new base::Histog ramTester)) { }
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
22 {
23 m_histogramTester->ExpectTotalCount(name, count);
24 }
25
21 } // namespace blink 26 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/testing/HistogramTester.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698