| Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailAndFreeShippingTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailAndFreeShippingTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailAndFreeShippingTest.java
|
| index f5ed06974a04cf2bb10b1ef9e38fb03c85df735d..f97a45aea4a1c50c3c0ee820430af62008082c54 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailAndFreeShippingTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailAndFreeShippingTest.java
|
| @@ -72,7 +72,7 @@ public class PaymentRequestEmailAndFreeShippingTest implements MainActivityStart
|
| }
|
|
|
| /**
|
| - * Test that starting a payment request that requires and email address and a shipping address
|
| + * Test that ending a payment request that requires and email address and a shipping address
|
| * results in the appropriate metric being logged in the PaymentRequest.RequestedInformation
|
| * histogram.
|
| */
|
| @@ -81,8 +81,11 @@ public class PaymentRequestEmailAndFreeShippingTest implements MainActivityStart
|
| @Feature({"Payments"})
|
| public void testRequestedInformationMetric()
|
| throws InterruptedException, ExecutionException, TimeoutException {
|
| - // Start the Payment Request.
|
| + // Start and cancel 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) {
|
|
|