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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestCanMakePaymentQueryNoCardTest.java

Issue 2581683006: [Merge M-56] Enable canMakePayment() for web payments. (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestCanMakePaymentQueryTest.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.test.suitebuilder.annotation.MediumTest; 7 import android.test.suitebuilder.annotation.MediumTest;
8 8
9 import org.chromium.base.test.util.CommandLineFlags;
10 import org.chromium.base.test.util.Feature; 9 import org.chromium.base.test.util.Feature;
11 import org.chromium.chrome.R; 10 import org.chromium.chrome.R;
12 import org.chromium.chrome.browser.autofill.AutofillTestHelper; 11 import org.chromium.chrome.browser.autofill.AutofillTestHelper;
13 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard; 12 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard;
14 13
15 import java.util.concurrent.ExecutionException; 14 import java.util.concurrent.ExecutionException;
16 import java.util.concurrent.TimeoutException; 15 import java.util.concurrent.TimeoutException;
17 16
18 /** 17 /**
19 * A payment integration test for checking whether user can make a payment via e ither payment 18 * A payment integration test for checking whether user can make a payment via e ither payment
20 * app or a credit card. This user does not have a complete credit card on file. 19 * app or a credit card. This user does not have a complete credit card on file.
21 */ 20 */
22 @CommandLineFlags.Add("enable-blink-features=CanMakePayment")
23 public class PaymentRequestCanMakePaymentQueryNoCardTest extends PaymentRequestT estBase { 21 public class PaymentRequestCanMakePaymentQueryNoCardTest extends PaymentRequestT estBase {
24 public PaymentRequestCanMakePaymentQueryNoCardTest() { 22 public PaymentRequestCanMakePaymentQueryNoCardTest() {
25 super("payment_request_can_make_payment_query_test.html"); 23 super("payment_request_can_make_payment_query_test.html");
26 } 24 }
27 25
28 @Override 26 @Override
29 public void onMainActivityStarted() throws InterruptedException, ExecutionEx ception, 27 public void onMainActivityStarted() throws InterruptedException, ExecutionEx ception,
30 TimeoutException { 28 TimeoutException {
31 // The user has an incomplete credit card on file. This is not sufficien t for 29 // The user has an incomplete credit card on file. This is not sufficien t for
32 // canMakePayment() to return true. 30 // canMakePayment() to return true.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 70
73 @MediumTest 71 @MediumTest
74 @Feature({"Payments"}) 72 @Feature({"Payments"})
75 public void testPayViaSlowBobPay() throws InterruptedException, ExecutionExc eption, 73 public void testPayViaSlowBobPay() throws InterruptedException, ExecutionExc eption,
76 TimeoutException { 74 TimeoutException {
77 installPaymentApp(HAVE_INSTRUMENTS, DELAYED_RESPONSE); 75 installPaymentApp(HAVE_INSTRUMENTS, DELAYED_RESPONSE);
78 triggerUIAndWait(mCanMakePaymentQueryResponded); 76 triggerUIAndWait(mCanMakePaymentQueryResponded);
79 expectResultContains(new String[]{"true"}); 77 expectResultContains(new String[]{"true"});
80 } 78 }
81 } 79 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestCanMakePaymentQueryTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698