OLD | NEW |
---|---|
(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_ | |
OLD | NEW |