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

Unified Diff: components/policy/core/common/cloud/cloud_policy_service_unittest.cc

Issue 2830033003: Use {To/From}JavaTime for policy timestamps (Closed)
Patch Set: Rebase Created 3 years, 8 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/policy/core/common/cloud/cloud_policy_service_unittest.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_service_unittest.cc b/components/policy/core/common/cloud/cloud_policy_service_unittest.cc
index 46406d28ef502b96b47820ca6818630d75b1b84f..8888272115cd3093af6686ed9f3749829d9d3598 100644
--- a/components/policy/core/common/cloud/cloud_policy_service_unittest.cc
+++ b/components/policy/core/common/cloud/cloud_policy_service_unittest.cc
@@ -80,8 +80,7 @@ TEST_F(CloudPolicyServiceTest, PolicyUpdateSuccess) {
SetupRegistration(store_.policy_->request_token(),
store_.policy_->device_id())).Times(1);
store_.NotifyStoreLoaded();
- EXPECT_EQ(base::Time::UnixEpoch() + base::TimeDelta::FromMilliseconds(32),
- client_.last_policy_timestamp_);
+ EXPECT_EQ(base::Time::FromJavaTime(32), client_.last_policy_timestamp_);
EXPECT_TRUE(client_.submit_machine_id_);
EXPECT_TRUE(client_.public_key_version_valid_);
EXPECT_EQ(17, client_.public_key_version_);

Powered by Google App Engine
This is Rietveld 408576698