class FakeDirectory

Defined at line 21 of file ../../src/connectivity/weave/adaptation/tests/fake_directory.h

Implementation of a fake, pseudo-directory that can be made to hold files for

tests that serve directories.

Public Methods

void FakeDirectory ()

Defined at line 23 of file ../../src/connectivity/weave/adaptation/tests/fake_directory.h

FakeDirectory & AddFile (std::string filename, const std::string & data)

Add a file with the given name and data to the directory.

Defined at line 26 of file ../../src/connectivity/weave/adaptation/tests/fake_directory.h

FakeDirectory & RemoveFile (const std::string & filename)

Removes a file with the given name from the directory.

Defined at line 32 of file ../../src/connectivity/weave/adaptation/tests/fake_directory.h

void Serve (fidl::ServerEnd<fuchsia_io::Directory> server_end, async_dispatcher_t * dispatcher)

Serves the added files over the provided channel.

Defined at line 38 of file ../../src/connectivity/weave/adaptation/tests/fake_directory.h