summaryrefslogtreecommitdiff
path: root/common/boot_control_stub.h
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2019-09-16 13:18:22 -0700
committerYifan Hong <elsk@google.com>2019-09-23 19:38:27 -0700
commit13d41cb2accc1e2e1271b22a53f0dce6db0493f5 (patch)
treea3f1a02ee80743e96abdd8be437411402b02b16d /common/boot_control_stub.h
parent87ea73fe5a48c54ad56ba769375d180d1ce5c614 (diff)
[REFACTOR] Pass DeltaArchiveManifest to DynamicPartitionControl
DynamicPartitionControl need the list of operations to calculate COW sizes. - Remove BootControlInterface::PartitionMetadata. Replace all references with DeltaArchiveManifest. DeltaArchiveManifest has all information that PartitionMetadata has. - Rename all InitPartitionMetadata to PreparePartitionsForUpdate - Change all PreparePartitionsForUpdate to use new signature Bug: 138816109 Test: update_enigne_unittests --gtest_filter=*BootControl*:*Dynamic* Change-Id: I4389ba2b1801addf8c3bc8395e2ea6a9a3ed27a0
Diffstat (limited to 'common/boot_control_stub.h')
-rw-r--r--common/boot_control_stub.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/boot_control_stub.h b/common/boot_control_stub.h
index 8dfaffc6..f2973a28 100644
--- a/common/boot_control_stub.h
+++ b/common/boot_control_stub.h
@@ -45,9 +45,9 @@ class BootControlStub : public BootControlInterface {
bool MarkSlotUnbootable(BootControlInterface::Slot slot) override;
bool SetActiveBootSlot(BootControlInterface::Slot slot) override;
bool MarkBootSuccessfulAsync(base::Callback<void(bool)> callback) override;
- bool InitPartitionMetadata(Slot slot,
- const PartitionMetadata& partition_metadata,
- bool update_metadata) override;
+ bool PreparePartitionsForUpdate(Slot slot,
+ const DeltaArchiveManifest& manifest,
+ bool update_metadata) override;
void Cleanup() override;
private: