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

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

Issue 2571513004: [Payment Request] Update the logic when obtaining results from editors (Closed)
Patch Set: addressing test failures Created 4 years 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 32d9d2d0805c66477543331816ab7f124cda7405..55039d5c0482b8f77f3c76d0f4774276e2dc268b 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
@@ -71,7 +71,7 @@ public class AutofillContactTest {
});
}
- private static final String IMCOMPLETE_MESSAGE = "incomplete";
+ private static final String INCOMPLETE_MESSAGE = "incomplete";
private final Context mContext;
private final String mPayerName;
@@ -90,7 +90,7 @@ public class AutofillContactTest {
String expectedTertiaryLabel, String expectedPayerName, String expectedPayerPhone,
String expectedPayerEmail) {
mContext = spy(RuntimeEnvironment.application);
- doReturn(IMCOMPLETE_MESSAGE).when(mContext).getString(anyInt());
+ doReturn(INCOMPLETE_MESSAGE).when(mContext).getString(anyInt());
mPayerName = payerName;
mPayerPhone = payerPhone;
mPayerEmail = payerEmail;
@@ -140,9 +140,9 @@ public class AutofillContactTest {
Assert.assertEquals("TertiaryLabel should be " + expectedTertiaryLabel,
expectedTertiaryLabel, actual.getTertiaryLabel());
- Assert.assertEquals("EditTitle should be " + IMCOMPLETE_MESSAGE, IMCOMPLETE_MESSAGE,
+ Assert.assertEquals("EditTitle should be " + INCOMPLETE_MESSAGE, INCOMPLETE_MESSAGE,
actual.getEditTitle());
- String editMessage = actual.isComplete() ? null : IMCOMPLETE_MESSAGE;
+ String editMessage = actual.isComplete() ? null : INCOMPLETE_MESSAGE;
Assert.assertEquals(
"EditMessage should be " + editMessage, editMessage, actual.getEditMessage());
}

Powered by Google App Engine
This is Rietveld 408576698