summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2018-10-22 18:05:54 -0700
committerDavid Anderson <dvander@google.com>2018-10-24 14:18:38 -0700
commit7a6c511a6d109f2b32329c17217dc4e099d9cfb0 (patch)
tree854bb1d98c449f1ff39822f24bb37cc7c1d0a612 /trusty/coverage/coverage.cpp
parent9a5324178e72ae416e6953481ae571353591943e (diff)
liblp: Add an abstraction layer for opening partitions.
This change introduces an IPartitionOpener abstraction. Methods that interact with live metadata, such as ReadMetadata, UpdatePartitionTable, and FlashPartitionTable, now require an IPartitionOpener object. Its purpose is dependency injection: it will make these methods much easier to test when the super partition spans multiple block devices. All non-test consumers should be using PartitionOpener, and as such, some helper methods have been added that automatically create one. Bug: 116802789 Test: liblp_test gtest device with super partition boots Change-Id: I76725a5830ef643c5007c152c00ccaad8085151f
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions