Add a HistogramRecorder class and use cases.
commit3a0e3d498cdd0be4659e03dd05888b4ae15f4993
authorlpromero@chromium.org <lpromero@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 18 Jul 2013 18:50:49 +0000 (18 18:50 +0000)
committerlpromero@chromium.org <lpromero@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 18 Jul 2013 18:50:49 +0000 (18 18:50 +0000)
treeeadf56c3b27d928faf3e6f98373f6eb67bafe739
parentead7fb005dfc43c7c82aeec569377cac227c0cdb
Add a HistogramRecorder class and use cases.

This CL adds a utility class to streamline the task of testing that metrics have been updated as expected. Specifically, the HistogramRecorder class allows a client to obtain the differential value of a given histogram in the interval since the given HistogramRecorder instance was created.

BUG=232414

Review URL: https://chromiumcodereview.appspot.com/18337014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212378 0039d316-1c4b-4281-b951-d872f2087c98
base/base.gyp
base/metrics/statistics_recorder.h
base/test/histogram_recorder.cc [new file with mode: 0644]
base/test/histogram_recorder.h [new file with mode: 0644]
base/test/histogram_recorder_unittest.cc [new file with mode: 0644]
chrome/browser/spellchecker/spellcheck_host_metrics_unittest.cc
chrome/browser/ui/cocoa/browser/password_generation_bubble_controller_unittest.mm
net/url_request/url_request_throttler_unittest.cc