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

Issue 2946953003: Prepare DownloadRequestLimiterTest for enabling PermissionRequestManager on Android (Closed)

Created:
3 years, 6 months ago by Timothy Loh
Modified:
3 years, 6 months ago
Reviewers:
dominickn
CC:
chromium-reviews, dtrainor+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Prepare DownloadRequestLimiterTest for enabling PermissionRequestManager on Android This patch updates the DownloadRequestLimiterTest so that we'll be able to enable the PermissionRequestManager on Android without needing to change this test at the same time. Currently the tests use a testing delegate, which on Android calls into the infobar system and on desktop calls into the PRM. Instead of making the TestingDelegate implement an interface, we just remove the delegate and inline the logic into the test fixture. This is as we plan to remove the infobar paths once the PRM is shipped, after which we won't need the complexity of a delegate. This patch also updates DownloadRequestLimiter_RawWebContents so that it runs on desktop as well as Android. BUG=606138 Review-Url: https://codereview.chromium.org/2946953003 Cr-Commit-Position: refs/heads/master@{#481149} Committed: https://chromium.googlesource.com/chromium/src/+/7ef4fb730f1d56441a16be8e47f0d4da582c0be2

Patch Set 1 #

Patch Set 2 : fix condition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -118 lines) Patch
M chrome/browser/download/download_request_limiter_unittest.cc View 1 9 chunks +105 lines, -118 lines 0 comments Download

Messages

Total messages: 17 (13 generated)
Timothy Loh
3 years, 6 months ago (2017-06-21 06:41:37 UTC) #10
dominickn
lgtm
3 years, 6 months ago (2017-06-21 07:13:26 UTC) #11
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/2946953003/20001
3 years, 6 months ago (2017-06-21 07:21:24 UTC) #14
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 08:52:20 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7ef4fb730f1d56441a16be8e47f0...

Powered by Google App Engine
This is Rietveld 408576698