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

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

Issue 2552693002: [Merge M-56] Rename canMakeActivePayment to canMakePayment (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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppCanMakePaymentQueryTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppActivePaymentQueryTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppCanMakePaymentQueryTest.java
similarity index 72%
rename from chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppActivePaymentQueryTest.java
rename to chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppCanMakePaymentQueryTest.java
index 8b00f9c6ef9545187089db206bbc487a27e2cb23..f95d9ea84c81474bc24326672a43a3de1b3252b1 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppActivePaymentQueryTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppCanMakePaymentQueryTest.java
@@ -13,12 +13,12 @@ import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
/**
- * A payment integration test for checking whether user can make active payment using a payment app.
+ * A payment integration test for checking whether user can make a payment using a payment app.
*/
-@CommandLineFlags.Add("enable-blink-features=CanMakeActivePayment")
-public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentRequestTestBase {
- public PaymentRequestPaymentAppActivePaymentQueryTest() {
- super("payment_request_active_payment_query_bobpay_test.html");
+@CommandLineFlags.Add("enable-blink-features=CanMakePayment")
+public class PaymentRequestPaymentAppCanMakePaymentQueryTest extends PaymentRequestTestBase {
+ public PaymentRequestPaymentAppCanMakePaymentQueryTest() {
+ super("payment_request_can_make_payment_query_bobpay_test.html");
}
@Override
@@ -29,10 +29,10 @@ public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentReque
@Feature({"Payments"})
public void testNoBobPayInstalled() throws InterruptedException, ExecutionException,
TimeoutException {
- triggerUIAndWait(mActivePaymentQueryResponded);
+ triggerUIAndWait(mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"false, false"});
- clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
+ clickNodeAndWait("otherBuy", mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"false, QuotaExceededError"});
}
@@ -41,10 +41,10 @@ public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentReque
public void testNoInstrumentsInFastBobPay() throws InterruptedException, ExecutionException,
TimeoutException {
installPaymentApp(NO_INSTRUMENTS, IMMEDIATE_RESPONSE);
- triggerUIAndWait(mActivePaymentQueryResponded);
+ triggerUIAndWait(mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"false, false"});
- clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
+ clickNodeAndWait("otherBuy", mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"false, QuotaExceededError"});
}
@@ -53,10 +53,10 @@ public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentReque
public void testNoInstrumentsInSlowBobPay() throws InterruptedException, ExecutionException,
TimeoutException {
installPaymentApp(NO_INSTRUMENTS, DELAYED_RESPONSE);
- triggerUIAndWait(mActivePaymentQueryResponded);
+ triggerUIAndWait(mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"false, false"});
- clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
+ clickNodeAndWait("otherBuy", mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"false, QuotaExceededError"});
}
@@ -65,10 +65,10 @@ public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentReque
public void testPayViaFastBobPay() throws InterruptedException, ExecutionException,
TimeoutException {
installPaymentApp(HAVE_INSTRUMENTS, IMMEDIATE_RESPONSE);
- triggerUIAndWait(mActivePaymentQueryResponded);
+ triggerUIAndWait(mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"true, true"});
- clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
+ clickNodeAndWait("otherBuy", mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"true, QuotaExceededError"});
}
@@ -77,10 +77,10 @@ public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentReque
public void testPayViaSlowBobPay() throws InterruptedException, ExecutionException,
TimeoutException {
installPaymentApp(HAVE_INSTRUMENTS, DELAYED_RESPONSE);
- triggerUIAndWait(mActivePaymentQueryResponded);
+ triggerUIAndWait(mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"true, true"});
- clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
+ clickNodeAndWait("otherBuy", mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"true, QuotaExceededError"});
}
}

Powered by Google App Engine
This is Rietveld 408576698