class BlockDeviceAdapter
Defined at line 105 of file ../../src/storage/fvm/test_support.h
Provides a Base class for other classes that wish to expose helper methods to a block device.
Public Methods
void BlockDeviceAdapter (const fbl::unique_fd & devfs_root, const std::string & path)
Defined at line 107 of file ../../src/storage/fvm/test_support.h
void BlockDeviceAdapter (const BlockDeviceAdapter & )
Defined at line 109 of file ../../src/storage/fvm/test_support.h
void BlockDeviceAdapter (BlockDeviceAdapter && )
Defined at line 110 of file ../../src/storage/fvm/test_support.h
BlockDeviceAdapter & operator= (const BlockDeviceAdapter & )
Defined at line 111 of file ../../src/storage/fvm/test_support.h
BlockDeviceAdapter & operator= (BlockDeviceAdapter && )
Defined at line 112 of file ../../src/storage/fvm/test_support.h
void ~BlockDeviceAdapter ()
Defined at line 113 of file ../../src/storage/fvm/test_support.h
const DeviceRef * device ()
Defined at line 127 of file ../../src/storage/fvm/test_support.h
DeviceRef * device ()
Defined at line 128 of file ../../src/storage/fvm/test_support.h
void WriteAt (const fbl::Array<uint8_t> & data, uint64_t offset)
Write |data| into the underlying block device at |offset|.
Defined at line 167 of file ../../src/storage/fvm/test_support.cc
void ReadAt (uint64_t offset, fbl::Array<uint8_t> * out_data)
Reads |data::size()| bytes from the block device, starting at |offset|.
Defined at line 173 of file ../../src/storage/fvm/test_support.cc
void CheckContentsAt (const fbl::Array<uint8_t> & data, uint64_t offset)
Checks the contents of the block device at |offset| and verifies it matches |data|.
Defined at line 180 of file ../../src/storage/fvm/test_support.cc
zx_status_t WaitUntilVisible ()
Returns ZX_OK if the device became visible before the deadlines.
Defined at line 187 of file ../../src/storage/fvm/test_support.cc