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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNameTest.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/PaymentRequestNameTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNameTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNameTest.java
index 69e84cfb376c5d892fa58c2e4c5f5f28f0ccf8b6..d2181791bd1da7e13e39e63d1fb28092b7b84883 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNameTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNameTest.java
@@ -150,7 +150,7 @@ public class PaymentRequestNameTest implements MainActivityStartCallback {
}
/**
- * Test that starting a payment request that requires only the user's payer name results in
+ * Test that ending a payment request that requires only the user's payer name results in
* the appropriate metric being logged in the PaymentRequest.RequestedInformation histogram.
*/
@Test
@@ -158,8 +158,15 @@ public class PaymentRequestNameTest implements MainActivityStartCallback {
@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.getReadyForUnmaskInput());
+ mPaymentRequestTestRule.setTextInCardUnmaskDialogAndWait(
+ R.id.card_unmask_input, "123", mPaymentRequestTestRule.getReadyToUnmask());
+ mPaymentRequestTestRule.clickCardUnmaskButtonAndWait(
+ DialogInterface.BUTTON_POSITIVE, mPaymentRequestTestRule.getDismissed());
+ mPaymentRequestTestRule.expectResultContains(new String[] {"Jon Doe"});
// 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