OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.payments; | 5 package org.chromium.chrome.browser.payments; |
6 | 6 |
7 import android.view.View; | 7 import android.view.View; |
8 | 8 |
9 import org.junit.runner.Description; | 9 import org.junit.runner.Description; |
10 import org.junit.runners.model.Statement; | 10 import org.junit.runners.model.Statement; |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 /** Gets the button state for the contact details section. */ | 225 /** Gets the button state for the contact details section. */ |
226 protected int getContactDetailsButtonState() throws ExecutionException { | 226 protected int getContactDetailsButtonState() throws ExecutionException { |
227 return mTestCommon.getContactDetailsButtonState(); | 227 return mTestCommon.getContactDetailsButtonState(); |
228 } | 228 } |
229 | 229 |
230 /** Returns the label corresponding to the payment instrument at the specif
ied |index|. */ | 230 /** Returns the label corresponding to the payment instrument at the specif
ied |index|. */ |
231 protected String getPaymentInstrumentLabel(final int index) throws Execution
Exception { | 231 protected String getPaymentInstrumentLabel(final int index) throws Execution
Exception { |
232 return mTestCommon.getPaymentInstrumentLabel(index); | 232 return mTestCommon.getPaymentInstrumentLabel(index); |
233 } | 233 } |
234 | 234 |
| 235 /** Returns the label of the selected payment instrument. */ |
| 236 protected String getSelectedPaymentInstrumentLabel() throws ExecutionExcepti
on { |
| 237 return mTestCommon.getSelectedPaymentInstrumentLabel(); |
| 238 } |
| 239 |
| 240 /** Returns the total amount in order summary section. */ |
| 241 protected String getOrderSummaryTotal() throws ExecutionException { |
| 242 return mTestCommon.getOrderSummaryTotal(); |
| 243 } |
| 244 |
235 /** | 245 /** |
236 * Returns the label corresponding to the contact detail suggestion at the
specified | 246 * Returns the label corresponding to the contact detail suggestion at the
specified |
237 * |suggestionIndex|. | 247 * |suggestionIndex|. |
238 */ | 248 */ |
239 protected String getContactDetailsSuggestionLabel(final int suggestionIndex) | 249 protected String getContactDetailsSuggestionLabel(final int suggestionIndex) |
240 throws ExecutionException { | 250 throws ExecutionException { |
241 return mTestCommon.getContactDetailsSuggestionLabel(suggestionIndex); | 251 return mTestCommon.getContactDetailsSuggestionLabel(suggestionIndex); |
242 } | 252 } |
243 | 253 |
244 /** Returns the number of payment instruments. */ | 254 /** Returns the number of payment instruments. */ |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 base.evaluate(); | 543 base.evaluate(); |
534 } | 544 } |
535 }, description); | 545 }, description); |
536 } | 546 } |
537 | 547 |
538 public interface MainActivityStartCallback { | 548 public interface MainActivityStartCallback { |
539 void onMainActivityStarted() throws | 549 void onMainActivityStarted() throws |
540 InterruptedException, ExecutionException, TimeoutException; | 550 InterruptedException, ExecutionException, TimeoutException; |
541 } | 551 } |
542 } | 552 } |
OLD | NEW |