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

Issue 309843002: Improve UMA tests; improve no-op reconcilor; new reconcilor test. (Closed)

Created:
6 years, 6 months ago by Mike Lerman
Modified:
6 years, 5 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

Description

Improve the no-op reconcilor so that it doesn't "hang" after the first execution, but instead successfully completes the reconciliation. Improve the UMAHistogramHelper so that it can nicely take snapshots between tests, allowing the test writer to easily test ONLY the changes logged in "this" test. Write a new unit test that executes the reconcilor twice, and make all reconcilor unit tests execute with and without the flag. BUG=357693 TBR=phajdan.jr@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277605 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278223

Patch Set 1 #

Total comments: 18

Patch Set 2 : asvitkine comments and nits #

Patch Set 3 : Deprecation Comment #

Total comments: 4

Patch Set 4 : Remove unnecessary boolean parameter #

Total comments: 21

Patch Set 5 : Rebase #

Patch Set 6 : Comments, consts and other nits #

Total comments: 4

Patch Set 7 : Nits #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -34 lines) Patch
M base/test/statistics_delta_reader.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/signin/account_reconcilor_unittest.cc View 1 2 3 4 5 6 7 17 chunks +164 lines, -11 lines 0 comments Download
M chrome/test/base/uma_histogram_helper.h View 1 2 3 4 5 3 chunks +23 lines, -3 lines 0 comments Download
M chrome/test/base/uma_histogram_helper.cc View 1 2 3 4 5 6 2 chunks +32 lines, -4 lines 0 comments Download
M components/signin/core/browser/account_reconcilor.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M components/signin/core/browser/account_reconcilor.cc View 1 2 3 4 5 6 7 6 chunks +28 lines, -16 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
Mike Lerman
Hi Reviewers, PTAL. rogerta - all things account_reconcilor alexei - UMAHistogramHelper changes sky - owner ...
6 years, 6 months ago (2014-06-12 15:46:13 UTC) #1
sky
LGTM
6 years, 6 months ago (2014-06-12 16:59:20 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/309843002/diff/60001/chrome/browser/signin/account_reconcilor_unittest.cc File chrome/browser/signin/account_reconcilor_unittest.cc (right): https://codereview.chromium.org/309843002/diff/60001/chrome/browser/signin/account_reconcilor_unittest.cc#newcode36 chrome/browser/signin/account_reconcilor_unittest.cc:36: const int kNumHistogramsForSnapshot = 6; You don't need this. ...
6 years, 6 months ago (2014-06-12 17:09:15 UTC) #3
Ilya Sherman
Did you see the base/test/statistics_delta_reader.h class? It looks like it might already do most of ...
6 years, 6 months ago (2014-06-12 17:24:19 UTC) #4
Alexei Svitkine (slow)
Thanks Ilya, I didn't know of statistics_delta_reader.h. Merging the two makes sense to me. On ...
6 years, 6 months ago (2014-06-12 17:32:43 UTC) #5
chromium-reviews
I didn't know the statistics_delta_reader existed. I think all locations where it's used can be ...
6 years, 6 months ago (2014-06-12 17:50:59 UTC) #6
Mike Lerman
https://codereview.chromium.org/309843002/diff/60001/chrome/browser/signin/account_reconcilor_unittest.cc File chrome/browser/signin/account_reconcilor_unittest.cc (right): https://codereview.chromium.org/309843002/diff/60001/chrome/browser/signin/account_reconcilor_unittest.cc#newcode36 chrome/browser/signin/account_reconcilor_unittest.cc:36: const int kNumHistogramsForSnapshot = 6; On 2014/06/12 17:09:11, Alexei ...
6 years, 6 months ago (2014-06-12 18:12:16 UTC) #7
Ilya Sherman
How hard would it be to implement one of the test helper classes in terms ...
6 years, 6 months ago (2014-06-12 19:43:45 UTC) #8
chromium-reviews
I'll create a bug for tracking this, no problem. I'll also note that the statistics_delta_reader ...
6 years, 6 months ago (2014-06-12 19:49:21 UTC) #9
Ilya Sherman
On 2014/06/12 19:49:21, chromium-reviews wrote: > I'll create a bug for tracking this, no problem. ...
6 years, 6 months ago (2014-06-12 19:54:15 UTC) #10
Mike Lerman
crbug.com/384011
6 years, 6 months ago (2014-06-12 19:59:33 UTC) #11
Mike Lerman
phajdan.jr - PTAL for comment added to statistics_delta_reader. Thanks.
6 years, 6 months ago (2014-06-12 20:00:33 UTC) #12
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/309843002/diff/100001/chrome/browser/signin/account_reconcilor_unittest.cc File chrome/browser/signin/account_reconcilor_unittest.cc (right): https://codereview.chromium.org/309843002/diff/100001/chrome/browser/signin/account_reconcilor_unittest.cc#newcode135 chrome/browser/signin/account_reconcilor_unittest.cc:135: || GetParam() == true) { GetParam() == true ...
6 years, 6 months ago (2014-06-13 14:37:55 UTC) #13
Mike Lerman
https://codereview.chromium.org/309843002/diff/100001/chrome/browser/signin/account_reconcilor_unittest.cc File chrome/browser/signin/account_reconcilor_unittest.cc (right): https://codereview.chromium.org/309843002/diff/100001/chrome/browser/signin/account_reconcilor_unittest.cc#newcode135 chrome/browser/signin/account_reconcilor_unittest.cc:135: || GetParam() == true) { On 2014/06/13 14:37:55, Roger ...
6 years, 6 months ago (2014-06-13 15:15:27 UTC) #14
Mike Lerman
Alexei and Ilya, Let me know if you have other comments or concerns around this ...
6 years, 6 months ago (2014-06-13 17:16:41 UTC) #15
Ilya Sherman
I hadn't actually looked at the code in detail previously. Since Alexei is airborne today, ...
6 years, 6 months ago (2014-06-13 19:58:12 UTC) #16
Mike Lerman
https://codereview.chromium.org/309843002/diff/120001/base/test/statistics_delta_reader.h File base/test/statistics_delta_reader.h (right): https://codereview.chromium.org/309843002/diff/120001/base/test/statistics_delta_reader.h#newcode23 base/test/statistics_delta_reader.h:23: // references. crbug.com/384011 On 2014/06/13 19:58:11, Ilya Sherman wrote: ...
6 years, 6 months ago (2014-06-16 14:59:14 UTC) #17
Mike Lerman
Alexei, shall I remove you from the reviewer list? Since Ilya will be providing UMA-related ...
6 years, 6 months ago (2014-06-16 15:00:29 UTC) #18
Alexei Svitkine (slow)
On 2014/06/16 15:00:29, Mike Lerman wrote: > Alexei, shall I remove you from the reviewer ...
6 years, 6 months ago (2014-06-16 15:20:54 UTC) #19
Ilya Sherman
LGTM. Thanks, Mike! https://codereview.chromium.org/309843002/diff/120001/chrome/test/base/uma_histogram_helper.h File chrome/test/base/uma_histogram_helper.h (right): https://codereview.chromium.org/309843002/diff/120001/chrome/test/base/uma_histogram_helper.h#newcode24 chrome/test/base/uma_histogram_helper.h:24: void PrepareSnapshot(const char* histogram_names[], int num_histograms); ...
6 years, 6 months ago (2014-06-16 18:11:29 UTC) #20
Mike Lerman
Ilya, I've made a note in the crbug.com for the follow-up work around this. Alexei, ...
6 years, 6 months ago (2014-06-16 19:26:39 UTC) #21
Alexei Svitkine (slow)
lgtm % a couple of comments https://codereview.chromium.org/309843002/diff/160001/chrome/browser/signin/account_reconcilor_unittest.cc File chrome/browser/signin/account_reconcilor_unittest.cc (right): https://codereview.chromium.org/309843002/diff/160001/chrome/browser/signin/account_reconcilor_unittest.cc#newcode124 chrome/browser/signin/account_reconcilor_unittest.cc:124: }; Nit: Add ...
6 years, 6 months ago (2014-06-16 19:30:26 UTC) #22
Mike Lerman
Thanks Alexei. Moving phajdan to TBD, since the only change affecting that file is a ...
6 years, 6 months ago (2014-06-16 19:55:45 UTC) #23
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 6 months ago (2014-06-16 23:50:31 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/309843002/180001
6 years, 6 months ago (2014-06-16 23:53:10 UTC) #25
commit-bot: I haz the power
Change committed as 277605
6 years, 6 months ago (2014-06-17 01:03:39 UTC) #26
hirono
A revert of this CL has been created in https://codereview.chromium.org/338883006/ by hirono@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-18 06:54:42 UTC) #27
Mike Lerman
On 2014/06/18 06:54:42, hirono wrote: > A revert of this CL has been created in ...
6 years, 6 months ago (2014-06-18 13:07:22 UTC) #28
Mike Lerman
This was fixed in CL https://codereview.chromium.org/339223004/ which has since landed. Resubmitted to the CQ.
6 years, 6 months ago (2014-06-18 13:53:15 UTC) #29
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 6 months ago (2014-06-18 13:53:34 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/309843002/180001
6 years, 6 months ago (2014-06-18 13:54:18 UTC) #31
Mike Lerman
The CQ bit was unchecked by mlerman@chromium.org
6 years, 6 months ago (2014-06-18 14:06:52 UTC) #32
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 6 months ago (2014-06-18 14:20:16 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/309843002/180001
6 years, 6 months ago (2014-06-18 14:20:43 UTC) #34
Mike Lerman
On 2014/06/18 14:20:16, Mike Lerman wrote: > The CQ bit was checked by mailto:mlerman@chromium.org After ...
6 years, 6 months ago (2014-06-18 14:21:25 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-18 15:33:33 UTC) #36
commit-bot: I haz the power
Failed to apply patch for chrome/browser/signin/account_reconcilor_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-06-18 15:33:34 UTC) #37
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 6 months ago (2014-06-18 15:47:39 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/309843002/200001
6 years, 6 months ago (2014-06-18 15:49:53 UTC) #39
commit-bot: I haz the power
Change committed as 278223
6 years, 6 months ago (2014-06-19 01:24:08 UTC) #40
Paweł Hajdan Jr.
6 years, 5 months ago (2014-07-25 14:31:46 UTC) #41
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698