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>
diff --git a/download_action_unittest.cc b/download_action_unittest.cc
index 565c678..ac02b21 100644
--- a/download_action_unittest.cc
+++ b/download_action_unittest.cc
@@ -509,8 +509,7 @@
// Test fixture for P2P tests.
class P2PDownloadActionTest : public testing::Test {
protected:
- P2PDownloadActionTest()
- : start_at_offset_(0), fake_um_(FakeSystemState::Get()->fake_clock()) {}
+ P2PDownloadActionTest() : start_at_offset_(0) {}
~P2PDownloadActionTest() override {}
@@ -535,7 +534,6 @@
// Setup p2p.
FakeP2PManagerConfiguration* test_conf = new FakeP2PManagerConfiguration();
p2p_manager_.reset(P2PManager::Construct(test_conf,
- nullptr,
&fake_um_,
"cros_au",
3,