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

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

Issue 2923243003: Merge-60 [Payments] Move the RequestedInformation metric to native. (Closed)
Patch Set: Created 3 years, 6 months 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/PaymentRequestFreeShippingTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestFreeShippingTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestFreeShippingTest.java
index 2a47fbfae5d44db1268bc7016b67aa9454b0d411..dc78eb065e67fa0671dd24834b6e8349ca110304 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestFreeShippingTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestFreeShippingTest.java
@@ -279,7 +279,7 @@ public class PaymentRequestFreeShippingTest implements MainActivityStartCallback
}
/**
- * Test that starting a payment request that requires only the shipping address results in the
+ * 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
@@ -287,8 +287,11 @@ public class PaymentRequestFreeShippingTest implements MainActivityStartCallback
@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) {

Powered by Google App Engine
This is Rietveld 408576698