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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillContactTest.java

Issue 2583593002: [Payments] Dedupe subsets in contact detail suggestions. (Closed)
Patch Set: Nit Created 3 years, 11 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/junit/src/org/chromium/chrome/browser/payments/AutofillContactTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillContactTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillContactTest.java
index 55039d5c0482b8f77f3c76d0f4774276e2dc268b..4060b95fcf99b03bb2a498feaba1566efbd1c3cc 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillContactTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillContactTest.java
@@ -24,7 +24,7 @@ import java.util.Arrays;
import java.util.Collection;
/**
- * Unit tests for the AutofillContact class.
+ * Parametrized unit tests for the AutofillContact class.
*/
@RunWith(ParameterizedRobolectricTestRunner.class)
@Config(sdk = 21, manifest = Config.NONE)
@@ -107,8 +107,9 @@ public class AutofillContactTest {
public void test() {
AutofillProfile profile = new AutofillProfile();
AutofillContact contact = new AutofillContact(mContext, profile, mPayerName, mPayerPhone,
- mPayerEmail,
- mIsComplete ? ContactEditor.COMPLETE : ContactEditor.INVALID_MULTIPLE_FIELDS);
+ mPayerEmail, mIsComplete ? ContactEditor.COMPLETE
+ : ContactEditor.INVALID_NAME | ContactEditor.INVALID_EMAIL,
+ true, true, true);
Assert.assertEquals(
mIsComplete ? "Contact should be complete" : "Contact should be incomplete",

Powered by Google App Engine
This is Rietveld 408576698