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

Issue 1073613002: Added test support to observe and verify UMA user actions during tests. (Closed)

Created:
5 years, 8 months ago by bruthig
Modified:
5 years, 8 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added test support to observe and verify UMA user actions during tests. There are currently a few custom user action observers to record and verify UMA user actions during tests. This patch adds that support to a common location. TEST=UserActionTesterTest.GetActionCountWhenNoActionsHaveBeenRecorded TEST=UserActionTesterTest.GetActionCountWhenActionsHaveBeenRecorded TEST=UserActionTesterTest.ResetCountsWhenNoActionsHaveBeenRecorded TEST=UserActionTesterTest.ResetCountsWhenActionsHaveBeenRecorded TEST=UserActionTesterTest.VerifyUserActionTesterListensForUserActions BUG=475181 Committed: https://crrev.com/965a17ddac517f913ef767454521727ac6f5107d Cr-Commit-Position: refs/heads/master@{#324953}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addressed isherman@'s comments from patch set 1. #

Total comments: 6

Patch Set 3 : Addressed mark@'s comments from patch set 2. #

Total comments: 1

Patch Set 4 : Removed unnecessary #include from user_action_tester.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -0 lines) Patch
M base/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gyp View 2 chunks +3 lines, -0 lines 0 comments Download
M base/test/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A base/test/user_action_tester.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A base/test/user_action_tester.cc View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A base/test/user_action_tester_unittest.cc View 1 1 chunk +86 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
bruthig
rkaplow@: Can you please take a look at base/test/user_action_tester* with an UMA expert perspective? danakj@: ...
5 years, 8 months ago (2015-04-08 20:34:19 UTC) #2
Ilya Sherman
Thanks! Could you please also migrate some or all of the custom observers over to ...
5 years, 8 months ago (2015-04-08 20:49:19 UTC) #4
bruthig
I've updated the CL as per isherman@'s comments. isherman@: Can you please have another look? ...
5 years, 8 months ago (2015-04-09 23:17:52 UTC) #5
Ilya Sherman
Thanks! As I wrote in my previous review, could you please also migrate some or ...
5 years, 8 months ago (2015-04-09 23:49:35 UTC) #6
bruthig
I've created www.crbug.com/475747 to track the work of actually migrating the tests to use the ...
5 years, 8 months ago (2015-04-10 00:05:26 UTC) #7
Ilya Sherman
LGTM, thanks.
5 years, 8 months ago (2015-04-10 01:02:27 UTC) #8
rkaplow
lgtm
5 years, 8 months ago (2015-04-10 15:39:01 UTC) #9
bruthig
Replacing danakj@ with mark@ because danajk@ is away until April 19th. mark@chromium.org: Can you please ...
5 years, 8 months ago (2015-04-13 16:47:27 UTC) #11
Mark Mentovai
https://codereview.chromium.org/1073613002/diff/20001/base/test/user_action_tester.cc File base/test/user_action_tester.cc (right): https://codereview.chromium.org/1073613002/diff/20001/base/test/user_action_tester.cc#newcode7 base/test/user_action_tester.cc:7: #include <map> The .h already brought in <map>, <string>, ...
5 years, 8 months ago (2015-04-13 17:30:00 UTC) #12
bruthig
I've updated the review as per mark@'s comments. mark@, can you please have another look? ...
5 years, 8 months ago (2015-04-13 19:21:46 UTC) #13
Mark Mentovai
LGTM otherwis https://codereview.chromium.org/1073613002/diff/40001/base/test/user_action_tester.cc File base/test/user_action_tester.cc (right): https://codereview.chromium.org/1073613002/diff/40001/base/test/user_action_tester.cc#newcode9 base/test/user_action_tester.cc:9: #include "base/metrics/user_metrics.h" Me too.
5 years, 8 months ago (2015-04-13 20:08:37 UTC) #14
bruthig
Removed unnecessary #include from user_action_tester.cc. No need to review.
5 years, 8 months ago (2015-04-13 20:28:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1073613002/60001
5 years, 8 months ago (2015-04-13 20:29:50 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-14 00:01:22 UTC) #19
commit-bot: I haz the power
5 years, 8 months ago (2015-04-14 00:02:31 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/965a17ddac517f913ef767454521727ac6f5107d
Cr-Commit-Position: refs/heads/master@{#324953}

Powered by Google App Engine
This is Rietveld 408576698