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); |