struct VmoTestTraits
Defined at line 23 of file ../../src/lib/zbitl/tests/vmo-tests.h
All VMO-related test traits create extensible VMOs by default,
parameterizing all of the creation APIs with a boolean `Resizable` template
parameter that defaults to true. Each set of traits gives
`kExpectExtensibility = true` to account for this default behaviour in the
general, traits-abstracted testing; more dedicated testing with
`Resizable = false` is given in vmo-tests.cc.
Public Members
static const bool kDefaultConstructedViewHasStorageError
static const bool kExpectExtensibility
static const bool kExpectOneShotReads
static const bool kExpectUnbufferedReads
static const bool kExpectUnbufferedWrites
Public Methods
template <bool Resizable = true>
void Create (size_t size, Context * context)
Defined at line 41 of file ../../src/lib/zbitl/tests/vmo-tests.h
template <bool Resizable = true>
void Create (fbl::unique_fd fd, size_t size, Context * context)
Defined at line 48 of file ../../src/lib/zbitl/tests/vmo-tests.h
void Read (const storage_type & storage, payload_type payload, size_t size, std::string * contents)
Defined at line 56 of file ../../src/lib/zbitl/tests/vmo-tests.h
void Write (const storage_type & storage, uint32_t offset, const std::string & data)
Defined at line 62 of file ../../src/lib/zbitl/tests/vmo-tests.h
void ToPayload (const storage_type & storage, uint32_t offset, payload_type & payload)
Defined at line 66 of file ../../src/lib/zbitl/tests/vmo-tests.h
const zx::vmo & GetVmo (const storage_type & storage)
Defined at line 70 of file ../../src/lib/zbitl/tests/vmo-tests.h