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

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

Issue 2467393002: Add canMakeActivePayment() method to web payments. (Closed)
Patch Set: Fix FindBugs 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 2c68c4f7d031dfe404cd9efa7880293a6d2d3e7f..e849754d0c4fd89bb1e6a8c2a7f30049e87f781e 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
@@ -78,6 +78,7 @@ abstract class PaymentRequestTestBase extends ChromeActivityTestCaseBase<ChromeT
protected final CallbackHelper mUnableToAbort;
protected final CallbackHelper mBillingAddressChangeProcessed;
protected final CallbackHelper mShowFailed;
+ protected final CallbackHelper mActivePaymentQueryResponded;
protected final CallbackHelper mExpirationMonthChange;
protected PaymentRequestUI mUI;
@@ -102,6 +103,7 @@ abstract class PaymentRequestTestBase extends ChromeActivityTestCaseBase<ChromeT
mBillingAddressChangeProcessed = new CallbackHelper();
mExpirationMonthChange = new CallbackHelper();
mShowFailed = new CallbackHelper();
+ mActivePaymentQueryResponded = new CallbackHelper();
mViewCoreRef = new AtomicReference<>();
mWebContentsRef = new AtomicReference<>();
mTestFilePath = UrlUtils.getIsolatedTestFilePath(
@@ -646,6 +648,12 @@ abstract class PaymentRequestTestBase extends ChromeActivityTestCaseBase<ChromeT
}
@Override
+ public void onPaymentRequestServiceActivePaymentQueryResponded() {
+ ThreadUtils.assertOnUiThread();
+ mActivePaymentQueryResponded.notifyCalled();
+ }
+
+ @Override
public void onCardUnmaskPromptReadyForInput(CardUnmaskPrompt prompt) {
ThreadUtils.assertOnUiThread();
mReadyForUnmaskInput.notifyCalled(prompt);

Powered by Google App Engine
This is Rietveld 408576698