| Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java
|
| index 051d83a40b3f9d6503e4a69ccfaffa7ff45fabba..a04e07f67d3384568dc086ead5772e36a4fee9a2 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java
|
| @@ -338,6 +338,31 @@ final class PaymentRequestTestCommon implements PaymentRequestObserverForTest,
|
| });
|
| }
|
|
|
| + protected String getSelectedPaymentInstrumentLabel() throws ExecutionException {
|
| + return ThreadUtils.runOnUiThreadBlocking(new Callable<String>() {
|
| + @Override
|
| + public String call() {
|
| + OptionSection section = ((OptionSection) mUI.getPaymentMethodSectionForTest());
|
| + int size = section.getNumberOfOptionLabelsForTest();
|
| + for (int i = 0; i < size; i++) {
|
| + if (section.getOptionRowAtIndex(i).isChecked()) {
|
| + return section.getOptionRowAtIndex(i).getLabelText().toString();
|
| + }
|
| + }
|
| + return null;
|
| + }
|
| + });
|
| + }
|
| +
|
| + protected String getOrderSummaryTotal() throws ExecutionException {
|
| + return ThreadUtils.runOnUiThreadBlocking(new Callable<String>() {
|
| + @Override
|
| + public String call() {
|
| + return mUI.getOrderSummaryTotalTextViewForTest().getText().toString();
|
| + }
|
| + });
|
| + }
|
| +
|
| protected String getContactDetailsSuggestionLabel(final int suggestionIndex)
|
| throws ExecutionException {
|
| return ThreadUtils.runOnUiThreadBlocking(new Callable<String>() {
|
|
|