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

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

Issue 2639403002: [Autofill] Remove direct use of base::Time::Now() in Autofill (Closed)
Patch Set: Rebase Created 3 years, 11 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
Index: components/autofill/core/browser/autofill_data_model_unittest.cc
diff --git a/components/autofill/core/browser/autofill_data_model_unittest.cc b/components/autofill/core/browser/autofill_data_model_unittest.cc
index 990217406a179780f6813e0ac7415d4a4c2d49f1..a05824f0c4d749ce167d82c4c44e737e7f5b1594 100644
--- a/components/autofill/core/browser/autofill_data_model_unittest.cc
+++ b/components/autofill/core/browser/autofill_data_model_unittest.cc
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/time/time.h"
+#include "components/autofill/core/browser/autofill_clock.h"
#include "components/autofill/core/common/autofill_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -72,7 +73,7 @@ TEST(AutofillDataModelTest, IsVerified) {
}
TEST(AutofillDataModelTest, CompareFrecency) {
- base::Time now = base::Time::Now();
+ base::Time now = AutofillClock::Now();
enum Expectation { GREATER, LESS };
struct {

Powered by Google App Engine
This is Rietveld 408576698