| Index: components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| diff --git a/components/autofill/core/browser/webdata/autofill_table_unittest.cc b/components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| index e8da2b128439aaaf8e33c75864301cdc0fe99140..a04d4d1be80fc630dd191d9bc8dbd99402d3d127 100644
|
| --- a/components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| +++ b/components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| @@ -1823,8 +1823,8 @@ TEST_F(AutofillTableTest, SetServerProfileUpdateUsageStats) {
|
| table_->GetServerProfiles(&outputs);
|
| ASSERT_EQ(1u, outputs.size());
|
| EXPECT_EQ(one.server_id(), outputs[0]->server_id());
|
| - EXPECT_EQ(0U, outputs[0]->use_count());
|
| - EXPECT_EQ(base::Time(), outputs[0]->use_date());
|
| + EXPECT_EQ(1U, outputs[0]->use_count());
|
| + EXPECT_NE(base::Time(), outputs[0]->use_date());
|
| // We don't track modification date for server profiles. It should always be
|
| // base::Time().
|
| EXPECT_EQ(base::Time(), outputs[0]->modification_date());
|
| @@ -1851,18 +1851,6 @@ TEST_F(AutofillTableTest, SetServerProfileUpdateUsageStats) {
|
| EXPECT_NE(base::Time(), outputs[0]->use_date());
|
| EXPECT_EQ(base::Time(), outputs[0]->modification_date());
|
| outputs.clear();
|
| -
|
| - // Set a null profile list --- this should clear metadata.
|
| - table_->SetServerProfiles(std::vector<AutofillProfile>());
|
| - // Reset the old profile list and see the metadata is reset.
|
| - table_->SetServerProfiles(inputs);
|
| - table_->GetServerProfiles(&outputs);
|
| - ASSERT_EQ(1u, outputs.size());
|
| - EXPECT_EQ(one.server_id(), outputs[0]->server_id());
|
| - EXPECT_EQ(0U, outputs[0]->use_count());
|
| - EXPECT_EQ(base::Time(), outputs[0]->use_date());
|
| - EXPECT_EQ(base::Time(), outputs[0]->modification_date());
|
| - outputs.clear();
|
| }
|
|
|
| // Tests that deleting time ranges re-masks server credit cards that were
|
|
|