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

Side by Side Diff: chrome/test/base/chrome_histogram_tester.h

Issue 379283002: Rework UMAHistogramHelper and StatisticsDeltaReader into [Chrome]HistogramTester. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Git cl format Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_BASE_CHROME_HISTOGRAM_TESTER_H_
6 #define CHROME_TEST_BASE_CHROME_HISTOGRAM_TESTER_H_
7
8 #include "base/test/histogram_tester.h"
9
10 // ChromeHistogramTester extends the base class by gathering in histogram data
11 // from all other processes before performing assertions.
Ilya Sherman 2014/07/16 20:01:13 IMO, it would be better to move this comment to be
Mike Lerman 2014/07/17 15:04:18 Done.
12 class ChromeHistogramTester : public base::HistogramTester {
13 public:
14 // ChromeHistogramTester should be created before the execution of the test
15 // case.
16 ChromeHistogramTester();
17
Ilya Sherman 2014/07/16 20:01:13 Optional nit: I'd omit this blank line.
Mike Lerman 2014/07/17 15:04:18 Ya, the standard seems to be constructor-destructo
18 ~ChromeHistogramTester();
19
20 // Fetch the values to be tested. This must be called after the test code has
21 // been executed but before performing the necessary assertions. This may be
22 // called multiple times.
23 void FetchTestingSnapshot();
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(ChromeHistogramTester);
27 };
28
29 #endif // CHROME_TEST_BASE_CHROME_HISTOGRAM_TESTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698