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

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

Issue 11360055: [Autofill] Rename GetInfo and SetInfo to GetRawInfo and SetRawInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase harder Created 8 years, 1 month 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/browser/autofill/autofill_manager_unittest.cc
diff --git a/chrome/browser/autofill/autofill_manager_unittest.cc b/chrome/browser/autofill/autofill_manager_unittest.cc
index 2bb9795277abc858fc44213fce749e231b0dd401..9da139f8deede185cadf5a1c976e31a00b9d6913 100644
--- a/chrome/browser/autofill/autofill_manager_unittest.cc
+++ b/chrome/browser/autofill/autofill_manager_unittest.cc
@@ -2246,7 +2246,7 @@ TEST_F(AutofillManagerTest, FillAddressFormWithVariantType) {
// Add a name variant to the Elvis profile.
AutofillProfile* profile = autofill_manager_->GetProfileWithGUID(
"00000000-0000-0000-0000-000000000001");
- const string16 elvis_name = profile->GetInfo(NAME_FULL);
+ const string16 elvis_name = profile->GetRawInfo(NAME_FULL);
std::vector<string16> name_variants;
name_variants.push_back(ASCIIToUTF16("Some Other Guy"));
@@ -2334,7 +2334,8 @@ TEST_F(AutofillManagerTest, FillPhoneNumber) {
AutofillProfile* work_profile = autofill_manager_->GetProfileWithGUID(
"00000000-0000-0000-0000-000000000002");
ASSERT_TRUE(work_profile != NULL);
- work_profile->SetInfo(PHONE_HOME_WHOLE_NUMBER, ASCIIToUTF16("16505554567"));
+ work_profile->SetRawInfo(PHONE_HOME_WHOLE_NUMBER,
+ ASCIIToUTF16("16505554567"));
GUIDPair guid(work_profile->guid(), 0);
GUIDPair empty(std::string(), 0);
@@ -2373,8 +2374,10 @@ TEST_F(AutofillManagerTest, FillPhoneNumber) {
// We should not be able to fill prefix and suffix fields for international
// numbers.
- work_profile->SetInfo(ADDRESS_HOME_COUNTRY, ASCIIToUTF16("United Kingdom"));
- work_profile->SetInfo(PHONE_HOME_WHOLE_NUMBER, ASCIIToUTF16("447700954321"));
+ work_profile->SetRawInfo(ADDRESS_HOME_COUNTRY,
+ ASCIIToUTF16("United Kingdom"));
+ work_profile->SetRawInfo(PHONE_HOME_WHOLE_NUMBER,
+ ASCIIToUTF16("447700954321"));
page_id = 3;
FillAutofillFormData(page_id, form_with_maxlength,
*form_with_maxlength.fields.begin(),
@@ -2411,7 +2414,7 @@ TEST_F(AutofillManagerTest, FillPhoneNumber) {
std::vector<string16> phone_variants;
phone_variants.push_back(ASCIIToUTF16("16505554567"));
phone_variants.push_back(ASCIIToUTF16("18887771234"));
- work_profile->SetInfo(ADDRESS_HOME_COUNTRY, ASCIIToUTF16("United States"));
+ work_profile->SetRawInfo(ADDRESS_HOME_COUNTRY, ASCIIToUTF16("United States"));
work_profile->SetMultiInfo(PHONE_HOME_WHOLE_NUMBER, phone_variants);
page_id = 5;
« no previous file with comments | « chrome/browser/autofill/autofill_ie_toolbar_import_win_unittest.cc ('k') | chrome/browser/autofill/autofill_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698