DescriptionPrepare 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 #Messages
Total messages: 17 (13 generated)
|