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

Unified Diff: ios/chrome/browser/ui/payments/contact_info_edit_coordinator_unittest.mm

Issue 2949813003: [Payment Request] Formats phone number and credit card number in editors. (Closed)
Patch Set: Fixed broken tests Created 3 years, 6 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: ios/chrome/browser/ui/payments/contact_info_edit_coordinator_unittest.mm
diff --git a/ios/chrome/browser/ui/payments/contact_info_edit_coordinator_unittest.mm b/ios/chrome/browser/ui/payments/contact_info_edit_coordinator_unittest.mm
index 22441829b340050197619176a2cebd4b26d1c307..791d0e13eba9fbc0d5aa668dd2add36921ee5856 100644
--- a/ios/chrome/browser/ui/payments/contact_info_edit_coordinator_unittest.mm
+++ b/ios/chrome/browser/ui/payments/contact_info_edit_coordinator_unittest.mm
@@ -184,12 +184,12 @@ TEST_F(PaymentRequestContactInfoEditCoordinatorTest, DidFinishCreating) {
// Expect an autofill profile to be added to the PaymentRequest.
EXPECT_CALL(*payment_request_,
AddAutofillProfile(
- ProfileMatches("John Doe", "john@doe.com", "16502111111")))
+ ProfileMatches("John Doe", "john@doe.com", "1 650-211-1111")))
.Times(1);
// Expect an autofill profile to be added to the PersonalDataManager.
EXPECT_CALL(
personal_data_manager_,
- AddProfile(ProfileMatches("John Doe", "john@doe.com", "16502111111")))
+ AddProfile(ProfileMatches("John Doe", "john@doe.com", "1 650-211-1111")))
.Times(1);
// No autofill profile should get updated in the PersonalDataManager.
EXPECT_CALL(personal_data_manager_, UpdateProfile(_)).Times(0);
@@ -250,14 +250,14 @@ TEST_F(PaymentRequestContactInfoEditCoordinatorTest, DidFinishEditing) {
// No autofill profile should get added to the PersonalDataManager.
EXPECT_CALL(personal_data_manager_, AddProfile(_)).Times(0);
// Expect an autofill profile to be updated in the PersonalDataManager.
- EXPECT_CALL(
- personal_data_manager_,
- UpdateProfile(ProfileMatches("John Doe", "john@doe.com", "16502111111")))
+ EXPECT_CALL(personal_data_manager_,
+ UpdateProfile(
+ ProfileMatches("John Doe", "john@doe.com", "1 650-211-1111")))
.Times(1);
// Expect an autofill profile to be invalidated in PaymentsProfileComparator.
EXPECT_CALL(
*profile_comparator_,
- Invalidate(ProfileMatches("John Doe", "john@doe.com", "16502111111")))
+ Invalidate(ProfileMatches("John Doe", "john@doe.com", "1 650-211-1111")))
.Times(1);
// Call the controller delegate method.

Powered by Google App Engine
This is Rietveld 408576698