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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailAndPhoneTest.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/PaymentRequestEmailAndPhoneTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailAndPhoneTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailAndPhoneTest.java
index 593f2ca00b0c2508e9a9586083f00b235f9fb117..ff6b186d319fed5ba40d3667dc75dc507b8d2a65 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailAndPhoneTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailAndPhoneTest.java
@@ -145,7 +145,7 @@ public class PaymentRequestEmailAndPhoneTest implements MainActivityStartCallbac
}
/**
- * Test that starting a payment request that requires only the user's email address results in
+ * Test that ending a payment request that requires only the user's email address results in
* the appropriate metric being logged in the PaymentRequest.RequestedInformation histogram.
*/
@Test
@@ -153,8 +153,11 @@ public class PaymentRequestEmailAndPhoneTest implements MainActivityStartCallbac
@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"});
int appropriateEnumValue = RequestedInformation.EMAIL | RequestedInformation.PHONE;

Powered by Google App Engine
This is Rietveld 408576698