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

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

Issue 2545523004: Rename canMakeActivePayment to canMakePayment (Closed)
Patch Set: Rebase 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/PaymentRequestCcCanMakePaymentQueryTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestCcActivePaymentQueryTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestCcCanMakePaymentQueryTest.java
similarity index 73%
rename from chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestCcActivePaymentQueryTest.java
rename to chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestCcCanMakePaymentQueryTest.java
index d5003cc62183740a86304c3d8ccdccc154cf875d..3f0d1601cb3cd1ec3c85b06e28b403b96e280b4c 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestCcActivePaymentQueryTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestCcCanMakePaymentQueryTest.java
@@ -17,20 +17,20 @@ import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
/**
- * A payment integration test for checking whether user can make active payment via a credit card.
+ * A payment integration test for checking whether user can make a payment via a credit card.
* This user has a complete credit card on file.
*/
-@CommandLineFlags.Add("enable-blink-features=CanMakeActivePayment")
-public class PaymentRequestCcActivePaymentQueryTest extends PaymentRequestTestBase {
- public PaymentRequestCcActivePaymentQueryTest() {
- super("payment_request_active_payment_query_cc_test.html");
+@CommandLineFlags.Add("enable-blink-features=CanMakePayment")
+public class PaymentRequestCcCanMakePaymentQueryTest extends PaymentRequestTestBase {
+ public PaymentRequestCcCanMakePaymentQueryTest() {
+ super("payment_request_can_make_payment_query_cc_test.html");
}
@Override
public void onMainActivityStarted() throws InterruptedException, ExecutionException,
TimeoutException {
// The user has a complete credit card on file. This is sufficient for
- // canMakeActivePayment() to return true.
+ // canMakePayment() to return true.
AutofillTestHelper helper = new AutofillTestHelper();
String billingAddressId = helper.setProfile(new AutofillProfile("", "https://example.com",
true, "Jon Doe", "Google", "340 Main St", "CA", "Los Angeles", "", "90291", "",
@@ -42,24 +42,24 @@ public class PaymentRequestCcActivePaymentQueryTest extends PaymentRequestTestBa
@MediumTest
@Feature({"Payments"})
- public void testCanMakeActivePayment() throws InterruptedException, ExecutionException,
+ public void testCanMakePayment() throws InterruptedException, ExecutionException,
TimeoutException {
- openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
+ openPageAndClickBuyAndWait(mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"true"});
// Repeating a query does not count against the quota.
- clickNodeAndWait("buy", mActivePaymentQueryResponded);
+ clickNodeAndWait("buy", mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"true"});
- clickNodeAndWait("buy", mActivePaymentQueryResponded);
+ clickNodeAndWait("buy", mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"true"});
// Different queries are throttled for a period of time.
- clickNodeAndWait("other-buy", mActivePaymentQueryResponded);
+ clickNodeAndWait("other-buy", mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"Query quota exceeded"});
// Repeating the same query again does not count against the quota.
- clickNodeAndWait("buy", mActivePaymentQueryResponded);
+ clickNodeAndWait("buy", mCanMakePaymentQueryResponded);
expectResultContains(new String[]{"true"});
}
}

Powered by Google App Engine
This is Rietveld 408576698