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

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

Issue 2290733002: Add new UseCounter metric (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make diff prettier Created 4 years, 3 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 #ifndef HistogramTester_h 5 #ifndef HistogramTester_h
6 #define HistogramTester_h 6 #define HistogramTester_h
7 7
8 #include "platform/Histogram.h" 8 #include "platform/Histogram.h"
9 #include <memory> 9 #include <memory>
10 10
11 namespace base { 11 namespace base {
12 class HistogramTester; 12 class HistogramTester;
13 } 13 }
14 14
15 namespace blink { 15 namespace blink {
16 16
17 // Blink interface for base::HistogramTester. 17 // Blink interface for base::HistogramTester.
18 class HistogramTester { 18 class HistogramTester {
19 public: 19 public:
20 HistogramTester(); 20 HistogramTester();
21 ~HistogramTester(); 21 ~HistogramTester();
22 22
23 void expectUniqueSample(const std::string& name, base::HistogramBase::Sample , base::HistogramBase::Count) const; 23 void expectUniqueSample(const std::string& name, base::HistogramBase::Sample , base::HistogramBase::Count) const;
24 void expectBucketCount(const std::string& name, base::HistogramBase::Sample, base::HistogramBase::Count) const;
24 void expectTotalCount(const std::string& name, base::HistogramBase::Count) c onst; 25 void expectTotalCount(const std::string& name, base::HistogramBase::Count) c onst;
25 26
26 private: 27 private:
27 std::unique_ptr<base::HistogramTester> m_histogramTester; 28 std::unique_ptr<base::HistogramTester> m_histogramTester;
28 }; 29 };
29 30
30 } // namespace blink 31 } // namespace blink
31 32
32 #endif // HistogramTester_h 33 #endif // HistogramTester_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698