summaryrefslogtreecommitdiff
path: root/update_manager/policy_test_utils.h
diff options
context:
space:
mode:
authorAmin Hassani <ahassani@chromium.org>2020-11-17 23:53:48 -0800
committerCommit Bot <commit-bot@chromium.org>2020-11-24 20:54:01 +0000
commit0468a76a02406851c197ba2cac663b687078a901 (patch)
tree62253be82f9a2a1ada2502408cf5703ed86a0eeb /update_manager/policy_test_utils.h
parent01a45c08b5c18017189f6611ac4df326154b35c4 (diff)
update_engine: Use clock and fake clock from SystemState
No need to pass clock and fake clock anywhere anymore. This CL makes it to just use those objects available from SystemState and FakeSystemState. BUG=b:171829801 TEST=cros_workon_make --board reef --test update_engine Change-Id: I9a3cf6dd2057620c11b862d3317b83489c76f3ca Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2546625 Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Jae Hoon Kim <kimjae@chromium.org> Commit-Queue: Jae Hoon Kim <kimjae@chromium.org>
Diffstat (limited to 'update_manager/policy_test_utils.h')
-rw-r--r--update_manager/policy_test_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_manager/policy_test_utils.h b/update_manager/policy_test_utils.h
index cd94907d..72bd3bc6 100644
--- a/update_manager/policy_test_utils.h
+++ b/update_manager/policy_test_utils.h
@@ -91,7 +91,7 @@ class UmPolicyTestBase : public ::testing::Test {
}
brillo::FakeMessageLoop loop_{nullptr};
- chromeos_update_engine::FakeClock fake_clock_;
+ chromeos_update_engine::FakeClock* fake_clock_;
FakeState fake_state_;
std::shared_ptr<EvaluationContext> eval_ctx_;
std::unique_ptr<Policy> policy_;