summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/personal_data_manager_unittest.cc
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-20 21:20:03 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-20 21:20:03 +0000
commit09205efb90f920a885b1803a68a148bfa54d79ee (patch)
treedd3747979ff833e460bd70e52cca2d100232283b /chrome/browser/autofill/personal_data_manager_unittest.cc
parent96ed237d4c3d8cd9d1a16851b7094b476c6c95e9 (diff)
downloadchromium_src-09205efb90f920a885b1803a68a148bfa54d79ee.zip
chromium_src-09205efb90f920a885b1803a68a148bfa54d79ee.tar.gz
chromium_src-09205efb90f920a885b1803a68a148bfa54d79ee.tar.bz2
Refactoring of upload, form saving, and UMA logging.
BUG=none TEST=PersonalDataManagerTest.*, AutoFillManagerTest.* Review URL: http://codereview.chromium.org/6286003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/personal_data_manager_unittest.cc')
-rw-r--r--chrome/browser/autofill/personal_data_manager_unittest.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/chrome/browser/autofill/personal_data_manager_unittest.cc b/chrome/browser/autofill/personal_data_manager_unittest.cc
index 787d9e1..5bc3c77 100644
--- a/chrome/browser/autofill/personal_data_manager_unittest.cc
+++ b/chrome/browser/autofill/personal_data_manager_unittest.cc
@@ -524,7 +524,7 @@ TEST_F(PersonalDataManagerTest, ImportFormData) {
"Email:", "email", "theprez@gmail.com", "text", &field);
form.fields.push_back(field);
FormStructure form_structure(form);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
@@ -557,7 +557,7 @@ TEST_F(PersonalDataManagerTest, DISABLED_ImportFormDataNotEnoughFilledFields) {
"Card number:", "card_number", "4111 1111 1111 1111", "text", &field);
form.fields.push_back(field);
FormStructure form_structure(form);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure);
EXPECT_FALSE(personal_data_->ImportFormData(forms));
@@ -593,7 +593,7 @@ TEST_F(PersonalDataManagerTest, ImportPhoneNumberSplitAcrossMultipleFields) {
field.set_max_length(4);
form.fields.push_back(field);
FormStructure form_structure(form);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
@@ -686,7 +686,7 @@ TEST_F(PersonalDataManagerTest, AggregateTwoDifferentProfiles) {
form1.fields.push_back(field);
FormStructure form_structure1(form1);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure1);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
@@ -762,7 +762,7 @@ TEST_F(PersonalDataManagerTest, AggregateSameProfileWithConflict) {
form1.fields.push_back(field);
FormStructure form_structure1(form1);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure1);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
@@ -841,7 +841,7 @@ TEST_F(PersonalDataManagerTest, AggregateProfileWithMissingInfoInOld) {
form1.fields.push_back(field);
FormStructure form_structure1(form1);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure1);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
@@ -918,7 +918,7 @@ TEST_F(PersonalDataManagerTest, AggregateProfileWithMissingInfoInNew) {
form1.fields.push_back(field);
FormStructure form_structure1(form1);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure1);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
@@ -986,7 +986,7 @@ TEST_F(PersonalDataManagerTest, AggregateTwoDifferentCreditCards) {
form1.fields.push_back(field);
FormStructure form_structure1(form1);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure1);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
personal_data_->SaveImportedCreditCard();
@@ -1059,7 +1059,7 @@ TEST_F(PersonalDataManagerTest, AggregateInvalidCreditCard) {
form1.fields.push_back(field);
FormStructure form_structure1(form1);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure1);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
personal_data_->SaveImportedCreditCard();
@@ -1124,7 +1124,7 @@ TEST_F(PersonalDataManagerTest, AggregateSameCreditCardWithConflict) {
form1.fields.push_back(field);
FormStructure form_structure1(form1);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure1);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
personal_data_->SaveImportedCreditCard();
@@ -1199,7 +1199,7 @@ TEST_F(PersonalDataManagerTest, AggregateEmptyCreditCardWithConflict) {
form1.fields.push_back(field);
FormStructure form_structure1(form1);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure1);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
personal_data_->SaveImportedCreditCard();
@@ -1265,7 +1265,7 @@ TEST_F(PersonalDataManagerTest, AggregateCreditCardWithMissingInfoInNew) {
form1.fields.push_back(field);
FormStructure form_structure1(form1);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure1);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
personal_data_->SaveImportedCreditCard();
@@ -1331,7 +1331,7 @@ TEST_F(PersonalDataManagerTest, AggregateCreditCardWithMissingInfoInOld) {
form1.fields.push_back(field);
FormStructure form_structure1(form1);
- std::vector<FormStructure*> forms;
+ std::vector<const FormStructure*> forms;
forms.push_back(&form_structure1);
EXPECT_TRUE(personal_data_->ImportFormData(forms));
personal_data_->SaveImportedCreditCard();