Home
last modified time | relevance | path

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

12

/external/chromium/chrome/browser/autofill/
Dcredit_card.cc152 CreditCard::CreditCard(const CreditCard& credit_card) : FormGroup() { in CreditCard() argument
153 operator=(credit_card); in CreditCard()
343 void CreditCard::operator=(const CreditCard& credit_card) { in operator =() argument
344 if (this == &credit_card) in operator =()
347 number_ = credit_card.number_; in operator =()
348 name_on_card_ = credit_card.name_on_card_; in operator =()
349 type_ = credit_card.type_; in operator =()
350 expiration_month_ = credit_card.expiration_month_; in operator =()
351 expiration_year_ = credit_card.expiration_year_; in operator =()
352 guid_ = credit_card.guid_; in operator =()
[all …]
Dselect_control_handler_unittest.cc25 CreditCard credit_card; in TEST() local
26 credit_card.SetInfo(CREDIT_CARD_EXP_MONTH, ASCIIToUTF16("01")); in TEST()
27 autofill::FillSelectControl(credit_card, CREDIT_CARD_EXP_MONTH, &field); in TEST()
44 CreditCard credit_card; in TEST() local
45 credit_card.SetInfo(CREDIT_CARD_EXP_MONTH, ASCIIToUTF16("01")); in TEST()
46 autofill::FillSelectControl(credit_card, CREDIT_CARD_EXP_MONTH, &field); in TEST()
63 CreditCard credit_card; in TEST() local
64 credit_card.SetInfo(CREDIT_CARD_EXP_MONTH, ASCIIToUTF16("01")); in TEST()
65 autofill::FillSelectControl(credit_card, CREDIT_CARD_EXP_MONTH, &field); in TEST()
81 CreditCard credit_card; in TEST() local
[all …]
Dcredit_card.h24 CreditCard(const CreditCard& credit_card);
51 void operator=(const CreditCard& credit_card);
59 int Compare(const CreditCard& credit_card) const;
62 bool operator==(const CreditCard& credit_card) const;
63 bool operator!=(const CreditCard& credit_card) const;
131 std::ostream& operator<<(std::ostream& os, const CreditCard& credit_card);
Dautofill_common_test.cc68 void SetCreditCardInfo(CreditCard* credit_card, in SetCreditCardInfo() argument
71 check_and_set(credit_card, CREDIT_CARD_NAME, name_on_card); in SetCreditCardInfo()
72 check_and_set(credit_card, CREDIT_CARD_NUMBER, card_number); in SetCreditCardInfo()
73 check_and_set(credit_card, CREDIT_CARD_EXP_MONTH, expiration_month); in SetCreditCardInfo()
74 check_and_set(credit_card, CREDIT_CARD_EXP_4_DIGIT_YEAR, expiration_year); in SetCreditCardInfo()
Dautofill_manager.cc519 const CreditCard* credit_card = NULL; in OnFillAutofillFormData() local
524 credit_card = *iter; in OnFillAutofillFormData()
528 DCHECK(credit_card); in OnFillAutofillFormData()
531 if (!profile && !credit_card) in OnFillAutofillFormData()
536 FindSectionBounds(*form_structure, *autofill_field, (credit_card != NULL), in OnFillAutofillFormData()
555 FillCreditCardFormField(credit_card, field_type, &(*iter)); in OnFillAutofillFormData()
607 FillCreditCardFormField(credit_card, field_type, &result.fields[j]); in OnFillAutofillFormData()
928 CreditCard* credit_card = *iter; local
931 string16 creditcard_field_value = credit_card->GetInfo(type);
935 creditcard_field_value = credit_card->ObfuscatedNumber();
[all …]
Dautofill_ie_toolbar_import_win_unittest.cc61 ValueDescription credit_card[] = { variable
154 CreateSubkey(&cc_key, L"0", credit_card, arraysize(credit_card)); in TEST_F()
186 EXPECT_EQ(credit_cards[0].GetInfo(CREDIT_CARD_NAME), credit_card[0].value); in TEST_F()
189 credit_card[2].value); in TEST_F()
191 credit_card[3].value); in TEST_F()
Dpersonal_data_manager.h72 const CreditCard** credit_card);
108 void AddCreditCard(const CreditCard& credit_card);
111 void UpdateCreditCard(const CreditCard& credit_card);
Dautofill_manager_unittest.cc76 void AddCreditCard(CreditCard* credit_card) { in AddCreditCard() argument
77 credit_cards_->push_back(credit_card); in AddCreditCard()
90 CreditCard* credit_card = new CreditCard; in CreateTestCreditCardsYearAndMonth() local
91 autofill_test::SetCreditCardInfo(credit_card, "Miku Hatsune", in CreateTestCreditCardsYearAndMonth()
94 credit_card->set_guid("00000000-0000-0000-0000-000000000007"); in CreateTestCreditCardsYearAndMonth()
95 credit_cards_->push_back(credit_card); in CreateTestCreditCardsYearAndMonth()
124 CreditCard* credit_card = new CreditCard; in CreateTestCreditCards() local
125 autofill_test::SetCreditCardInfo(credit_card, "Elvis Presley", in CreateTestCreditCards()
128 credit_card->set_guid("00000000-0000-0000-0000-000000000004"); in CreateTestCreditCards()
129 credit_cards->push_back(credit_card); in CreateTestCreditCards()
[all …]
Dautofill_ie_toolbar_import_win.cc247 CreditCard credit_card; in ImportCurrentUserProfiles() local
248 if (ImportSingleProfile(&credit_card, &key, reg_to_field)) { in ImportCurrentUserProfiles()
249 string16 cc_number = credit_card.GetInfo(CREDIT_CARD_NUMBER); in ImportCurrentUserProfiles()
251 credit_cards->push_back(credit_card); in ImportCurrentUserProfiles()
Dautofill_cc_infobar_delegate.cc19 const CreditCard* credit_card, in AutofillCCInfoBarDelegate() argument
23 credit_card_(credit_card), in AutofillCCInfoBarDelegate()
Dpersonal_data_manager.cc533 void PersonalDataManager::AddCreditCard(const CreditCard& credit_card) { in AddCreditCard() argument
539 credit_cards.push_back(credit_card); in AddCreditCard()
543 void PersonalDataManager::UpdateCreditCard(const CreditCard& credit_card) { in UpdateCreditCard() argument
552 if ((*iter)->guid() == credit_card.guid()) { in UpdateCreditCard()
554 *iter = new CreditCard(credit_card); in UpdateCreditCard()
559 wds->UpdateCreditCard(credit_card); in UpdateCreditCard()
611 const FormGroup* credit_card = *iter; in GetPossibleFieldTypes() local
612 if (!credit_card) { in GetPossibleFieldTypes()
617 credit_card->GetPossibleFieldTypes(clean_info, possible_types); in GetPossibleFieldTypes()
Dautofill_metrics_unittest.cc858 CreditCard* credit_card; in TEST_F() local
864 credit_card = new CreditCard(); in TEST_F()
866 credit_card, in TEST_F()
870 EXPECT_CALL(*test_personal_data_.get(), SaveImportedCreditCard(*credit_card)); in TEST_F()
880 credit_card = new CreditCard(); in TEST_F()
882 credit_card, in TEST_F()
895 credit_card = new CreditCard(); in TEST_F()
897 credit_card, in TEST_F()
910 credit_card = new CreditCard(); in TEST_F()
912 credit_card, in TEST_F()
Dautofill_common_test.h47 void SetCreditCardInfo(CreditCard* credit_card,
Dautofill_cc_infobar_delegate.h28 const CreditCard* credit_card,
/external/chromium/chrome/browser/webdata/
Dautofill_change.cc37 Type type, std::string key, const CreditCard* credit_card) in AutofillCreditCardChange() argument
38 : GenericAutofillChange<std::string>(type, key), credit_card_(credit_card) { in AutofillCreditCardChange()
39 DCHECK(type == ADD ? (credit_card && credit_card->guid() == key) : true); in AutofillCreditCardChange()
40 DCHECK(type == UPDATE ? (credit_card && credit_card->guid() == key) : true); in AutofillCreditCardChange()
41 DCHECK(type == REMOVE ? !credit_card : true); in AutofillCreditCardChange()
51 (type() != REMOVE) ? *credit_card() == *change.credit_card() : true; in operator ==()
Dautofill_table.cc102 void BindCreditCardToStatement(const CreditCard& credit_card, in BindCreditCardToStatement() argument
104 DCHECK(guid::IsValidGUID(credit_card.guid())); in BindCreditCardToStatement()
105 s->BindString(0, credit_card.guid()); in BindCreditCardToStatement()
107 string16 text = credit_card.GetInfo(CREDIT_CARD_NAME); in BindCreditCardToStatement()
109 text = credit_card.GetInfo(CREDIT_CARD_EXP_MONTH); in BindCreditCardToStatement()
111 text = credit_card.GetInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR); in BindCreditCardToStatement()
113 text = credit_card.GetInfo(CREDIT_CARD_NUMBER); in BindCreditCardToStatement()
122 CreditCard* credit_card = new CreditCard; in CreditCardFromStatement() local
124 credit_card->set_guid(s.ColumnString(0)); in CreditCardFromStatement()
125 DCHECK(guid::IsValidGUID(credit_card->guid())); in CreditCardFromStatement()
[all …]
Dweb_database_migration_unittest.cc104 CreditCard* credit_card, in CreditCard31FromStatement() argument
109 DCHECK(credit_card); in CreditCard31FromStatement()
116 credit_card->SetInfo(CREDIT_CARD_NAME, s.ColumnString16(2)); in CreditCard31FromStatement()
117 credit_card->SetInfo(CREDIT_CARD_TYPE, s.ColumnString16(3)); in CreditCard31FromStatement()
118 credit_card->SetInfo(CREDIT_CARD_EXP_MONTH, s.ColumnString16(5)); in CreditCard31FromStatement()
119 credit_card->SetInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR, s.ColumnString16(6)); in CreditCard31FromStatement()
126 credit_card->set_guid(s.ColumnString(13)); in CreditCard31FromStatement()
127 EXPECT_TRUE(guid::IsValidGUID(credit_card->guid())); in CreditCard31FromStatement()
131 CreditCard* credit_card, in CreditCard32FromStatement() argument
134 DCHECK(credit_card); in CreditCard32FromStatement()
[all …]
Dweb_data_service_unittest.cc403 CreditCard credit_card; in TEST_F() local
408 wds_->AddCreditCard(credit_card); in TEST_F()
417 EXPECT_EQ(credit_card, *consumer.result()[0]); in TEST_F()
422 AutofillCreditCardChange::REMOVE, credit_card.guid(), NULL); in TEST_F()
431 wds_->RemoveCreditCard(credit_card.guid()); in TEST_F()
517 CreditCard credit_card; in TEST_F() local
518 wds_->AddCreditCard(credit_card); in TEST_F()
528 EXPECT_EQ(credit_card, *card_consumer.result()[0]); in TEST_F()
544 AutofillCreditCardChange::REMOVE, credit_card.guid(), NULL); in TEST_F()
Dautofill_change.h79 const CreditCard* credit_card);
82 const CreditCard* credit_card() const { return credit_card_; } in credit_card() function
Dweb_data_service.cc448 void WebDataService::AddCreditCard(const CreditCard& credit_card) { in AddCreditCard() argument
451 this, GetNextRequestHandle(), NULL, credit_card); in AddCreditCard()
458 void WebDataService::UpdateCreditCard(const CreditCard& credit_card) { in UpdateCreditCard() argument
461 this, GetNextRequestHandle(), NULL, credit_card); in UpdateCreditCard()
1164 const CreditCard& credit_card = request->GetArgument(); in AddCreditCardImpl() local
1165 if (!db_->GetAutofillTable()->AddCreditCard(credit_card)) { in AddCreditCardImpl()
1173 credit_card.guid(), &credit_card); in AddCreditCardImpl()
1186 const CreditCard& credit_card = request->GetArgument(); in UpdateCreditCardImpl() local
1191 if (!db_->GetAutofillTable()->GetCreditCard(credit_card.guid(), in UpdateCreditCardImpl()
1198 if (!db_->GetAutofillTable()->UpdateCreditCard(credit_card)) { in UpdateCreditCardImpl()
[all …]
Dautofill_table.h221 bool AddCreditCard(const CreditCard& credit_card);
224 bool UpdateCreditCard(const CreditCard& credit_card);
232 bool GetCreditCard(const std::string& guid, CreditCard** credit_card);
Dautofill_table_unittest.cc1254 CreditCard credit_card; in TEST_F() local
1255 credit_card.SetInfo(CREDIT_CARD_NAME, ASCIIToUTF16("Jack Torrance")); in TEST_F()
1256 credit_card.SetInfo(CREDIT_CARD_NUMBER, ASCIIToUTF16("1234567890123456")); in TEST_F()
1257 credit_card.SetInfo(CREDIT_CARD_EXP_MONTH, ASCIIToUTF16("04")); in TEST_F()
1258 credit_card.SetInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR, ASCIIToUTF16("2013")); in TEST_F()
1259 db.GetAutofillTable()->AddCreditCard(credit_card); in TEST_F()
1271 ASSERT_TRUE(db.GetAutofillTable()->GetCreditCard(credit_card.guid(), in TEST_F()
1274 EXPECT_EQ(credit_card, *db_credit_card); in TEST_F()
1284 credit_card.SetInfo(CREDIT_CARD_EXP_MONTH, ASCIIToUTF16("01")); in TEST_F()
1285 db.GetAutofillTable()->UpdateCreditCard(credit_card); in TEST_F()
[all …]
Dweb_data_service.h475 void AddCreditCard(const CreditCard& credit_card);
478 void UpdateCreditCard(const CreditCard& credit_card);
/external/chromium/chrome/browser/ui/webui/options/
Dautofill_options_handler.cc354 CreditCard* credit_card = personal_data_->GetCreditCardByGUID(guid); in LoadCreditCardEditor() local
355 if (!credit_card) { in LoadCreditCardEditor()
365 credit_card_data.SetString("guid", credit_card->guid()); in LoadCreditCardEditor()
367 credit_card->GetInfo(CREDIT_CARD_NAME)); in LoadCreditCardEditor()
369 credit_card->GetInfo(CREDIT_CARD_NUMBER)); in LoadCreditCardEditor()
371 credit_card->GetInfo(CREDIT_CARD_EXP_MONTH)); in LoadCreditCardEditor()
374 credit_card->GetInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR)); in LoadCreditCardEditor()
436 CreditCard credit_card(guid); in SetCreditCard() local
440 credit_card.SetInfo(CREDIT_CARD_NAME, value); in SetCreditCard()
442 credit_card.SetInfo(CREDIT_CARD_NUMBER, value); in SetCreditCard()
[all …]
/external/chromium/chrome/browser/sync/protocol/
Dautofill_specifics.proto85 // name/value or credit_card) should be present.
92 // |credit_card| in that case.
97 optional AutofillCreditCardSpecifics credit_card = 6; field

12