| Index: components/autofill/core/browser/personal_data_manager_unittest.cc
|
| diff --git a/components/autofill/core/browser/personal_data_manager_unittest.cc b/components/autofill/core/browser/personal_data_manager_unittest.cc
|
| index 18bb0aebdd43692e5a59a927b3175659b6b0fd1f..3e918a3e69db1c8ef018ac6aabfbf338c1ead02f 100644
|
| --- a/components/autofill/core/browser/personal_data_manager_unittest.cc
|
| +++ b/components/autofill/core/browser/personal_data_manager_unittest.cc
|
| @@ -3406,11 +3406,11 @@ TEST_F(PersonalDataManagerTest, GetProfileSuggestions_HideSubsets) {
|
| EXPECT_EQ(base::ASCIIToUTF16("Hollywood, TX"), suggestions[1].label);
|
| }
|
|
|
| -// Tests that GetProfileSuggestions orders its suggestions based on the frecency
|
| -// formula.
|
| +// Tests that GetProfileSuggestions orders its suggestions based on the
|
| +// frequency formula.
|
| TEST_F(PersonalDataManagerTest, GetProfileSuggestions_Ranking) {
|
| // Set up the profiles. They are named with number suffixes X so the X is the
|
| - // order in which they should be ordered by frecency.
|
| + // order in which they should be ordered by frequency.
|
| AutofillProfile profile3(base::GenerateGUID(), "https://www.example.com");
|
| test::SetProfileInfo(&profile3, "Marion3", "Mitchell", "Morrison",
|
| "johnwayne@me.xyz", "Fox",
|
| @@ -3614,8 +3614,8 @@ TEST_F(PersonalDataManagerTest,
|
| EXPECT_EQ(ASCIIToUTF16("Bonnie Parker"), suggestions[4].value);
|
| }
|
|
|
| -// Test that expired cards are ordered by frecency and are always suggested
|
| -// after non expired cards even if they have a higher frecency score.
|
| +// Test that expired cards are ordered by frequency and are always suggested
|
| +// after non expired cards even if they have a higher frequency score.
|
| TEST_F(PersonalDataManagerTest, GetCreditCardSuggestions_ExpiredCards) {
|
| ASSERT_EQ(0U, personal_data_->GetCreditCards().size());
|
|
|
| @@ -3626,7 +3626,7 @@ TEST_F(PersonalDataManagerTest, GetCreditCardSuggestions_ExpiredCards) {
|
| "518765432109" /* Mastercard */, "04", "2999");
|
| personal_data_->AddCreditCard(credit_card0);
|
|
|
| - // Add an expired card with a higher frecency score.
|
| + // Add an expired card with a higher frequency score.
|
| CreditCard credit_card1("287151C8-6AB1-487C-9095-28E80BE5DA15",
|
| "https://www.example.com");
|
| test::SetCreditCardInfo(&credit_card1, "Clyde Barrow",
|
| @@ -3635,7 +3635,7 @@ TEST_F(PersonalDataManagerTest, GetCreditCardSuggestions_ExpiredCards) {
|
| credit_card1.set_use_date(base::Time::Now() - base::TimeDelta::FromDays(10));
|
| personal_data_->AddCreditCard(credit_card1);
|
|
|
| - // Add an expired card with a lower frecency score.
|
| + // Add an expired card with a lower frequency score.
|
| CreditCard credit_card2("1141084B-72D7-4B73-90CF-3D6AC154673B",
|
| "https://www.example.com");
|
| credit_card2.set_use_count(3);
|
| @@ -3659,7 +3659,7 @@ TEST_F(PersonalDataManagerTest, GetCreditCardSuggestions_ExpiredCards) {
|
| // The never used non expired card should be suggested first.
|
| EXPECT_EQ(ASCIIToUTF16("Bonnie Parker"), suggestions[0].value);
|
|
|
| - // The expired cards should be sorted by frecency
|
| + // The expired cards should be sorted by frequency
|
| EXPECT_EQ(ASCIIToUTF16("Clyde Barrow"), suggestions[1].value);
|
| EXPECT_EQ(ASCIIToUTF16("John Dillinger"), suggestions[2].value);
|
| }
|
| @@ -3814,6 +3814,9 @@ TEST_F(PersonalDataManagerTest,
|
| ASSERT_EQ(3U, suggestions.size());
|
| }
|
|
|
| +// Tests that credit card last used date suggestion can be generated correctly
|
| +// in different variations and locales
|
| +
|
| // Tests that only the full server card is kept when deduping with a local
|
| // duplicate of it.
|
| TEST_F(PersonalDataManagerTest,
|
|
|