Home | History | Annotate | Download | only in webdata

Lines Matching refs:table_

128     table_.reset(new AutofillTable("en-US"));
130 db_->AddTable(table_.get());
136 scoped_ptr<AutofillTable> table_;
154 EXPECT_FALSE(table_->HasFormElements());
155 EXPECT_TRUE(table_->AddFormFieldValue(field, &changes));
156 EXPECT_TRUE(table_->HasFormElements());
160 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
165 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
171 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
191 EXPECT_TRUE(table_->GetFormValuesForElementName(
202 EXPECT_TRUE(table_->GetFormValuesForElementName(
211 EXPECT_TRUE(table_->GetFormValuesForElementName(
222 EXPECT_TRUE(table_->RemoveFormElementsAddedBetween(t1, Time(), &changes));
246 EXPECT_TRUE(table_->GetFormValuesForElementName(
254 EXPECT_TRUE(table_->AddFormFieldValue(field, &changes));
257 EXPECT_TRUE(table_->AddFormFieldValue(field, &changes));
260 EXPECT_TRUE(table_->AddFormFieldValue(field, &changes));
263 EXPECT_TRUE(table_->AddFormFieldValue(field, &changes));
268 EXPECT_TRUE(table_->GetFormValuesForElementName(
282 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes, t1));
283 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes, t2));
286 EXPECT_TRUE(table_->RemoveFormElementsAddedBetween(t1, t2, &changes));
295 table_->RemoveFormElementsAddedBetween(t2, t2 + one_day, &changes));
312 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes, t1));
321 table_->AddFormFieldValueTime(field, &changes, t2));
333 ASSERT_TRUE(table_->UpdateAutofillEntries(entries));
339 ASSERT_TRUE(table_->GetAllAutofillEntries(&all_entries));
348 ASSERT_TRUE(table_->UpdateAutofillEntries(entries));
354 ASSERT_TRUE(table_->GetAllAutofillEntries(&all_entries));
363 ASSERT_TRUE(table_->UpdateAutofillEntries(entries));
366 ASSERT_TRUE(table_->GetAutofillTimestamps(ASCIIToUTF16("foo"),
380 ASSERT_TRUE(table_->UpdateAutofillEntries(entries));
394 EXPECT_TRUE(table_->AddFormFieldValue(field, &changes));
399 ASSERT_TRUE(table_->UpdateAutofillEntries(entries));
402 ASSERT_TRUE(table_->GetAllAutofillEntries(&all_entries));
417 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes, t));
421 ASSERT_TRUE(table_->UpdateAutofillEntries(entries));
424 ASSERT_TRUE(table_->GetAllAutofillEntries(&all_entries));
458 table_->AddFormFieldValuesTime(elements, &changes, t);
469 ASSERT_TRUE(table_->GetAllAutofillEntries(&all_entries));
480 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
482 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
484 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
486 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
488 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
494 EXPECT_TRUE(table_->RemoveFormElementsAddedBetween(base::Time::FromTimeT(51),
508 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
510 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
512 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
514 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
516 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
522 EXPECT_TRUE(table_->RemoveFormElementsAddedBetween(base::Time::FromTimeT(40),
536 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
538 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
540 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
542 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
544 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
550 EXPECT_TRUE(table_->RemoveFormElementsAddedBetween(base::Time::FromTimeT(10),
567 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
569 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
571 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
573 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
575 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
581 EXPECT_TRUE(table_->RemoveFormElementsAddedBetween(base::Time::FromTimeT(40),
591 table_->GetAutofillTimestamps(field.name, field.value,
604 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
606 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
608 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
610 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
612 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
618 EXPECT_TRUE(table_->RemoveFormElementsAddedBetween(base::Time::FromTimeT(40),
628 table_->GetAutofillTimestamps(field.name, field.value,
656 EXPECT_TRUE(table_->AddAutofillProfile(home_profile));
661 ASSERT_TRUE(table_->GetAutofillProfile(home_profile.guid(), &db_profile));
683 EXPECT_TRUE(table_->AddAutofillProfile(billing_profile));
687 ASSERT_TRUE(table_->GetAutofillProfile(billing_profile.guid(), &db_profile));
702 EXPECT_TRUE(table_->UpdateAutofillProfile(billing_profile));
704 ASSERT_TRUE(table_->GetAutofillProfile(billing_profile.guid(), &db_profile));
737 EXPECT_TRUE(table_->UpdateAutofillProfile(billing_profile));
739 ASSERT_TRUE(table_->GetAutofillProfile(billing_profile.guid(), &db_profile));
755 EXPECT_TRUE(table_->RemoveAutofillProfile(billing_profile.guid()));
756 EXPECT_FALSE(table_->GetAutofillProfile(billing_profile.guid(), &db_profile));
768 EXPECT_TRUE(table_->AddAutofillProfile(p));
771 ASSERT_TRUE(table_->GetAutofillProfile(p.guid(), &db_profile));
780 EXPECT_TRUE(table_->UpdateAutofillProfile(p));
781 ASSERT_TRUE(table_->GetAutofillProfile(p.guid(), &db_profile));
789 EXPECT_TRUE(table_->UpdateAutofillProfile(p));
790 ASSERT_TRUE(table_->GetAutofillProfile(p.guid(), &db_profile));
806 EXPECT_TRUE(table_->AddAutofillProfile(p));
809 ASSERT_TRUE(table_->GetAutofillProfile(p.guid(), &db_profile));
818 EXPECT_TRUE(table_->UpdateAutofillProfile(p));
819 ASSERT_TRUE(table_->GetAutofillProfile(p.guid(), &db_profile));
827 EXPECT_TRUE(table_->UpdateAutofillProfile(p));
828 ASSERT_TRUE(table_->GetAutofillProfile(p.guid(), &db_profile));
844 EXPECT_TRUE(table_->AddAutofillProfile(p));
847 ASSERT_TRUE(table_->GetAutofillProfile(p.guid(), &db_profile));
856 EXPECT_TRUE(table_->UpdateAutofillProfile(p));
857 ASSERT_TRUE(table_->GetAutofillProfile(p.guid(), &db_profile));
865 EXPECT_TRUE(table_->UpdateAutofillProfile(p));
866 ASSERT_TRUE(table_->GetAutofillProfile(p.guid(), &db_profile));
875 table_->GetAutofillProfilesInTrash(&guids);
878 ASSERT_TRUE(table_->AddAutofillGUIDToTrash(
880 ASSERT_TRUE(table_->AddAutofillGUIDToTrash(
882 ASSERT_TRUE(table_->GetAutofillProfilesInTrash(&guids));
887 ASSERT_TRUE(table_->EmptyAutofillProfilesTrash());
888 ASSERT_TRUE(table_->GetAutofillProfilesInTrash(&guids));
894 table_->GetAutofillProfilesInTrash(&guids);
910 EXPECT_TRUE(table_->AddAutofillGUIDToTrash(profile.guid()));
911 EXPECT_TRUE(table_->AddAutofillProfile(profile));
913 EXPECT_FALSE(table_->GetAutofillProfile(profile.guid(), &added_profile));
917 EXPECT_TRUE(table_->EmptyAutofillProfilesTrash());
918 EXPECT_TRUE(table_->GetAutofillProfilesInTrash(&guids));
920 EXPECT_TRUE(table_->AddAutofillProfile(profile));
921 EXPECT_TRUE(table_->GetAutofillProfile(profile.guid(),
929 EXPECT_TRUE(table_->AddAutofillGUIDToTrash(profile.guid()));
931 EXPECT_TRUE(table_->UpdateAutofillProfile(profile));
933 EXPECT_TRUE(table_->GetAutofillProfile(profile.guid(), &updated_profile));
944 EXPECT_TRUE(table_->RemoveAutofillProfile(profile.guid()));
946 EXPECT_TRUE(table_->GetAutofillProfile(profile.guid(), &removed_profile));
947 EXPECT_FALSE(table_->IsAutofillGUIDInTrash(profile.guid()));
952 EXPECT_TRUE(table_->EmptyAutofillProfilesTrash());
953 EXPECT_TRUE(table_->RemoveAutofillProfile(profile.guid()));
955 EXPECT_FALSE(table_->GetAutofillProfile(profile.guid(), &removed_profile));
971 EXPECT_TRUE(table_->AddCreditCard(work_creditcard));
976 ASSERT_TRUE(table_->GetCreditCard(work_creditcard.guid(), &db_creditcard));
1001 EXPECT_TRUE(table_->AddCreditCard(target_creditcard));
1003 ASSERT_TRUE(table_->GetCreditCard(target_creditcard.guid(), &db_creditcard));
1021 EXPECT_TRUE(table_->UpdateCreditCard(target_creditcard));
1023 ASSERT_TRUE(table_->GetCreditCard(target_creditcard.guid(), &db_creditcard));
1038 EXPECT_TRUE(table_->RemoveCreditCard(target_creditcard.guid()));
1039 EXPECT_FALSE(table_->GetCreditCard(target_creditcard.guid(), &db_creditcard));
1058 table_->AddAutofillProfile(profile);
1071 ASSERT_TRUE(table_->GetAutofillProfile(profile.guid(), &tmp_profile));
1084 table_->UpdateAutofillProfile(profile);
1087 ASSERT_TRUE(table_->GetAutofillProfile(profile.guid(), &tmp_profile));
1108 table_->UpdateAutofillProfile(profile);
1111 ASSERT_TRUE(table_->GetAutofillProfile(profile.guid(), &tmp_profile));
1129 table_->AddCreditCard(credit_card);
1142 ASSERT_TRUE(table_->GetCreditCard(credit_card.guid(), &tmp_credit_card));
1155 table_->UpdateCreditCard(credit_card);
1158 ASSERT_TRUE(table_->GetCreditCard(credit_card.guid(), &tmp_credit_card));
1179 table_->UpdateCreditCard(credit_card);
1182 ASSERT_TRUE(table_->GetCreditCard(credit_card.guid(), &tmp_credit_card));
1208 table_->AddAutofillProfile(profile);
1221 ASSERT_TRUE(table_->GetAutofillProfile(profile.guid(), &tmp_profile));
1234 table_->UpdateAutofillProfile(profile);
1237 ASSERT_TRUE(table_->GetAutofillProfile(profile.guid(), &tmp_profile));
1255 table_->AddCreditCard(credit_card);
1268 ASSERT_TRUE(table_->GetCreditCard(credit_card.guid(), &tmp_credit_card));
1281 table_->UpdateCreditCard(credit_card);
1284 ASSERT_TRUE(table_->GetCreditCard(credit_card.guid(), &tmp_credit_card));
1326 table_->RemoveAutofillDataModifiedBetween(
1362 table_->RemoveAutofillDataModifiedBetween(
1389 table_->RemoveAutofillDataModifiedBetween(
1430 table_->RemoveOriginURLsModifiedBetween(
1464 table_->RemoveOriginURLsModifiedBetween(Time(), Time(), &profiles);
1496 ASSERT_TRUE(table_->GetAllAutofillEntries(&entries));
1510 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
1524 ASSERT_TRUE(table_->GetAllAutofillEntries(&entries));
1540 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
1551 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
1568 ASSERT_TRUE(table_->GetAllAutofillEntries(&entries));
1585 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes,
1601 ASSERT_TRUE(table_->GetAllAutofillEntries(&entries));