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

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: Ilya's initial comments 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 allowing the MessageLoop
11 // to be fully run by calling |FetchTestingSnapshot| before executing the
12 // histogram tests.
Ilya Sherman 2014/07/16 18:44:47 More precisely, the Chrome subclass calls out to o
Mike Lerman 2014/07/16 19:36:36 I had thought half the benefit, since this is used
Ilya Sherman 2014/07/16 20:01:12 Yes, this is the entire benefit. However, the oth
13 class ChromeHistogramTester : public base::HistogramTester {
14 public:
15 // ChromeHistogramTester should be created before the execution of the test
16 // case.
17 ChromeHistogramTester();
18
19 ~ChromeHistogramTester();
20
21 // Fetch the values to be tested. This must be called after the test code has
22 // been executed but before performing the necessary assertions. This may be
23 // called multiple times.
24 void FetchTestingSnapshot();
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(ChromeHistogramTester);
28 };
29
30 #endif // CHROME_TEST_BASE_CHROME_HISTOGRAM_TESTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698