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

Issue 2164513002: Add browsertest for permission action reporting (Closed)

Created:
4 years, 5 months ago by stefanocs
Modified:
4 years, 4 months ago
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org, grt+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, Nathan Parker
Base URL:
https://chromium.googlesource.com/chromium/src.git@add-hooks-to-permission-layer2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add browsertest for permission action reporting MockReportSender class is refactored from chrome/browser/safe_browsing/permission_reporter_unittest.cc into chrome/browser/safe_browsing/mock_permission_report_sender.cc and renamed to MockPermissionReportSender so that it can be used in chrome/browser/safe_browsing/permission_reporter_browsertest.cc BUG=613883 Committed: https://crrev.com/d95c8fb090d3c2c2e13649740d567c260109cba8 Cr-Commit-Position: refs/heads/master@{#408346}

Patch Set 1 #

Patch Set 2 : Add report compare test #

Patch Set 3 : CHange comment #

Patch Set 4 : Rebase #

Patch Set 5 : fix test #

Patch Set 6 : fix test due to rebase #

Patch Set 7 : fix test due to rebase #

Total comments: 20

Patch Set 8 : Split browser tests #

Patch Set 9 : Add missing includes #

Patch Set 10 : Remove android tests + Move MockReportSender to separate file #

Total comments: 5

Patch Set 11 : Resolve nits #

Total comments: 2

Patch Set 12 : Add back AcceptBubble() + Rename MockReportSender to MockPermissionReportSender #

Patch Set 13 : Remove todo to add browsertest #

Patch Set 14 : - #

Patch Set 15 : Rebase #

Patch Set 16 : Add gesture test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -39 lines) Patch
M chrome/browser/permissions/permission_request_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_uma_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -2 lines 0 comments Download
A chrome/browser/safe_browsing/mock_permission_report_sender.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/mock_permission_report_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/permission_reporter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/safe_browsing/permission_reporter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +130 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/permission_reporter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -36 lines 0 comments Download
M chrome/browser/safe_browsing/ping_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/test/data/permissions/request.html View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 70 (54 generated)
stefanocs
4 years, 5 months ago (2016-07-19 08:05:56 UTC) #6
kcarattini
https://codereview.chromium.org/2164513002/diff/120001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc File chrome/browser/safe_browsing/permission_reporter_browsertest.cc (right): https://codereview.chromium.org/2164513002/diff/120001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc#newcode22 chrome/browser/safe_browsing/permission_reporter_browsertest.cc:22: #if !defined(OS_ANDROID) With all these directives it might make ...
4 years, 5 months ago (2016-07-20 03:59:22 UTC) #23
stefanocs
https://codereview.chromium.org/2164513002/diff/120001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc File chrome/browser/safe_browsing/permission_reporter_browsertest.cc (right): https://codereview.chromium.org/2164513002/diff/120001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc#newcode22 chrome/browser/safe_browsing/permission_reporter_browsertest.cc:22: #if !defined(OS_ANDROID) On 2016/07/20 03:59:22, kcarattini wrote: > With ...
4 years, 5 months ago (2016-07-20 04:47:26 UTC) #24
stefanocs
Hi, Please help me review this permission reporting cl. Thanks.
4 years, 5 months ago (2016-07-25 03:45:46 UTC) #26
raymes
https://codereview.chromium.org/2164513002/diff/120001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc File chrome/browser/safe_browsing/permission_reporter_browsertest.cc (right): https://codereview.chromium.org/2164513002/diff/120001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc#newcode38 chrome/browser/safe_browsing/permission_reporter_browsertest.cc:38: constexpr char kTestingUsername[] = "fake_username"; nit: just move these ...
4 years, 5 months ago (2016-07-25 04:31:40 UTC) #27
stefanocs
https://codereview.chromium.org/2164513002/diff/120001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc File chrome/browser/safe_browsing/permission_reporter_browsertest.cc (right): https://codereview.chromium.org/2164513002/diff/120001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc#newcode38 chrome/browser/safe_browsing/permission_reporter_browsertest.cc:38: constexpr char kTestingUsername[] = "fake_username"; On 2016/07/25 04:31:40, raymes ...
4 years, 5 months ago (2016-07-25 12:44:05 UTC) #32
raymes
Let's get rid of the android test (since it won't be run) and file a ...
4 years, 5 months ago (2016-07-26 00:45:02 UTC) #35
stefanocs
https://codereview.chromium.org/2164513002/diff/120001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc File chrome/browser/safe_browsing/permission_reporter_browsertest.cc (right): https://codereview.chromium.org/2164513002/diff/120001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc#newcode42 chrome/browser/safe_browsing/permission_reporter_browsertest.cc:42: class MockReportSender : public net::ReportSender { On 2016/07/26 00:45:02, ...
4 years, 5 months ago (2016-07-26 01:48:58 UTC) #37
kcarattini
lgtm
4 years, 5 months ago (2016-07-26 03:22:14 UTC) #38
raymes
lgtm https://codereview.chromium.org/2164513002/diff/180001/chrome/browser/safe_browsing/mock_report_sender.h File chrome/browser/safe_browsing/mock_report_sender.h (right): https://codereview.chromium.org/2164513002/diff/180001/chrome/browser/safe_browsing/mock_report_sender.h#newcode5 chrome/browser/safe_browsing/mock_report_sender.h:5: #include "net/url_request/report_sender.h" nit: nothing should be above the ...
4 years, 5 months ago (2016-07-26 07:42:06 UTC) #39
stefanocs
Thanks! https://codereview.chromium.org/2164513002/diff/180001/chrome/browser/safe_browsing/mock_report_sender.h File chrome/browser/safe_browsing/mock_report_sender.h (right): https://codereview.chromium.org/2164513002/diff/180001/chrome/browser/safe_browsing/mock_report_sender.h#newcode5 chrome/browser/safe_browsing/mock_report_sender.h:5: #include "net/url_request/report_sender.h" On 2016/07/26 07:42:06, raymes wrote: > ...
4 years, 4 months ago (2016-07-26 11:17:37 UTC) #40
Jialiu Lin
lgtm with nit https://codereview.chromium.org/2164513002/diff/200001/chrome/browser/safe_browsing/mock_report_sender.h File chrome/browser/safe_browsing/mock_report_sender.h (right): https://codereview.chromium.org/2164513002/diff/200001/chrome/browser/safe_browsing/mock_report_sender.h#newcode12 chrome/browser/safe_browsing/mock_report_sender.h:12: // A mock ReportSender that keeps ...
4 years, 4 months ago (2016-07-26 16:28:02 UTC) #41
stefanocs
https://codereview.chromium.org/2164513002/diff/180001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc File chrome/browser/safe_browsing/permission_reporter_browsertest.cc (right): https://codereview.chromium.org/2164513002/diff/180001/chrome/browser/safe_browsing/permission_reporter_browsertest.cc#newcode84 chrome/browser/safe_browsing/permission_reporter_browsertest.cc:84: void AcceptBubble() { GetPermissionRequestManager()->Accept(); } On 2016/07/26 07:42:06, raymes ...
4 years, 4 months ago (2016-07-27 04:11:19 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2164513002/300001
4 years, 4 months ago (2016-07-28 06:07:32 UTC) #66
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 4 months ago (2016-07-28 06:21:51 UTC) #68
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 06:23:14 UTC) #70
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/d95c8fb090d3c2c2e13649740d567c260109cba8
Cr-Commit-Position: refs/heads/master@{#408346}

Powered by Google App Engine
This is Rietveld 408576698