diff options
author | Alex Deymo <deymo@google.com> | 2016-06-03 19:26:58 -0700 |
---|---|---|
committer | Alex Deymo <deymo@google.com> | 2016-06-09 06:02:30 +0000 |
commit | fb905d9b8d49f8fe41297c7aba2dd0942f1be311 (patch) | |
tree | a7a7567b0178b335d6ba876e800b07d6644369a8 /update_attempter_unittest.cc | |
parent | 675d0d209eec584968cee9984c093c6d07bee62e (diff) |
Implement powerwash on Android.
Powerwash, the name for the equivalent of a factory reset or /data wipe,
can be triggered in Android by writing the desired command to the
recovery command file and rebooting into recovery.
This patch moves the powerwash scheduling/canceling logic to the
HardwareInterface and implements it on Android.
Bug: 28700985
TEST=Called update_engine_client passing POWERWASH=1, BCB is stored up
to offset 832.
Change-Id: If737fd4b9b3e2ed9bce709b3b59f22e9f0a3dc9a
Diffstat (limited to 'update_attempter_unittest.cc')
-rw-r--r-- | update_attempter_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update_attempter_unittest.cc b/update_attempter_unittest.cc index 99cd2c8c..b9a60b37 100644 --- a/update_attempter_unittest.cc +++ b/update_attempter_unittest.cc @@ -282,7 +282,7 @@ TEST_F(UpdateAttempterTest, GetErrorCodeForActionTest) { GetErrorCodeForAction(&filesystem_verifier_action, ErrorCode::kError)); PostinstallRunnerAction postinstall_runner_action( - fake_system_state.fake_boot_control()); + fake_system_state.fake_boot_control(), fake_system_state.fake_hardware()); EXPECT_EQ(ErrorCode::kPostinstallRunnerError, GetErrorCodeForAction(&postinstall_runner_action, ErrorCode::kError)); |