diff options
author | Yifan Hong <elsk@google.com> | 2019-09-16 13:18:22 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2019-09-23 19:38:27 -0700 |
commit | 13d41cb2accc1e2e1271b22a53f0dce6db0493f5 (patch) | |
tree | a3f1a02ee80743e96abdd8be437411402b02b16d /mock_dynamic_partition_control.h | |
parent | 87ea73fe5a48c54ad56ba769375d180d1ce5c614 (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 'mock_dynamic_partition_control.h')
-rw-r--r-- | mock_dynamic_partition_control.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mock_dynamic_partition_control.h b/mock_dynamic_partition_control.h index aab3c4d8..d96432b1 100644 --- a/mock_dynamic_partition_control.h +++ b/mock_dynamic_partition_control.h @@ -45,9 +45,7 @@ class MockDynamicPartitionControl : public DynamicPartitionControlInterface { MOCK_METHOD1(GetDeviceDir, bool(std::string*)); MOCK_METHOD0(GetDynamicPartitionsFeatureFlag, FeatureFlag()); MOCK_METHOD3(PreparePartitionsForUpdate, - bool(uint32_t, - uint32_t, - const BootControlInterface::PartitionMetadata&)); + bool(uint32_t, uint32_t, const DeltaArchiveManifest&)); MOCK_METHOD1(GetSuperPartitionName, std::string(uint32_t)); MOCK_METHOD0(GetVirtualAbFeatureFlag, FeatureFlag()); }; |