class DirectoryContents
Defined at line 405 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder_types.h
An in-memory directory passed to |Realm.RouteReadOnlyDirectory| to
create directories with files at runtime.
This is useful if a test needs to configure the content of a Directory
capability provided to a component under test in a Realm.
Public Methods
DirectoryContents & AddFile (std::string_view path, BinaryContents contents)
Add a file to this directory with |contents| at destination |path|.
Paths can include slashes, e.g. "foo/bar.txt". However, neither a leading
nor a trailing slash must be supplied.
Defined at line 200 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder_types.cc
DirectoryContents & AddFile (std::string_view path, std::string_view contents)
Same as above but allows for a string type for the contents.
Defined at line 214 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder_types.cc
void DirectoryContents ()
Defined at line 407 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder_types.h
Friends
class Realm