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

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

Issue 2743763003: [Payments] Format and validate phone number by using libphonenumber (Closed)
Patch Set: formats Created 3 years, 9 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/PaymentRequestJourneyLoggerTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLoggerTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLoggerTest.java
index 8d619d98fbb0f1c13ca835c5af3aa0a4f927ed89..e007e4130c62c2024d604c9563592c834184cafd 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLoggerTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLoggerTest.java
@@ -32,14 +32,14 @@ public class PaymentRequestJourneyLoggerTest extends PaymentRequestTestBase {
// The user has a shipping address and a credit card associated with that address on disk.
String mBillingAddressId = mHelper.setProfile(new AutofillProfile("", "https://example.com",
true, "Jon Doe", "Google", "340 Main St", "CA", "Los Angeles", "", "90291", "",
- "US", "555-555-5555", "", "en-US"));
+ "US", "650-253-0000", "", "en-US"));
mHelper.setCreditCard(new CreditCard("", "https://example.com", true, true, "Jon Doe",
"4111111111111111", "1111", "12", "2050", "visa", R.drawable.pr_visa,
mBillingAddressId, "" /* serverId */));
// The user also has an incomplete address and an incomplete card saved.
String mIncompleteAddressId = mHelper.setProfile(new AutofillProfile("",
"https://example.com", true, "In Complete", "Google", "344 Main St", "CA", "", "",
- "90291", "", "US", "555-555-5555", "", "en-US"));
+ "90291", "", "US", "650-253-0000", "", "en-US"));
mHelper.setCreditCard(new CreditCard("", "https://example.com", true, true, "",
"4111111111111111", "1111", "18", "2075", "visa", R.drawable.pr_visa,
mIncompleteAddressId, "" /* serverId */));
@@ -157,10 +157,8 @@ public class PaymentRequestJourneyLoggerTest extends PaymentRequestTestBase {
// Add a new shipping address.
clickInShippingAddressAndWait(R.id.payments_add_option_button, mReadyToEdit);
setSpinnerSelectionInEditorAndWait(0 /* Afghanistan */, mReadyToEdit);
- setTextInEditorAndWait(
- new String[] {"Alice", "Supreme Court", "Airport Road", "Kabul", "1043",
- "999-999-9999"},
- mEditorTextUpdate);
+ setTextInEditorAndWait(new String[] {"Alice", "Supreme Court", "Airport Road", "Kabul",
+ "1043", "650-253-0000"}, mEditorTextUpdate);
clickInEditorAndWait(R.id.payments_edit_done_button, mReadyToPay);
// Complete the transaction.

Powered by Google App Engine
This is Rietveld 408576698