class FdioTest

Defined at line 32 of file ../../src/storage/blobfs/test/integration/fdio_test.h

Test harness that sets up a blobfs and fdio backed by a FakeBlockDevice.

Public Methods

void FdioTest ()

Defined at line 34 of file ../../src/storage/blobfs/test/integration/fdio_test.h

void SetUp ()

Defined at line 50 of file ../../src/storage/blobfs/test/integration/fdio_test.cc

void TearDown ()

Defined at line 93 of file ../../src/storage/blobfs/test/integration/fdio_test.cc

Protected Methods

async::Loop * loop ()

Defined at line 40 of file ../../src/storage/blobfs/test/integration/fdio_test.h

int outgoing_dir_fd ()

Defined at line 42 of file ../../src/storage/blobfs/test/integration/fdio_test.h

int root_fd ()

Defined at line 45 of file ../../src/storage/blobfs/test/integration/fdio_test.h

block_client::FakeBlockDevice * block_device ()

Defined at line 46 of file ../../src/storage/blobfs/test/integration/fdio_test.h

const BlobCreatorWrapper & blob_creator ()

Defined at line 47 of file ../../src/storage/blobfs/test/integration/fdio_test.h

const BlobReaderWrapper & blob_reader ()

Defined at line 48 of file ../../src/storage/blobfs/test/integration/fdio_test.h

void set_mount_options (MountOptions options)

Defined at line 50 of file ../../src/storage/blobfs/test/integration/fdio_test.h

uint64_t GetOldestMinorVersion ()

Defined at line 66 of file ../../src/storage/blobfs/test/integration/fdio_test.h

zx_handle_t outgoing_dir ()

get a clone of the outgoing dir in handle form

Defined at line 102 of file ../../src/storage/blobfs/test/integration/fdio_test.cc

void TakeSnapshot (inspect::Hierarchy * output)

Fetches a fresh Inspect snapshot from the running blobfs instance.

Defined at line 108 of file ../../src/storage/blobfs/test/integration/fdio_test.cc

void GetUintMetricFromHierarchy (const inspect::Hierarchy & hierarchy, const std::vector<std::string> & path, const std::string & property, uint64_t * value)

Takes an inspect snapshot `hierarchy` and navigates through the nodes using

the `path` given and fetches the `property` there to be stored in `value`.

Defined at line 163 of file ../../src/storage/blobfs/test/integration/fdio_test.cc

void GetUintMetric (const std::vector<std::string> & path, const std::string & property, uint64_t * value)

Strings together `TakeSnapshot` and `GetUintMetricFromHierarchy` to fetch a

single value from a fresh snapshot.

Defined at line 177 of file ../../src/storage/blobfs/test/integration/fdio_test.cc