[Payments] Integration test for Android payment app finder.
This patch adds an integration test for the Android payment app finder using the real parser and downloader instead of mocks. This patch adds payment app manifest files in components/test/data/payments/<hostname>.com/. Because the embedded test server uses HTTP, but payment manifests must use HTTPS, a URLSubstituteParser wraps the PaymentManifestParser to replace https://<hostname>.com with the test server URLs, e.g., http://127.0.0.1:12345/components/test/data/payments/<hostname>.com. Because integration tests should not depend on the state of locally installed applications, a MockPackageManagerDelegate is used to simulate installed native Android apps in memory. Bug: 620173 Change-Id: I8184a84f9f9daa05b5cc8da6e343378b62333b1a Reviewed-on: https://chromium-review.googlesource.com/571943 Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:Ganggui Tang <gogerald@chromium.org> Cr-Commit-Position: refs/heads/master@{#488729}
Showing
File moved
File moved
Please register or sign in to comment