class Mock

Defined at line 20 of file ../../zircon/system/ulib/hwreg/include/hwreg/mock.h

The io() pointer can be passed to ReadFrom and WriteTo methods. The

Mock should first be primed with ExpectRead() and ExpectWrite() calls.

Public Methods

void Mock ()

Defined at line 29 of file ../../zircon/system/ulib/hwreg/include/hwreg/mock.h

void Mock (Mock && other)

Defined at line 30 of file ../../zircon/system/ulib/hwreg/include/hwreg/mock.h

Mock & operator= (Mock && other)

Defined at line 31 of file ../../zircon/system/ulib/hwreg/include/hwreg/mock.h

template <typename IntType>
Mock & ExpectWrite (IntType value, uint32_t offset)

Defined at line 37 of file ../../zircon/system/ulib/hwreg/include/hwreg/mock.h

template <typename IntType>
Mock & ExpectRead (IntType value, uint32_t offset)

Defined at line 44 of file ../../zircon/system/ulib/hwreg/include/hwreg/mock.h

Mock & ExpectNoIo ()

Defined at line 50 of file ../../zircon/system/ulib/hwreg/include/hwreg/mock.h

void VerifyAndClear ()

Defined at line 55 of file ../../zircon/system/ulib/hwreg/include/hwreg/mock.h

RegisterIo * io ()

Defined at line 57 of file ../../zircon/system/ulib/hwreg/include/hwreg/mock.h