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

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

Issue 2413533003: [Payments] Normalize billing address before sending to the merchant. (Closed)
Patch Set: Rebase Created 4 years, 2 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
« no previous file with comments | « chrome/android/java_sources.gni ('k') | chrome/browser/autofill/android/personal_data_manager_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestUseStatsTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestUseStatsTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestUseStatsTest.java
index 58ba0325a1cb2f35f2c35bcd151421ab52fba618..bd9393a78eb34d19f5fabc460828b63ed1f1367b 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestUseStatsTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestUseStatsTest.java
@@ -43,7 +43,7 @@ public class PaymentRequestUseStatsTest extends PaymentRequestTestBase {
mBillingAddressId, "" /* serverId */));
// Set specific use stats for the profile and credit card.
mHelper.setProfileUseStatsForTesting(mBillingAddressId, 20, 5000);
- mHelper.setCreditCardUseStatsForTesting(mCreditCardId, 10, 5000);
+ mHelper.setCreditCardUseStatsForTesting(mCreditCardId, 1, 5000);
}
/** Expect that using a profile and credit card to pay updates their usage stats. */
@@ -68,7 +68,7 @@ public class PaymentRequestUseStatsTest extends PaymentRequestTestBase {
assertEquals(21, mHelper.getProfileUseCountForTesting(mBillingAddressId));
assertTrue(timeBeforeRecord <= mHelper.getProfileUseDateForTesting(mBillingAddressId));
assertTrue(timeAfterRecord >= mHelper.getProfileUseDateForTesting(mBillingAddressId));
- assertEquals(11, mHelper.getCreditCardUseCountForTesting(mCreditCardId));
+ assertEquals(2, mHelper.getCreditCardUseCountForTesting(mCreditCardId));
assertTrue(timeBeforeRecord <= mHelper.getCreditCardUseDateForTesting(mCreditCardId));
assertTrue(timeAfterRecord >= mHelper.getCreditCardUseDateForTesting(mCreditCardId));
}
« no previous file with comments | « chrome/android/java_sources.gni ('k') | chrome/browser/autofill/android/personal_data_manager_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698