Android Notification: Intercept PendingIntent for metrics recording.
This CL introduces a way to intercept all PendingIntents from notification with broadcast receivers. In the following CL we will add metrics recording into those broadcast receivers. This class will eventually be used in ChromeNotificationBuilder. Also we introduce a test that uses UIAutomator to actually click on a notification in test instead of mocking Android notification API. And verify the BroadcastReceiver interception. Bug: 898269 Change-Id: I16e52f7036db4d30093517e16373547d5e1e862c Reviewed-on: https://chromium-review.googlesource.com/c/1327803 Commit-Queue: Xing Liu <xingliu@chromium.org> Reviewed-by:Peter Beverloo <peter@chromium.org> Reviewed-by:
David Trainor <dtrainor@chromium.org> Cr-Commit-Position: refs/heads/master@{#609390}
Showing
Please register or sign in to comment