Index: chrome/android/junit/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinderTest.java |
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinderTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinderTest.java |
index ff37cb9ba8bc79be2d847d5294a375073dee4966..18a487b1c5a4a211815ab5535a24baa1808ae375 100644 |
--- a/chrome/android/junit/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinderTest.java |
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinderTest.java |
@@ -90,7 +90,7 @@ public class AndroidPaymentAppFinderTest { |
ArgumentMatchers.argThat(sPayIntentArgumentMatcher))) |
.thenReturn(new ArrayList<ResolveInfo>()); |
Set<String> methodNames = new HashSet<>(); |
- methodNames.add(AndroidPaymentAppFinder.BASIC_CARD_PAYMENT_METHOD); |
+ methodNames.add("basic-card"); |
PaymentAppCreatedCallback callback = Mockito.mock(PaymentAppCreatedCallback.class); |
AndroidPaymentAppFinder.find(Mockito.mock(WebContents.class), methodNames, |
@@ -119,7 +119,7 @@ public class AndroidPaymentAppFinderTest { |
.thenReturn(activities); |
Set<String> methodNames = new HashSet<>(); |
- methodNames.add(AndroidPaymentAppFinder.BASIC_CARD_PAYMENT_METHOD); |
+ methodNames.add("basic-card"); |
PaymentAppCreatedCallback callback = Mockito.mock(PaymentAppCreatedCallback.class); |
AndroidPaymentAppFinder.find(Mockito.mock(WebContents.class), methodNames, |
@@ -153,7 +153,7 @@ public class AndroidPaymentAppFinderTest { |
.thenReturn(activities); |
Set<String> methodNames = new HashSet<>(); |
- methodNames.add(AndroidPaymentAppFinder.BASIC_CARD_PAYMENT_METHOD); |
+ methodNames.add("basic-card"); |
PaymentAppCreatedCallback callback = Mockito.mock(PaymentAppCreatedCallback.class); |
AndroidPaymentAppFinder.find(Mockito.mock(WebContents.class), methodNames, |
@@ -209,11 +209,9 @@ public class AndroidPaymentAppFinderTest { |
Resources resouces = Mockito.mock(Resources.class); |
Mockito.when(resouces.getStringArray(ArgumentMatchers.eq(1))) |
- .thenReturn(new String[] { |
- "https://alicepay.com", AndroidPaymentAppFinder.BASIC_CARD_PAYMENT_METHOD}); |
+ .thenReturn(new String[] {"https://alicepay.com", "basic-card"}); |
Mockito.when(resouces.getStringArray(ArgumentMatchers.eq(2))) |
- .thenReturn(new String[] { |
- "https://bobpay.com", AndroidPaymentAppFinder.BASIC_CARD_PAYMENT_METHOD}); |
+ .thenReturn(new String[] {"https://bobpay.com", "basic-card"}); |
Mockito.when(packageManagerDelegate.getResourcesForApplication( |
ArgumentMatchers.eq(alicePay.activityInfo.applicationInfo))) |
@@ -223,7 +221,7 @@ public class AndroidPaymentAppFinderTest { |
.thenReturn(resouces); |
Set<String> methodNames = new HashSet<>(); |
- methodNames.add(AndroidPaymentAppFinder.BASIC_CARD_PAYMENT_METHOD); |
+ methodNames.add("basic-card"); |
PaymentAppCreatedCallback callback = Mockito.mock(PaymentAppCreatedCallback.class); |
AndroidPaymentAppFinder.find(Mockito.mock(WebContents.class), methodNames, |
@@ -262,8 +260,7 @@ public class AndroidPaymentAppFinderTest { |
Resources resouces = Mockito.mock(Resources.class); |
Mockito.when(resouces.getStringArray(ArgumentMatchers.eq(1))) |
- .thenReturn(new String[] { |
- "https://bobpay.com", AndroidPaymentAppFinder.BASIC_CARD_PAYMENT_METHOD}); |
+ .thenReturn(new String[] {"https://bobpay.com", "basic-card"}); |
Mockito.when(packageManagerDelegate.getResourcesForApplication( |
ArgumentMatchers.eq(bobPay.activityInfo.applicationInfo))) |