https://chromium.googlesource.com/chromium/src.git/+/3c6ead957995f42440d3385e34d6e7f57a30b6cbcommit 3c6ead957995f42440d3385e34d6e7f57a30b6cb
Author: Rouslan Solomakhin <
rou...@chromium.org>
Date: Fri Aug 14 23:05:23 2020
[Web Payment] TWA package name in PaymentAppFactoryParams.
Before this patch, Android payment app finder would determine the TWA
package name directly through the package manager, which prevented the
C++ browser tests from mocking the TWA package name through the test
delegate.
This patch changes Android payment app finder to look up the TWA package
name through PaymentAppFactoryParams. The PaymentRequestImpl implements
the Params interface through the test delegate, which the C++ tests can
modify.
After this patch, android browser tests can simulate running inside of a
TWA.
Bug: 1061503
Change-Id: I4d5df8d10f80fbb81678e877496285bc8cedf8b9
Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/2300179Commit-Queue: Rouslan Solomakhin <
rou...@chromium.org>