Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: components/autofill/core/browser/autofill_manager_unittest.cc

Issue 770333006: Autofill - change presentation of credit card suggestions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve merge conflict Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/autofill_manager_unittest.cc
diff --git a/components/autofill/core/browser/autofill_manager_unittest.cc b/components/autofill/core/browser/autofill_manager_unittest.cc
index 38ec076580843aae094a4f5b2e63bbfa9da21d11..33a3b657ae25d0a0b264b30a99fc4e7da43c140d 100644
--- a/components/autofill/core/browser/autofill_manager_unittest.cc
+++ b/components/autofill/core/browser/autofill_manager_unittest.cc
@@ -859,9 +859,9 @@ TEST_F(AutofillManagerTest, GetCreditCardSuggestionsEmptyValue) {
// Test that we sent the right values to the external delegate.
external_delegate_->CheckSuggestions(
kDefaultPageID,
- Suggestion("************3456", "04/12", kVisaCard,
+ Suggestion("Visa - 3456", "04/12", kVisaCard,
autofill_manager_->GetPackedCreditCardID(4)),
- Suggestion("************8765", "10/14", kMasterCard,
+ Suggestion("MasterCard - 8765", "10/14", kMasterCard,
autofill_manager_->GetPackedCreditCardID(5)));
}
@@ -885,7 +885,7 @@ TEST_F(AutofillManagerTest, GetCreditCardSuggestionsMatchCharacter) {
// Test that we sent the right values to the external delegate.
external_delegate_->CheckSuggestions(
kDefaultPageID,
- Suggestion("************3456", "04/12", kVisaCard,
+ Suggestion("Visa - 3456", "04/12", kVisaCard,
autofill_manager_->GetPackedCreditCardID(4)));
}
@@ -989,11 +989,11 @@ TEST_F(AutofillManagerTest, GetCreditCardSuggestionsRepeatedObfuscatedNumber) {
// Test that we sent the right values to the external delegate.
external_delegate_->CheckSuggestions(
kDefaultPageID,
- Suggestion("************3456", "04/12", kVisaCard,
+ Suggestion("Visa - 3456", "04/12", kVisaCard,
autofill_manager_->GetPackedCreditCardID(4)),
- Suggestion("************8765", "10/14", kMasterCard,
+ Suggestion("MasterCard - 8765", "10/14", kMasterCard,
autofill_manager_->GetPackedCreditCardID(5)),
- Suggestion("************3456", "05/12", kMasterCard,
+ Suggestion("MasterCard - 3456", "05/12", kMasterCard,
autofill_manager_->GetPackedCreditCardID(7)));
}
@@ -1030,9 +1030,9 @@ TEST_F(AutofillManagerTest, GetAddressAndCreditCardSuggestions) {
// Test that we sent the credit card suggestions to the external delegate.
external_delegate_->CheckSuggestions(
kPageID2,
- Suggestion("************3456", "04/12", kVisaCard,
+ Suggestion("Visa - 3456", "04/12", kVisaCard,
autofill_manager_->GetPackedCreditCardID(4)),
- Suggestion("************8765", "10/14", kMasterCard,
+ Suggestion("MasterCard - 8765", "10/14", kMasterCard,
autofill_manager_->GetPackedCreditCardID(5)));
}
@@ -2931,7 +2931,7 @@ TEST_F(AutofillManagerTest, GetCreditCardSuggestionsForNumberSpitAcrossFields) {
external_delegate_->CheckSuggestions(
kDefaultPageID,
- Suggestion("************3456", "04/12", kVisaCard,
+ Suggestion("Visa - 3456", "04/12", kVisaCard,
autofill_manager_->GetPackedCreditCardID(4)));
}
« no previous file with comments | « chrome/browser/autofill/android/personal_data_manager_android.cc ('k') | components/autofill/core/browser/credit_card.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698