Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Issue 11272044: Add explicit tests for histogram factory matching. (Closed)

Created:
8 years, 1 month ago by gavinp
Modified:
8 years, 1 month ago
CC:
chromium-reviews, MAD, erikwright+watch_chromium.org, Ilya Sherman, jar (doing other things)
Visibility:
Public.

Description

Add explicit tests for histogram factory matching. Two instances of the same histogram has worked since landed with http://src.chromium.org/viewvc/chrome?view=rev&revision=33933 , but wasn't tested. This CL adds a short test that makes sure we have this functionality. In order to keep the tests isolated from each other (so they don't inadvertantly start depending on each other), we have to add a test fixture to initialize and clear a StatisticsRecorder for each test. R=jar@chromium.org,rvargas@chromium.org BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164536

Patch Set 1 #

Total comments: 2

Patch Set 2 : + a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -12 lines) Patch
M base/metrics/bucket_ranges_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/metrics/histogram.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M base/metrics/histogram_unittest.cc View 10 chunks +47 lines, -11 lines 0 comments Download
M base/metrics/statistics_recorder.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
gavinp
Ricardo, over in http://codereview.chromium.org/11267028/ you asked if histograms can be instantiated twice in the same ...
8 years, 1 month ago (2012-10-26 17:35:03 UTC) #1
jar (doing other things)
lgtm
8 years, 1 month ago (2012-10-26 17:51:40 UTC) #2
rvargas (doing something else)
I think if we want to support that model (and not consider it an implementation ...
8 years, 1 month ago (2012-10-26 18:25:23 UTC) #3
gavinp
On 2012/10/26 18:25:23, rvargas wrote: > I think if we want to support that model ...
8 years, 1 month ago (2012-10-26 20:55:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/11272044/1
8 years, 1 month ago (2012-10-26 21:01:18 UTC) #5
rvargas (doing something else)
On 2012/10/26 20:55:50, gavinp wrote: > On 2012/10/26 18:25:23, rvargas wrote: > > I think ...
8 years, 1 month ago (2012-10-26 21:09:21 UTC) #6
Ilya Sherman
Drive-by nit https://chromiumcodereview.appspot.com/11272044/diff/1/base/metrics/histogram_unittest.cc File base/metrics/histogram_unittest.cc (right): https://chromiumcodereview.appspot.com/11272044/diff/1/base/metrics/histogram_unittest.cc#newcode37 base/metrics/histogram_unittest.cc:37: statistics_recorder_ = new StatisticsRecorder(); nit: y no ...
8 years, 1 month ago (2012-10-26 22:15:49 UTC) #7
gavinp
https://chromiumcodereview.appspot.com/11272044/diff/1/base/metrics/histogram_unittest.cc File base/metrics/histogram_unittest.cc (right): https://chromiumcodereview.appspot.com/11272044/diff/1/base/metrics/histogram_unittest.cc#newcode37 base/metrics/histogram_unittest.cc:37: statistics_recorder_ = new StatisticsRecorder(); On 2012/10/26 22:15:50, Ilya Sherman ...
8 years, 1 month ago (2012-10-26 23:01:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/11272044/13001
8 years, 1 month ago (2012-10-26 23:03:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/11272044/13001
8 years, 1 month ago (2012-10-27 12:22:55 UTC) #10
commit-bot: I haz the power
8 years, 1 month ago (2012-10-27 12:44:09 UTC) #11
Change committed as 164536

Powered by Google App Engine
This is Rietveld 408576698