Home
last modified time | relevance | path

Searched refs:CreditCard (Results 1 – 25 of 92) sorted by relevance

1234

/external/chromium/chrome/browser/autofill/
Dcredit_card.cc40 if (!CreditCard::IsValidCreditCardNumber(number)) in GetCreditCardType()
138 CreditCard::CreditCard(const std::string& guid) in CreditCard() function in CreditCard
145 CreditCard::CreditCard() in CreditCard() function in CreditCard
152 CreditCard::CreditCard(const CreditCard& credit_card) : FormGroup() { in CreditCard() function in CreditCard
156 CreditCard::~CreditCard() {} in ~CreditCard()
158 void CreditCard::GetPossibleFieldTypes(const string16& text, in GetPossibleFieldTypes()
176 void CreditCard::GetAvailableFieldTypes(FieldTypeSet* available_types) const { in GetAvailableFieldTypes()
195 string16 CreditCard::GetInfo(AutofillFieldType type) const { in GetInfo()
242 void CreditCard::SetInfo(AutofillFieldType type, const string16& value) { in SetInfo()
281 const string16 CreditCard::Label() const { in Label()
[all …]
Dcredit_card.h18 class CreditCard : public FormGroup {
20 explicit CreditCard(const std::string& guid);
23 CreditCard();
24 CreditCard(const CreditCard& credit_card);
25 virtual ~CreditCard();
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);
Dcredit_card_unittest.cc16 CreditCard credit_card0; in TEST()
23 CreditCard credit_card00; in TEST()
32 CreditCard credit_card1; in TEST()
41 CreditCard credit_card2; in TEST()
50 CreditCard credit_card3; in TEST()
59 CreditCard credit_card4; in TEST()
69 CreditCard a, b; in TEST()
112 EXPECT_TRUE(CreditCard::IsValidCreditCardNumber(valid_numbers[i])); in TEST()
116 EXPECT_FALSE(CreditCard::IsValidCreditCardNumber(invalid_numbers[i])); in TEST()
121 CreditCard card; in TEST()
[all …]
Dpersonal_data_manager.cc195 const CreditCard** imported_credit_card) { in ImportFormData()
202 scoped_ptr<CreditCard> local_imported_credit_card(new CreditCard); in ImportFormData()
250 value = CreditCard::StripSeparators(value); in ImportFormData()
322 !CreditCard::IsValidCreditCardNumber( in ImportFormData()
329 for (std::vector<CreditCard*>::const_iterator iter = credit_cards_.begin(); in ImportFormData()
412 std::vector<CreditCard>* credit_cards) { in SetCreditCards()
422 std::mem_fun_ref(&CreditCard::IsEmpty)), in SetCreditCards()
431 for (std::vector<CreditCard*>::const_iterator iter = credit_cards_.begin(); in SetCreditCards()
433 if (!FindByGUID<CreditCard>(*credit_cards, (*iter)->guid())) in SetCreditCards()
438 for (std::vector<CreditCard>::iterator iter = credit_cards->begin(); in SetCreditCards()
[all …]
Dpersonal_data_manager.h83 const CreditCard** credit_card);
86 virtual void SaveImportedCreditCard(const CreditCard& imported_credit_card);
103 void SetCreditCards(std::vector<CreditCard>* credit_cards);
119 void AddCreditCard(const CreditCard& credit_card);
122 void UpdateCreditCard(const CreditCard& credit_card);
129 CreditCard* GetCreditCardByGUID(const std::string& guid);
148 virtual const std::vector<CreditCard*>& credit_cards();
246 ScopedVector<CreditCard> credit_cards_;
Dpersonal_data_manager_unittest.cc166 CreditCard creditcard0; in TEST_F()
170 CreditCard creditcard1; in TEST_F()
174 CreditCard creditcard2; in TEST_F()
187 std::vector<CreditCard> update; in TEST_F()
192 const std::vector<CreditCard*>& results1 = personal_data_->credit_cards(); in TEST_F()
207 const std::vector<CreditCard*>& results2 = personal_data_->credit_cards(); in TEST_F()
226 const std::vector<CreditCard*>& results3 = personal_data_->credit_cards(); in TEST_F()
245 CreditCard creditcard0; in TEST_F()
249 CreditCard creditcard1; in TEST_F()
276 std::vector<CreditCard> update_cc; in TEST_F()
[all …]
Dautofill_cc_infobar_delegate.h18 class CreditCard; variable
28 const CreditCard* credit_card,
52 scoped_ptr<const CreditCard> credit_card_;
/external/chromium_org/components/autofill/core/browser/
Dcredit_card.cc118 CreditCard::CreditCard(const std::string& guid, const std::string& origin) in CreditCard() function in autofill::CreditCard
125 CreditCard::CreditCard() in CreditCard() function in autofill::CreditCard
132 CreditCard::CreditCard(const CreditCard& credit_card) in CreditCard() function in autofill::CreditCard
137 CreditCard::~CreditCard() {} in ~CreditCard()
140 const base::string16 CreditCard::StripSeparators(const base::string16& number) { in StripSeparators()
148 base::string16 CreditCard::TypeForDisplay(const std::string& type) { in TypeForDisplay()
171 int CreditCard::IconResourceId(const std::string& type) { in IconResourceId()
201 std::string CreditCard::GetCreditCardType(const base::string16& number) { in GetCreditCardType()
291 base::string16 CreditCard::GetRawInfo(ServerFieldType type) const { in GetRawInfo()
338 void CreditCard::SetRawInfo(ServerFieldType type, in SetRawInfo()
[all …]
Dcredit_card.h21 class CreditCard : public AutofillDataModel {
23 CreditCard(const std::string& guid, const std::string& origin);
26 CreditCard();
27 CreditCard(const CreditCard& credit_card);
28 virtual ~CreditCard();
83 void operator=(const CreditCard& credit_card);
89 bool UpdateFromImportedCard(const CreditCard& imported_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;
[all …]
Dcredit_card_unittest.cc56 CreditCard credit_card0(base::GenerateGUID(), "https://www.example.com/"); in TEST()
63 CreditCard credit_card00(base::GenerateGUID(), "https://www.example.com/"); in TEST()
71 CreditCard credit_card1(base::GenerateGUID(), "https://www.example.com/"); in TEST()
79 CreditCard credit_card2(base::GenerateGUID(), "https://www.example.com/"); in TEST()
88 CreditCard credit_card3(base::GenerateGUID(), "https://www.example.com/"); in TEST()
97 CreditCard credit_card4(base::GenerateGUID(), "https://www.example.com/"); in TEST()
106 CreditCard credit_card5(base::GenerateGUID(), "https://www.example.com/"); in TEST()
118 CreditCard a(base::GenerateGUID(), "some origin"); in TEST()
122 CreditCard b(base::GenerateGUID(), "some other origin"); in TEST()
132 CreditCard a(base::GenerateGUID(), "https://www.example.com"); in TEST()
[all …]
Dtest_personal_data_manager.h27 void AddTestingCreditCard(CreditCard* credit_card);
30 virtual const std::vector<CreditCard*>& GetCreditCards() const OVERRIDE;
35 const CreditCard& imported_credit_card) OVERRIDE;
45 const CreditCard& imported_credit_card() { return imported_credit_card_; } in imported_credit_card()
49 std::vector<CreditCard*> credit_cards_;
51 CreditCard imported_credit_card_;
Dpersonal_data_manager.cc228 scoped_ptr<CreditCard>* imported_credit_card) { in ImportFormData()
230 scoped_ptr<CreditCard> local_imported_credit_card(new CreditCard); in ImportFormData()
339 for (std::vector<CreditCard*>::const_iterator iter = credit_cards_.begin(); in ImportFormData()
344 CreditCard card = **iter; in ImportFormData()
429 void PersonalDataManager::AddCreditCard(const CreditCard& credit_card) { in AddCreditCard()
436 if (FindByGUID<CreditCard>(credit_cards_, credit_card.guid())) in AddCreditCard()
453 void PersonalDataManager::UpdateCreditCard(const CreditCard& credit_card) { in UpdateCreditCard()
457 CreditCard* existing_credit_card = GetCreditCardByGUID(credit_card.guid()); in UpdateCreditCard()
484 bool is_credit_card = FindByGUID<CreditCard>(credit_cards_, guid); in RemoveByGUID()
502 CreditCard* PersonalDataManager::GetCreditCardByGUID(const std::string& guid) { in GetCreditCardByGUID()
[all …]
Dautofill_test_utils.h19 class CreditCard; variable
58 CreditCard GetCreditCard();
61 CreditCard GetCreditCard2();
64 CreditCard GetVerifiedCreditCard();
67 CreditCard GetVerifiedCreditCard2();
89 void SetCreditCardInfo(CreditCard* credit_card,
Dpersonal_data_manager.h37 void SetCreditCards(int, std::vector<autofill::CreditCard>*);
83 scoped_ptr<CreditCard>* credit_card);
93 const CreditCard& imported_credit_card);
110 void AddCreditCard(const CreditCard& credit_card);
113 void UpdateCreditCard(const CreditCard& credit_card);
117 CreditCard* GetCreditCardByGUID(const std::string& guid);
134 virtual const std::vector<CreditCard*>& GetCreditCards() const;
210 int, std::vector<autofill::CreditCard>*);
226 void SetCreditCards(std::vector<CreditCard>* credit_cards);
290 ScopedVector<CreditCard> credit_cards_;
Dpersonal_data_manager_unittest.cc254 CreditCard credit_card0(base::GenerateGUID(), "https://www.example.com"); in TEST_F()
258 CreditCard credit_card1(base::GenerateGUID(), "https://www.example.com"); in TEST_F()
262 CreditCard credit_card2(base::GenerateGUID(), "https://www.example.com"); in TEST_F()
275 const std::vector<CreditCard*>& results1 = personal_data_->GetCreditCards(); in TEST_F()
291 const std::vector<CreditCard*>& results2 = personal_data_->GetCreditCards(); in TEST_F()
302 const std::vector<CreditCard*>& results3 = personal_data_->GetCreditCards(); in TEST_F()
317 CreditCard credit_card(base::GenerateGUID(), "https://www.example.com/"); in TEST_F()
333 const std::vector<CreditCard*>& cards1 = personal_data_->GetCreditCards(); in TEST_F()
341 CreditCard original_credit_card(credit_card); in TEST_F()
355 const std::vector<CreditCard*>& cards2 = personal_data_->GetCreditCards(); in TEST_F()
[all …]
Dautofill_test_utils.cc137 CreditCard GetCreditCard() { in GetCreditCard()
138 CreditCard credit_card(base::GenerateGUID(), "http://www.example.com"); in GetCreditCard()
144 CreditCard GetCreditCard2() { in GetCreditCard2()
145 CreditCard credit_card(base::GenerateGUID(), "https://www.example.com"); in GetCreditCard2()
151 CreditCard GetVerifiedCreditCard() { in GetVerifiedCreditCard()
152 CreditCard credit_card(GetCreditCard()); in GetVerifiedCreditCard()
157 CreditCard GetVerifiedCreditCard2() { in GetVerifiedCreditCard2()
158 CreditCard credit_card(GetCreditCard2()); in GetVerifiedCreditCard2()
196 void SetCreditCardInfo(CreditCard* credit_card, in SetCreditCardInfo()
Dtest_personal_data_manager.cc23 void TestPersonalDataManager::AddTestingCreditCard(CreditCard* credit_card) { in AddTestingCreditCard()
34 const std::vector<CreditCard*>& TestPersonalDataManager::
46 const CreditCard& imported_credit_card) { in SaveImportedCreditCard()
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/
DPersonalDataManagerTest.java11 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard;
80 CreditCard card = new CreditCard( in testAddAndEditCreditCards()
86 CreditCard card2 = new CreditCard( in testAddAndEditCreditCards()
98 CreditCard storedCard = mHelper.getCreditCard(cardOneGUID); in testAddAndEditCreditCards()
111 CreditCard card = new CreditCard( in testAddAndDeleteCreditCard()
DAutofillTestHelper.java9 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard;
66 CreditCard getCreditCard(final String guid) throws ExecutionException {
67 return ThreadUtils.runOnUiThreadBlocking(new Callable<CreditCard>() {
69 public CreditCard call() {
84 String setCreditCard(final CreditCard card) throws InterruptedException, ExecutionException {
/external/chromium_org/chrome/browser/ui/autofill/
Dmock_new_credit_card_bubble_controller.h14 class CreditCard; variable
22 void Show(scoped_ptr<CreditCard> new_card,
25 const CreditCard* new_card() const { return new_card_.get(); } in new_card()
34 scoped_ptr<CreditCard> new_card_;
Dnew_credit_card_bubble_controller.h25 class CreditCard; variable
66 scoped_ptr<CreditCard> new_card,
102 virtual void SetupAndShow(scoped_ptr<CreditCard> new_card,
119 scoped_ptr<CreditCard> new_card_;
Dnew_credit_card_bubble_controller.cc40 scoped_ptr<CreditCard> new_card, in Show()
94 scoped_ptr<CreditCard> new_card, in SetupAndShow()
106 CreditCard::IconResourceId(CreditCard::GetCreditCardType(card_number))); in SetupAndShow()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/autofill/
DPersonalDataManager.java182 public static class CreditCard { class in PersonalDataManager
194 public static CreditCard create(String guid, String origin, String name, String number, in create()
196 return new CreditCard(guid, origin, name, number, obfuscatedNumber, month, year); in create()
199 public CreditCard(String guid, String origin, String name, String number, in CreditCard() method in PersonalDataManager.CreditCard
348 public List<CreditCard> getCreditCards() { in getCreditCards()
351 List<CreditCard> cards = new ArrayList<CreditCard>(count); in getCreditCards()
358 public CreditCard getCreditCard(String guid) { in getCreditCard()
363 public String setCreditCard(CreditCard card) { in setCreditCard()
404 private native CreditCard nativeGetCreditCardByIndex(long nativePersonalDataManagerAndroid, in nativeGetCreditCardByIndex()
406 private native CreditCard nativeGetCreditCardByGUID(long nativePersonalDataManagerAndroid, in nativeGetCreditCardByGUID()
[all …]
/external/chromium/chrome/browser/webdata/
Dautofill_change.h12 class CreditCard; variable
79 const CreditCard* credit_card);
82 const CreditCard* credit_card() const { return credit_card_; } in credit_card()
87 const CreditCard* credit_card_;
Dautofill_table.h19 class CreditCard; variable
221 bool AddCreditCard(const CreditCard& credit_card);
224 bool UpdateCreditCard(const CreditCard& credit_card);
232 bool GetCreditCard(const std::string& guid, CreditCard** credit_card);
236 virtual bool GetCreditCards(std::vector<CreditCard*>* credit_cards);
290 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, CreditCard);

1234