Expand description
Crate to provide fidl logging and test setup helpers for conformance tests for fuchsia.io.
Modules§
- Utility functions for getting combinations of flags.
- Test harness helper struct.
Constants§
- A default value for NodeAttributes, with zeros set for all fields.
- A common name for a file to create in a conformance test.
- A common set of file contents to write into a test file in a conformance test.
Traits§
- Extension trait for
fio::DirectoryProxy
to make interactions with the fuchsia.io protocol less verbose.
Functions§
- Attempts to open the given file, and checks the status is
NOT_FOUND
. - Asserts that no
fio::NodeEvent::OnOpen_
event is sent on an opened proxy. - Converts a generic
fio::NodeProxy
to eitherfio::FileProxy
orfio::DirectoryProxy
. WARNING: This function does not verify that the conversion is valid. - Creates a directory with the given DirectoryEntry, opening the file with the given file flags, and returning a Buffer object initialized with the given vmo_flags.
- Makes a directory with a name and set of entries.
- Makes an executable file to be placed in the test directory.
- Makes a file to be placed in the test directory.
- Returns the .name field from a given DirectoryEntry, otherwise panics.
- Helper function to call
get_token
on a directory. Only use this if testing something other than theget_token
call directly. - Helper function to open a sub-directory with the given flags. Only use this if testing something other than the open call directly.
- Helper function to open a file with the given flags. Only use this if testing something other than the open call directly.
- Helper function to open the desired node in the root folder. Asserts that open_node_status succeeds.
- Helper function to open the desired node in the root folder.
- Helper function to open a sub-directory as readable and writable. Only use this if testing something other than the open call directly.
- Helper function to read a file and return its contents. Only use this if testing something other than the read call directly.
- Makes a remote directory with a name, which forwards the requests to the given directory proxy.
- Asserts that the given
vmo_rights
align with theexpected_vmo_rights
passed to a get_backing_memory call. We check that the returned rights align with and do not exceed those in the given flags, that we have at least basic VMO rights, and that the flags align with the expected sharing mode.