class FakeDevicePartitioner

Defined at line 178 of file ../../src/firmware/paver/test/test-utils.h

Dummy DevicePartition implementation meant to be used for testing. All functions are no-ops, i.e.

they silently pass without doing anything. Tests can inherit from this class and override

functions that are relevant for their test cases; this class provides an easy way to inherit from

DevicePartitioner which is an abstract class.

Public Methods

zx::result<std::unique_ptr<abr::Client>> CreateAbrClient ()

Defined at line 180 of file ../../src/firmware/paver/test/test-utils.h

const paver::BlockDevices & Devices ()

Defined at line 182 of file ../../src/firmware/paver/test/test-utils.h

fidl::UnownedClientEnd<fuchsia_io::Directory> SvcRoot ()

Defined at line 184 of file ../../src/firmware/paver/test/test-utils.h

bool IsFvmWithinFtl ()

Defined at line 186 of file ../../src/firmware/paver/test/test-utils.h

bool SupportsPartition (const paver::PartitionSpec & spec)

Defined at line 188 of file ../../src/firmware/paver/test/test-utils.h

zx::result<std::unique_ptr<paver::PartitionClient>> FindPartition (const paver::PartitionSpec & spec)

Defined at line 190 of file ../../src/firmware/paver/test/test-utils.h

zx::result<> WipeFvm ()

Defined at line 195 of file ../../src/firmware/paver/test/test-utils.h

zx::result<> ResetPartitionTables ()

Defined at line 197 of file ../../src/firmware/paver/test/test-utils.h

zx::result<> ValidatePayload (const paver::PartitionSpec & spec, std::span<const uint8_t> data)

Defined at line 199 of file ../../src/firmware/paver/test/test-utils.h