Chromium Code Reviews| 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 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_ | |
| OLD | NEW |