Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1297)

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java

Issue 2530793002: PaymentApp: Allow multiple payment method names for one instrument. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
index 2446e9aefe3f7138839fbab1a7620311b569c347..a4c8d6450f2f42e57e8cf436e7568e599753cec1 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
@@ -807,13 +807,15 @@ abstract class PaymentRequestTestBase extends ChromeActivityTestCaseBase<ChromeT
}
@Override
- public String getInstrumentMethodName() {
- return mMethodName;
+ public Set<String> getInstrumentMethodNames() {
+ Set<String> result = new HashSet<>();
+ result.add(mMethodName);
+ return result;
}
@Override
- public void getInstrumentDetails(String merchantName, String origin, PaymentItem total,
- List<PaymentItem> cart, PaymentMethodData details,
+ public void invokePayment(String merchantName, String origin, PaymentItem total,
+ List<PaymentItem> cart, Map<String, PaymentMethodData> methodData,
InstrumentDetailsCallback detailsCallback) {
detailsCallback.onInstrumentDetailsReady(
mMethodName, "{\"transaction\": 1337}");

Powered by Google App Engine
This is Rietveld 408576698