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

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

Issue 981343003: Fix flake in PersonalDataManagerTest.UpdateServerCreditCardUsageStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: xdisplaycheck Created 5 years, 9 months 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
« no previous file with comments | « no previous file | components/components_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1a005e650d645084a326e9e9dca4f0d720139298..9123f3ae8004b752b4c2b03dc0e174d6b926df3b 100644
--- a/components/autofill/core/browser/personal_data_manager_unittest.cc
+++ b/components/autofill/core/browser/personal_data_manager_unittest.cc
@@ -3142,7 +3142,8 @@ TEST_F(PersonalDataManagerTest, UpdateServerCreditCardUsageStats) {
EXPECT_EQ(2U, personal_data_->GetCreditCards()[2]->use_count());
EXPECT_NE(base::Time(), personal_data_->GetCreditCards()[2]->use_date());
- EXPECT_NE(initial_use_date, personal_data_->GetCreditCards()[2]->use_date());
+ // Time may or may not have elapsed between unmasking and RecordUseOf.
+ EXPECT_LE(initial_use_date, personal_data_->GetCreditCards()[2]->use_date());
}
} // namespace autofill
« no previous file with comments | « no previous file | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698