| Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestMetricsTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestMetricsTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestMetricsTest.java
|
| index 58c56593bcccadb43bab54af3b5f9180174a813b..c71d281928b0806ffbeec46adb719ff8d3476a3e 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestMetricsTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestMetricsTest.java
|
| @@ -9,6 +9,7 @@ import android.test.suitebuilder.annotation.MediumTest;
|
|
|
| import org.chromium.base.ThreadUtils;
|
| import org.chromium.base.metrics.RecordHistogram;
|
| +import org.chromium.base.test.util.Feature;
|
| import org.chromium.chrome.R;
|
| import org.chromium.chrome.browser.autofill.AutofillTestHelper;
|
| import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile;
|
| @@ -43,6 +44,7 @@ public class PaymentRequestMetricsTest extends PaymentRequestTestBase {
|
| * Expect that the successful checkout funnel metrics are logged during a succesful checkout.
|
| */
|
| @MediumTest
|
| + @Feature({"Payments"})
|
| public void testSuccessCheckoutFunnel() throws InterruptedException, ExecutionException,
|
| TimeoutException {
|
| // Initiate a payment request.
|
| @@ -77,6 +79,7 @@ public class PaymentRequestMetricsTest extends PaymentRequestTestBase {
|
| * Payment Request.
|
| */
|
| @MediumTest
|
| + @Feature({"Payments"})
|
| public void testAbortMetrics_AbortedByUser_CancelButton() throws InterruptedException,
|
| ExecutionException, TimeoutException {
|
| triggerUIAndWait("ccBuy", mReadyToPay);
|
| @@ -102,6 +105,7 @@ public class PaymentRequestMetricsTest extends PaymentRequestTestBase {
|
| * the [X] button in the Payment Request dialog.
|
| */
|
| @MediumTest
|
| + @Feature({"Payments"})
|
| public void testAbortMetrics_AbortedByUser_XButton() throws InterruptedException,
|
| ExecutionException, TimeoutException {
|
| triggerUIAndWait("ccBuy", mReadyToPay);
|
| @@ -120,6 +124,7 @@ public class PaymentRequestMetricsTest extends PaymentRequestTestBase {
|
| * the back button on their phone during a Payment Request.
|
| */
|
| @MediumTest
|
| + @Feature({"Payments"})
|
| public void testAbortMetrics_AbortedByUser_BackButton() throws InterruptedException,
|
| ExecutionException, TimeoutException {
|
| triggerUIAndWait("ccBuy", mReadyToPay);
|
| @@ -145,6 +150,7 @@ public class PaymentRequestMetricsTest extends PaymentRequestTestBase {
|
| * the tab during a Payment Request.
|
| */
|
| @MediumTest
|
| + @Feature({"Payments"})
|
| public void testAbortMetrics_AbortedByUser_TabClosed() throws InterruptedException,
|
| ExecutionException, TimeoutException {
|
| triggerUIAndWait("ccBuy", mReadyToPay);
|
| @@ -162,6 +168,7 @@ public class PaymentRequestMetricsTest extends PaymentRequestTestBase {
|
| * Request gets cancelled by the merchant.
|
| */
|
| @MediumTest
|
| + @Feature({"Payments"})
|
| public void testAbortMetrics_AbortedByMerchant() throws InterruptedException,
|
| ExecutionException, TimeoutException {
|
| triggerUIAndWait("ccBuy", mReadyToPay);
|
| @@ -180,6 +187,7 @@ public class PaymentRequestMetricsTest extends PaymentRequestTestBase {
|
| * the merchant and the merchant does not accept credit cards.
|
| */
|
| @MediumTest
|
| + @Feature({"Payments"})
|
| public void testAbortMetrics_NoMatchingPaymentMethod() throws InterruptedException,
|
| ExecutionException, TimeoutException {
|
| // Android Pay is supported but no instruments are present.
|
| @@ -197,6 +205,7 @@ public class PaymentRequestMetricsTest extends PaymentRequestTestBase {
|
| * support.
|
| */
|
| @MediumTest
|
| + @Feature({"Payments"})
|
| public void testAbortMetrics_NoSupportedPaymentMethod() throws InterruptedException,
|
| ExecutionException, TimeoutException {
|
| triggerUIAndWait("noSupported", mShowFailed);
|
| @@ -211,6 +220,7 @@ public class PaymentRequestMetricsTest extends PaymentRequestTestBase {
|
| * "SelectedPaymentMethod" histogram when completing a Payment Request with a credit card.
|
| */
|
| @MediumTest
|
| + @Feature({"Payments"})
|
| public void testSelectedPaymentMethod_CreditCard() throws InterruptedException,
|
| ExecutionException, TimeoutException {
|
| // Complete a Payment Request with a credit card.
|
| @@ -228,6 +238,7 @@ public class PaymentRequestMetricsTest extends PaymentRequestTestBase {
|
| * "SelectedPaymentMethod" histogram when completing a Payment Request with Android Pay.
|
| */
|
| @MediumTest
|
| + @Feature({"Payments"})
|
| public void testSelectedPaymentMethod_AndroidPay() throws InterruptedException,
|
| ExecutionException, TimeoutException {
|
| // Complete a Payment Request with Android Pay.
|
|
|