HistogramTester::GetHistogramSamplesSinceCreation never returns null
commitae9604308c926cc7df6205b5207dbf63c6e55314
authorvabr <vabr@chromium.org>
Mon, 3 Aug 2015 08:12:54 +0000 (3 01:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 3 Aug 2015 08:13:41 +0000 (3 08:13 +0000)
treebb67df846860f03c89bab7a5b65477397af11e67
parentcf4613a24a12cdf5cd6c457ed07fddbae1d23795
HistogramTester::GetHistogramSamplesSinceCreation never returns null

Currently, GetHistogramSamplesSinceCreation can return null if no histogram was generated. But that depends also on tests run prior to the current test. This CL changes this to returning empty samples instead, so that independently of previously run tests, the current test always gets the same response even if it does not generate any histograms.

BUG=473689

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

Cr-Commit-Position: refs/heads/master@{#341498}
base/test/histogram_tester.cc
base/test/histogram_tester_unittest.cc
sql/connection_unittest.cc