| Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPhoneTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPhoneTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPhoneTest.java
|
| index de63d915842f481bd1f1c1e05d5f620d7cac2c6f..cabb7aa81ddc33c59c4178a9a2423821dd940c2f 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPhoneTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPhoneTest.java
|
| @@ -143,16 +143,19 @@ public class PaymentRequestPhoneTest implements MainActivityStartCallback {
|
| }
|
|
|
| /**
|
| - * Test that starting a payment request that requires only the user's phone number results in
|
| - * the appropriate metric being logged in the PaymentRequest.RequestedInformation histogram.
|
| + * Test that ending a payment request that requires only the shipping address results in the
|
| + * appropriate metric being logged in the PaymentRequest.RequestedInformation histogram.
|
| */
|
| @Test
|
| @MediumTest
|
| @Feature({"Payments"})
|
| public void testRequestedInformationMetric()
|
| throws InterruptedException, ExecutionException, TimeoutException {
|
| - // Start the Payment Request.
|
| + // Start and abort the Payment Request.
|
| mPaymentRequestTestRule.triggerUIAndWait(mPaymentRequestTestRule.getReadyToPay());
|
| + mPaymentRequestTestRule.clickAndWait(
|
| + R.id.close_button, mPaymentRequestTestRule.getDismissed());
|
| + mPaymentRequestTestRule.expectResultContains(new String[] {"Request cancelled"});
|
|
|
| // Make sure that only the appropriate enum value was logged.
|
| for (int i = 0; i < RequestedInformation.MAX; ++i) {
|
|
|