Fix NotificationIntentInterceptorTest.
NotificationIntentInterceptorTest is used to be an instrumentation test that calls into real Android notification API to show notification in tray. This is super flaky due to unexpected behavior or bugs in Android code. Now we change this to junit tests with Robolectric shadows which is much more flexible than current instrumentation setup. Also improve the test coverage. Bug: 910870 Change-Id: Ifd759b57c82010349316f2b6a928ad67799348ea Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2045142Reviewed-by:David Trainor <dtrainor@chromium.org> Reviewed-by:
Peter Beverloo <peter@chromium.org> Commit-Queue: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#740775}
Showing
Please register or sign in to comment