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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.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/PaymentRequestContactDetailsTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java
index 30ad56100c450fb1762439ce05be750cb2d03283..13df211dc86adae3751569475a23086cf4b65ebc 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java
@@ -317,7 +317,7 @@ public class PaymentRequestContactDetailsTest implements MainActivityStartCallba
}
/**
- * Test that starting a payment request that requires the user's email address, phone number and
+ * Test that ending a payment request that requires the user's email address, phone number and
* name results in the appropriate metric being logged in the
* PaymentRequest.RequestedInformation histogram.
*/
@@ -326,8 +326,12 @@ public class PaymentRequestContactDetailsTest implements MainActivityStartCallba
@Feature({"Payments"})
public void testRequestedInformationMetric()
throws InterruptedException, ExecutionException, TimeoutException {
- // Start the Payment Request.
+ // Start and complete the Payment Request.
mPaymentRequestTestRule.triggerUIAndWait(mPaymentRequestTestRule.getReadyToPay());
+ mPaymentRequestTestRule.clickAndWait(
+ R.id.button_primary, mPaymentRequestTestRule.getDismissed());
+ mPaymentRequestTestRule.expectResultContains(
+ new String[] {"Jon Doe", "+15555555555", "jon.doe@google.com"});
// 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