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

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

Issue 2796283005: Adding UseCounter specific for extensions (Closed)
Patch Set: Fix compile err Created 3 years, 7 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 "platform/wtf/PtrUtil.h" 8 #include "platform/wtf/PtrUtil.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 15 matching lines...) Expand all
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
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