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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinderTest.java

Issue 2850503002: Enable "interledger" non-URI payment method. (Closed)
Patch Set: Ganggui's comment Created 3 years, 8 months 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinder.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)))
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinder.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698