Storage testlib can define TestBlockDevice from partitions

Add functionality to TestBlockDeviceBuilder to define a block device
as a collection of partitions with either associated data or just a size.
Partition sizes are rounded up to the block size and padded with
trailing zeroes.

If the device is built via partitions, a valid GPT header and backup
header are added to the device.

Tests: new unit test passes

Change-Id: I614f7d0c48e56b34ae9eaf08e5b0c953355f0cb0
6 files changed
tree: 978e2b216b41c70c1d30f40947b6f7b4574ce64e
  1. gbl/
  2. libxbc/
  3. vts/
  4. .gitignore
  5. BUILD
  6. LICENSE
  7. OWNERS