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

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

Issue 2885443003: enable modifiers for native apps (Closed)
Patch Set: fix compilation error Created 3 years, 7 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
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>() {

Powered by Google App Engine
This is Rietveld 408576698