OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.chromium.base.test.util.CallbackHelper; | 9 import org.chromium.base.test.util.CallbackHelper; |
10 import org.chromium.base.test.util.RetryOnFailure; | 10 import org.chromium.base.test.util.RetryOnFailure; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 /** Gets the button state for the contact details section. */ | 223 /** Gets the button state for the contact details section. */ |
224 protected int getContactDetailsButtonState() throws ExecutionException { | 224 protected int getContactDetailsButtonState() throws ExecutionException { |
225 return mTestCommon.getContactDetailsButtonState(); | 225 return mTestCommon.getContactDetailsButtonState(); |
226 } | 226 } |
227 | 227 |
228 /** Returns the label corresponding to the payment instrument at the specif ied |index|. */ | 228 /** Returns the label corresponding to the payment instrument at the specif ied |index|. */ |
229 protected String getPaymentInstrumentLabel(final int index) throws Execution Exception { | 229 protected String getPaymentInstrumentLabel(final int index) throws Execution Exception { |
230 return mTestCommon.getPaymentInstrumentLabel(index); | 230 return mTestCommon.getPaymentInstrumentLabel(index); |
231 } | 231 } |
232 | 232 |
233 /** Returns the label of the payment method that is currently selected. */ | |
gogerald1
2017/05/17 19:11:47
could be simplified to: "Returns the label of the
wuandy1
2017/05/18 20:12:29
Done.
| |
234 protected String getSelectedPaymentInstrumentLabel() throws ExecutionExcepti on { | |
235 return mTestCommon.getSelectedPaymentInstrumentLabel(); | |
236 } | |
237 | |
238 protected String getOrderSummaryTotal() throws ExecutionException { | |
gogerald1
2017/05/17 19:11:47
add comments
wuandy1
2017/05/18 20:12:29
Done.
| |
239 return mTestCommon.getOrderSummaryTotal(); | |
240 } | |
241 | |
233 /** | 242 /** |
234 * Returns the label corresponding to the contact detail suggestion at the specified | 243 * Returns the label corresponding to the contact detail suggestion at the specified |
235 * |suggestionIndex|. | 244 * |suggestionIndex|. |
236 */ | 245 */ |
237 protected String getContactDetailsSuggestionLabel(final int suggestionIndex) | 246 protected String getContactDetailsSuggestionLabel(final int suggestionIndex) |
238 throws ExecutionException { | 247 throws ExecutionException { |
239 return mTestCommon.getContactDetailsSuggestionLabel(suggestionIndex); | 248 return mTestCommon.getContactDetailsSuggestionLabel(suggestionIndex); |
240 } | 249 } |
241 | 250 |
242 /** Returns the number of payment instruments. */ | 251 /** Returns the number of payment instruments. */ |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
518 @Override | 527 @Override |
519 public void startMainActivityWithURL(String url) throws InterruptedException { | 528 public void startMainActivityWithURL(String url) throws InterruptedException { |
520 super.startMainActivityWithURL(url); | 529 super.startMainActivityWithURL(url); |
521 } | 530 } |
522 | 531 |
523 @Override | 532 @Override |
524 public void assertWaitForPageScaleFactorMatch(float expectedScale) { | 533 public void assertWaitForPageScaleFactorMatch(float expectedScale) { |
525 super.assertWaitForPageScaleFactorMatch(expectedScale); | 534 super.assertWaitForPageScaleFactorMatch(expectedScale); |
526 } | 535 } |
527 } | 536 } |
OLD | NEW |