[Payments] Add test coverage to updateWith, OnConnectionError, etc
According to test coverage report[1], the error handling branches of PRService#updateWith(), OnConnectionError(), OnPaymentDetailsNotUpdated() has no test coverage. This CL adds the tests to cover these cases. [1] https://analysis.chromium.org/p/chromium/coverage/file?host=chromium.googlesource.com&project=chromium/src&ref=refs/heads/master&revision=5089ddb0638765b738ce9690ee00be44d2e19a9c&path=//components/payments/content/android/java/src/org/chromium/components/payments/PaymentRequestService.java&platform=android-java#1213 Bug: 1093971 Change-Id: I555d46796f1b570a49fb0861328effbb8226bd09 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2584463 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#835730}
Showing
Please register or sign in to comment