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

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

Issue 2820063005: Remove the "not_after" validation of 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/component_cloud_policy_store_unittest.cc
diff --git a/components/policy/core/common/cloud/component_cloud_policy_store_unittest.cc b/components/policy/core/common/cloud/component_cloud_policy_store_unittest.cc
index e891c3f9e39d03c49e8cf4ba3ed80bed1c33fd91..643f62e147a2908e7b00ae67191793f8a8d176aa 100644
--- a/components/policy/core/common/cloud/component_cloud_policy_store_unittest.cc
+++ b/components/policy/core/common/cloud/component_cloud_policy_store_unittest.cc
@@ -181,15 +181,6 @@ TEST_F(ComponentCloudPolicyStoreTest, ValidatePolicyWrongTimestamp) {
EXPECT_FALSE(store_->ValidatePolicy(kTestPolicyNS, CreateResponse(),
nullptr /* policy_data */,
nullptr /* payload */));
-
- const int64_t kFutureTimestamp =
- (base::Time::NowFromSystemTime() + base::TimeDelta::FromDays(1) -
- base::Time::UnixEpoch())
- .InMilliseconds();
- builder_.policy_data().set_timestamp(kFutureTimestamp);
- EXPECT_FALSE(store_->ValidatePolicy(kTestPolicyNS, CreateResponse(),
- nullptr /* policy_data */,
- nullptr /* payload */));
}
TEST_F(ComponentCloudPolicyStoreTest, ValidatePolicyWrongUsername) {

Powered by Google App Engine
This is Rietveld 408576698