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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/autofill/PersonalDataManagerTest.java

Issue 2189563002: Use server ID to identify server cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/autofill/PersonalDataManagerTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/PersonalDataManagerTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/PersonalDataManagerTest.java
index a79544a9414d92d0a1d859cd46aa251b9e3b026c..bcf7fad60897441046021b5affee236a66c41295 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/PersonalDataManagerTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/PersonalDataManagerTest.java
@@ -367,11 +367,13 @@ public class PersonalDataManagerTest extends NativeLibraryTestBase {
// Create a local card and an identical server card.
CreditCard card1 = new CreditCard("" /* guid */, "https://www.example.com" /* origin */,
true /* isLocal */, false /* isCached */, "John Doe", "1234123412341234", "", "5",
- "2020", "Visa", 0 /* issuerIconDrawableId */, "" /* billingAddressId */);
+ "2020", "Visa", 0 /* issuerIconDrawableId */, "" /* billingAddressId */,
+ "" /* serverId */);
CreditCard card2 = new CreditCard("" /* guid */, "https://www.example.com" /* origin */,
false /* isLocal */, false /* isCached */, "John Doe", "1234123412341234", "", "5",
- "2020", "Visa", 0 /* issuerIconDrawableId */, "" /* billingAddressId */);
+ "2020", "Visa", 0 /* issuerIconDrawableId */, "" /* billingAddressId */,
+ "" /* serverId */);
mHelper.setCreditCard(card1);
mHelper.addServerCreditCard(card2);
@@ -412,7 +414,8 @@ public class PersonalDataManagerTest extends NativeLibraryTestBase {
String guid = mHelper.setCreditCard(
new CreditCard("" /* guid */, "https://www.example.com" /* origin */,
true /* isLocal */, false /* isCached */, "John Doe", "1234123412341234", "",
- "5", "2020", "Visa", 0 /* issuerIconDrawableId */, "" /* billingAddressId */));
+ "5", "2020", "Visa", 0 /* issuerIconDrawableId */, "" /* billingAddressId */,
+ "" /* serverId */));
// Make sure the credit card does not have the specific use stats form the start.
assertTrue(1234 != mHelper.getCreditCardUseCountForTesting(guid));
@@ -462,7 +465,8 @@ public class PersonalDataManagerTest extends NativeLibraryTestBase {
new CreditCard("" /* guid */, "https://www.example.com" /* origin */,
true /* isLocal */, false /* isCached */, "John Doe",
"1234123412341234", "", "5", "2020", "Visa",
- 0 /* issuerIconDrawableId */, "" /* billingAddressId */));
+ 0 /* issuerIconDrawableId */, "" /* billingAddressId */,
+ "" /* serverId */));
// Set specific use stats for the credit card.
mHelper.setCreditCardUseStatsForTesting(guid, 1234, 1234);

Powered by Google App Engine
This is Rietveld 408576698