class FakeAllocator
Defined at line 57 of file ../../src/devices/bus/drivers/pci/test/fakes/fake_allocator.h
This fake will fulfill any allocation so long as it isn't configured to fail by calling
|FailNextAllocation|.
Public Methods
void FakeAllocator (pci_address_space_t type)
Defined at line 59 of file ../../src/devices/bus/drivers/pci/test/fakes/fake_allocator.h
void FailNextAllocation (bool enable)
Defined at line 60 of file ../../src/devices/bus/drivers/pci/test/fakes/fake_allocator.h
zx::result<std::unique_ptr<PciAllocation>> Allocate (std::optional<zx_paddr_t> in_base, size_t size)
Defined at line 61 of file ../../src/devices/bus/drivers/pci/test/fakes/fake_allocator.h
zx_status_t SetParentAllocation (std::unique_ptr<PciAllocation> alloc)
Defined at line 75 of file ../../src/devices/bus/drivers/pci/test/fakes/fake_allocator.h