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

Unified Diff: chrome/browser/autofill/personal_data_manager_unittest.cc

Issue 11635039: [Autofill] Update unit tests to use country codes when setting raw address info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/autofill/autofill_profile_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/personal_data_manager_unittest.cc
diff --git a/chrome/browser/autofill/personal_data_manager_unittest.cc b/chrome/browser/autofill/personal_data_manager_unittest.cc
index d73ca3649d12fc282fcd750b68ef8b8b094a12a2..17a9ee17e91d13ebb20772a20c21ec14b8ee3cd0 100644
--- a/chrome/browser/autofill/personal_data_manager_unittest.cc
+++ b/chrome/browser/autofill/personal_data_manager_unittest.cc
@@ -111,7 +111,7 @@ TEST_F(PersonalDataManagerTest, AddProfile) {
autofill_test::SetProfileInfo(&profile0,
"John", "Mitchell", "Smith",
"j@s.com", "Acme Inc.", "1 Main", "Apt A", "San Francisco", "CA",
- "94102", "USA", "4158889999");
+ "94102", "US", "4158889999");
// Add profile0 to the database.
personal_data_->AddProfile(profile0);
@@ -981,7 +981,7 @@ TEST_F(PersonalDataManagerTest, AggregateSameProfileWithConflict) {
expected.GetRawMultiInfo(PHONE_HOME_WHOLE_NUMBER, &values);
values.push_back(ASCIIToUTF16("(650) 223-1234"));
expected.SetRawMultiInfo(PHONE_HOME_WHOLE_NUMBER, values);
- expected.SetRawInfo(ADDRESS_HOME_COUNTRY, ASCIIToUTF16("United States"));
+ expected.SetRawInfo(ADDRESS_HOME_COUNTRY, ASCIIToUTF16("US"));
ASSERT_EQ(1U, results2.size());
EXPECT_EQ(0, expected.Compare(*results2[0]));
}
@@ -1208,7 +1208,7 @@ TEST_F(PersonalDataManagerTest, AggregateExistingAuxiliaryProfile) {
autofill_test::SetProfileInfo(auxiliary_profile,
"Tester", "Frederick", "McAddressBookTesterson",
"tester@example.com", "Acme Inc.", "1 Main", "Apt A", "San Francisco",
- "CA", "94102", "USA", "1.415.888.9999");
+ "CA", "94102", "US", "1.415.888.9999");
ScopedVector<AutofillProfile>& auxiliary_profiles =
personal_data_->auxiliary_profiles_;
auxiliary_profiles.push_back(auxiliary_profile);
« no previous file with comments | « chrome/browser/autofill/autofill_profile_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698