Home
last modified time | relevance | path

Searched refs:credit_card (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/components/autofill/core/browser/
Dautofill_test_utils.cc137 CreditCard credit_card(base::GenerateGUID(), "http://www.example.com"); in GetCreditCard() local
139 &credit_card, "Test User", "4111111111111111" /* Visa */, "11", "2017"); in GetCreditCard()
140 return credit_card; in GetCreditCard()
144 CreditCard credit_card(base::GenerateGUID(), "https://www.example.com"); in GetCreditCard2() local
146 &credit_card, "Someone Else", "378282246310005" /* AmEx */, "07", "2019"); in GetCreditCard2()
147 return credit_card; in GetCreditCard2()
151 CreditCard credit_card(GetCreditCard()); in GetVerifiedCreditCard() local
152 credit_card.set_origin(kSettingsOrigin); in GetVerifiedCreditCard()
153 return credit_card; in GetVerifiedCreditCard()
157 CreditCard credit_card(GetCreditCard2()); in GetVerifiedCreditCard2() local
[all …]
Dcredit_card.cc127 CreditCard::CreditCard(const CreditCard& credit_card) in CreditCard() argument
129 operator=(credit_card); in CreditCard()
494 void CreditCard::operator=(const CreditCard& credit_card) { in operator =() argument
495 if (this == &credit_card) in operator =()
498 number_ = credit_card.number_; in operator =()
499 name_on_card_ = credit_card.name_on_card_; in operator =()
500 type_ = credit_card.type_; in operator =()
501 expiration_month_ = credit_card.expiration_month_; in operator =()
502 expiration_year_ = credit_card.expiration_year_; in operator =()
504 set_guid(credit_card.guid()); in operator =()
[all …]
Dcredit_card.h27 CreditCard(const CreditCard& credit_card);
83 void operator=(const CreditCard& credit_card);
98 int Compare(const CreditCard& credit_card) const;
101 bool operator==(const CreditCard& credit_card) const;
102 bool operator!=(const CreditCard& credit_card) const;
154 std::ostream& operator<<(std::ostream& os, const CreditCard& credit_card);
Dpersonal_data_manager.cc436 void PersonalDataManager::AddCreditCard(const CreditCard& credit_card) { in AddCreditCard() argument
440 if (credit_card.IsEmpty(app_locale_)) in AddCreditCard()
443 if (FindByGUID<CreditCard>(credit_cards_, credit_card.guid())) in AddCreditCard()
450 if (FindByContents(credit_cards_, credit_card)) in AddCreditCard()
454 database_->AddCreditCard(credit_card); in AddCreditCard()
460 void PersonalDataManager::UpdateCreditCard(const CreditCard& credit_card) { in UpdateCreditCard() argument
464 CreditCard* existing_credit_card = GetCreditCardByGUID(credit_card.guid()); in UpdateCreditCard()
469 if (existing_credit_card->Compare(credit_card) == 0) in UpdateCreditCard()
472 if (credit_card.IsEmpty(app_locale_)) { in UpdateCreditCard()
473 RemoveByGUID(credit_card.guid()); in UpdateCreditCard()
[all …]
Dautofill_ie_toolbar_import_win_unittest.cc61 ValueDescription credit_card[] = { variable
155 CreateSubkey(&cc_key, L"0", credit_card, arraysize(credit_card)); in TEST_F()
186 EXPECT_EQ(credit_card[0].value, credit_cards[0].GetRawInfo(CREDIT_CARD_NAME)); in TEST_F()
189 EXPECT_EQ(credit_card[2].value, in TEST_F()
191 EXPECT_EQ(credit_card[3].value, in TEST_F()
Dtest_personal_data_manager.cc21 void TestPersonalDataManager::AddTestingCreditCard(CreditCard* credit_card) { in AddTestingCreditCard() argument
22 credit_cards_.push_back(credit_card); in AddTestingCreditCard()
Dautofill_ie_toolbar_import_win.cc290 CreditCard credit_card; in ImportCurrentUserProfiles() local
291 credit_card.set_origin(kIEToolbarImportOrigin); in ImportCurrentUserProfiles()
293 key, reg_to_field, app_locale, &credit_card, NULL)) { in ImportCurrentUserProfiles()
294 base::string16 cc_number = credit_card.GetRawInfo(CREDIT_CARD_NUMBER); in ImportCurrentUserProfiles()
296 credit_cards->push_back(credit_card); in ImportCurrentUserProfiles()
Dautofill_manager_unittest.cc90 void AddCreditCard(CreditCard* credit_card) { in AddCreditCard() argument
91 credit_cards_.push_back(credit_card); in AddCreditCard()
95 CreditCard* credit_card = GetCreditCardWithGUID(guid.c_str()); in RemoveByGUID() local
96 if (credit_card) { in RemoveByGUID()
98 std::find(credit_cards_.begin(), credit_cards_.end(), credit_card)); in RemoveByGUID()
126 CreditCard* credit_card = new CreditCard; in CreateTestCreditCardsYearAndMonth() local
127 test::SetCreditCardInfo(credit_card, "Miku Hatsune", in CreateTestCreditCardsYearAndMonth()
130 credit_card->set_guid("00000000-0000-0000-0000-000000000007"); in CreateTestCreditCardsYearAndMonth()
131 credit_cards_.push_back(credit_card); in CreateTestCreditCardsYearAndMonth()
159 CreditCard* credit_card = new CreditCard; in CreateTestCreditCards() local
[all …]
Dpersonal_data_manager.h86 scoped_ptr<CreditCard>* credit_card);
113 void AddCreditCard(const CreditCard& credit_card);
116 void UpdateCreditCard(const CreditCard& credit_card);
Dpersonal_data_manager_unittest.cc314 CreditCard credit_card(base::GenerateGUID(), "https://www.example.com/"); in TEST_F() local
315 test::SetCreditCardInfo(&credit_card, in TEST_F()
317 EXPECT_FALSE(credit_card.IsVerified()); in TEST_F()
321 personal_data_->AddCreditCard(credit_card); in TEST_F()
334 EXPECT_EQ(0, credit_card.Compare(*cards1[0])); in TEST_F()
338 CreditCard original_credit_card(credit_card); in TEST_F()
340 credit_card.set_origin("Chrome settings"); in TEST_F()
343 EXPECT_TRUE(credit_card.IsVerified()); in TEST_F()
346 personal_data_->UpdateCreditCard(credit_card); in TEST_F()
356 EXPECT_NE(credit_card.origin(), cards2[0]->origin()); in TEST_F()
[all …]
Dautofill_test_utils.h85 void SetCreditCardInfo(CreditCard* credit_card,
Dtest_personal_data_manager.h27 void AddTestingCreditCard(CreditCard* credit_card);
DBUILD.gn81 "credit_card.cc",
82 "credit_card.h",
/external/chromium_org/chrome/browser/ui/webui/options/
Dautofill_options_handler.cc536 CreditCard* credit_card = personal_data_->GetCreditCardByGUID(guid); in LoadCreditCardEditor() local
537 if (!credit_card) { in LoadCreditCardEditor()
547 credit_card_data.SetString("guid", credit_card->guid()); in LoadCreditCardEditor()
550 credit_card->GetRawInfo(autofill::CREDIT_CARD_NAME)); in LoadCreditCardEditor()
553 credit_card->GetRawInfo(autofill::CREDIT_CARD_NUMBER)); in LoadCreditCardEditor()
556 credit_card->GetRawInfo(autofill::CREDIT_CARD_EXP_MONTH)); in LoadCreditCardEditor()
559 credit_card->GetRawInfo(autofill::CREDIT_CARD_EXP_4_DIGIT_YEAR)); in LoadCreditCardEditor()
645 CreditCard credit_card(guid, kSettingsOrigin); in SetCreditCard() local
649 credit_card.SetRawInfo(autofill::CREDIT_CARD_NAME, value); in SetCreditCard()
652 credit_card.SetRawInfo(autofill::CREDIT_CARD_NUMBER, value); in SetCreditCard()
[all …]
/external/chromium_org/components/autofill/core/browser/webdata/
Dautofill_table.cc121 void BindCreditCardToStatement(const CreditCard& credit_card, in BindCreditCardToStatement() argument
123 DCHECK(base::IsValidGUID(credit_card.guid())); in BindCreditCardToStatement()
125 s->BindString(index++, credit_card.guid()); in BindCreditCardToStatement()
127 s->BindString16(index++, GetInfo(credit_card, CREDIT_CARD_NAME)); in BindCreditCardToStatement()
128 s->BindString16(index++, GetInfo(credit_card, CREDIT_CARD_EXP_MONTH)); in BindCreditCardToStatement()
129 s->BindString16(index++, GetInfo(credit_card, CREDIT_CARD_EXP_4_DIGIT_YEAR)); in BindCreditCardToStatement()
132 OSCrypt::EncryptString16(credit_card.GetRawInfo(CREDIT_CARD_NUMBER), in BindCreditCardToStatement()
138 s->BindString(index++, credit_card.origin()); in BindCreditCardToStatement()
142 scoped_ptr<CreditCard> credit_card(new CreditCard); in CreditCardFromStatement() local
145 credit_card->set_guid(s.ColumnString(index++)); in CreditCardFromStatement()
[all …]
Dautofill_webdata_service.cc140 void AutofillWebDataService::AddCreditCard(const CreditCard& credit_card) { in AddCreditCard() argument
144 autofill_backend_, credit_card)); in AddCreditCard()
148 const CreditCard& credit_card) { in UpdateCreditCard() argument
152 autofill_backend_, credit_card)); in UpdateCreditCard()
Dautofill_table_unittest.cc1124 CreditCard credit_card; in TEST_F() local
1125 credit_card.SetRawInfo(CREDIT_CARD_NAME, ASCIIToUTF16("Jack Torrance")); in TEST_F()
1126 credit_card.SetRawInfo(CREDIT_CARD_NUMBER, ASCIIToUTF16("1234567890123456")); in TEST_F()
1127 credit_card.SetRawInfo(CREDIT_CARD_EXP_MONTH, ASCIIToUTF16("04")); in TEST_F()
1128 credit_card.SetRawInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR, ASCIIToUTF16("2013")); in TEST_F()
1129 table_->AddCreditCard(credit_card); in TEST_F()
1142 ASSERT_TRUE(table_->GetCreditCard(credit_card.guid(), &tmp_credit_card)); in TEST_F()
1144 EXPECT_EQ(credit_card, *db_credit_card); in TEST_F()
1154 credit_card.SetRawInfo(CREDIT_CARD_EXP_MONTH, ASCIIToUTF16("01")); in TEST_F()
1155 table_->UpdateCreditCard(credit_card); in TEST_F()
[all …]
Dautofill_webdata.h84 virtual void AddCreditCard(const CreditCard& credit_card) = 0;
87 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0;
Dautofill_table.h216 bool AddCreditCard(const CreditCard& credit_card);
219 bool UpdateCreditCard(const CreditCard& credit_card);
227 bool GetCreditCard(const std::string& guid, CreditCard** credit_card);
Dweb_data_service_unittest.cc417 CreditCard credit_card; in TEST_F() local
420 wds_->AddCreditCard(credit_card); in TEST_F()
429 EXPECT_EQ(credit_card, *consumer.result()[0]); in TEST_F()
433 wds_->RemoveCreditCard(credit_card.guid()); in TEST_F()
504 CreditCard credit_card; in TEST_F() local
505 wds_->AddCreditCard(credit_card); in TEST_F()
514 EXPECT_EQ(credit_card, *card_consumer.result()[0]); in TEST_F()
Dautofill_webdata_backend_impl.cc260 const CreditCard& credit_card, WebDatabase* db) { in AddCreditCard() argument
262 if (!AutofillTable::FromWebDatabase(db)->AddCreditCard(credit_card)) { in AddCreditCard()
271 const CreditCard& credit_card, WebDatabase* db) { in UpdateCreditCard() argument
276 if (!AutofillTable::FromWebDatabase(db)->GetCreditCard(credit_card.guid(), in UpdateCreditCard()
282 if (!AutofillTable::FromWebDatabase(db)->UpdateCreditCard(credit_card)) { in UpdateCreditCard()
Dautofill_webdata_service.h75 virtual void AddCreditCard(const CreditCard& credit_card) OVERRIDE;
76 virtual void UpdateCreditCard(const CreditCard& credit_card) OVERRIDE;
Dautofill_webdata_backend_impl.h122 WebDatabase::State AddCreditCard(const CreditCard& credit_card,
126 WebDatabase::State UpdateCreditCard(const CreditCard& credit_card,
/external/chromium_org/chrome/browser/autofill/
Dautofill_cc_infobar_delegate_unittest.cc97 CreditCard credit_card; in CreateDelegate() local
103 credit_card)); in CreateDelegate()
/external/chromium_org/components/webdata/common/
Dweb_database_migration_unittest.cc91 CreditCard* credit_card, in CreditCard31FromStatement() argument
96 DCHECK(credit_card); in CreditCard31FromStatement()
103 credit_card->SetRawInfo(autofill::CREDIT_CARD_NAME, s.ColumnString16(2)); in CreditCard31FromStatement()
104 credit_card->SetRawInfo(autofill::CREDIT_CARD_TYPE, s.ColumnString16(3)); in CreditCard31FromStatement()
105 credit_card->SetRawInfo(autofill::CREDIT_CARD_EXP_MONTH, s.ColumnString16(5)); in CreditCard31FromStatement()
106 credit_card->SetRawInfo( in CreditCard31FromStatement()
114 credit_card->set_guid(s.ColumnString(13)); in CreditCard31FromStatement()
115 EXPECT_TRUE(base::IsValidGUID(credit_card->guid())); in CreditCard31FromStatement()
119 CreditCard* credit_card, in CreditCard32FromStatement() argument
122 DCHECK(credit_card); in CreditCard32FromStatement()
[all …]

12