summaryrefslogtreecommitdiff
path: root/update_manager/update_manager_unittest.cc
diff options
context:
space:
mode:
authorGilad Arnold <garnold@chromium.org>2014-07-23 09:01:31 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-07-25 03:41:05 +0000
commita65fced5f4c2b551616b26ee90a800b44090735f (patch)
treeeb519f3b860f3be0c1142e6949cf03d0d2bbedc1 /update_manager/update_manager_unittest.cc
parent5d5278068a007fc090368fba664fe130645880f7 (diff)
update_engine: UM: Add check for monotonic time elapsed.
This forks the former EvaluationStatus::IsTimeGreaterThan() into two separate variants, checking either the wallclock or monotonic current time against a corresponding timestamp. This is needed for policies that require resilience against wallclock time volatility. BUG=chromium:394778 TEST=Unit tests. Change-Id: I9ecd20cc87a3a520e119f157e55ae4f54104a506 Reviewed-on: https://chromium-review.googlesource.com/209487 Commit-Queue: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Gilad Arnold <garnold@chromium.org>
Diffstat (limited to 'update_manager/update_manager_unittest.cc')
-rw-r--r--update_manager/update_manager_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_manager/update_manager_unittest.cc b/update_manager/update_manager_unittest.cc
index 8f81be5a..048a0d93 100644
--- a/update_manager/update_manager_unittest.cc
+++ b/update_manager/update_manager_unittest.cc
@@ -122,7 +122,7 @@ class DelayPolicy : public DefaultPolicy {
// non-constant dependency. The threshold is far enough in the future to
// ensure that it does not fire immediately.
if (time_threshold_ < base::Time::Max())
- ec->IsTimeGreaterThan(time_threshold_);
+ ec->IsWallclockTimeGreaterThan(time_threshold_);
return EvalStatus::kAskMeAgainLater;
}