| Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
|
| index 8d81b24ed1835fcb1d7d398634c07712c818ebac..5403a377c4879f3ea2f332fd7b214a6ab8f68cf8 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
|
| @@ -483,7 +483,7 @@ public class PaymentRequestNoShippingTest implements MainActivityStartCallback {
|
| }
|
|
|
| /**
|
| - * Test that starting a payment request that requires user information except for the payment
|
| + * Test that ending a payment request that requires user information except for the payment
|
| * results in the appropriate metric being logged in the PaymentRequest.RequestedInformation
|
| * histogram.
|
| */
|
| @@ -492,8 +492,11 @@ public class PaymentRequestNoShippingTest implements MainActivityStartCallback {
|
| @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) {
|
|
|