Add a StatisticsDeltaReader class and use cases
commit16c7abc10a5585ee9fa0efdeb0723710fed93728
authorlpromero@chromium.org <lpromero@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 7 Jan 2014 16:12:09 +0000 (7 16:12 +0000)
committerlpromero@chromium.org <lpromero@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 7 Jan 2014 16:12:09 +0000 (7 16:12 +0000)
treef4486075af79ef0cfd1d3857749f5a999440ff8c
parent69074ca888e1fa9cdad846333d2267751e44d8ea
Add a StatisticsDeltaReader 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
StatisticsDeltaReader class allows a client to obtain the differential
value of a given histogram in the interval since the given
StatisticsDeltaReader instance was created.

This reverts commit 6a7dfb3cd638829a04e002ea9bc5b18ed3c9c03f.

BUG=232414
TBR=rsleevy, groby

Review URL: https://codereview.chromium.org/120753002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243303 0039d316-1c4b-4281-b951-d872f2087c98
base/base.gyp
base/metrics/statistics_recorder.h
base/test/statistics_delta_reader.cc [new file with mode: 0644]
base/test/statistics_delta_reader.h [new file with mode: 0644]
base/test/statistics_delta_reader_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