class FakeBuildInfoProvider

Defined at line 15 of file ../../src/connectivity/weave/adaptation/tests/fake_buildinfo_provider.h

Fake implementation of the fuchsia.buildinfo.Provider.

Public Members

static const char[] kProductConfig
static const char[] kBoardConfig
static const char[] kVersion
static const char[] kLatestCommitDate

Public Methods

void NotImplemented_ (const std::string & name)

Replaces all unimplemented functions with a fatal error.

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

void FakeBuildInfoProvider (std::string product_config, std::string board_config, std::string version, std::string latest_commit_date)

Constructs a FakeBuildInfoProvider using the provided configuration values.

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

void FakeBuildInfoProvider ()

Constructs a FakeBuildInfoProvider using the default configuration values.

Defined at line 34 of file ../../src/connectivity/weave/adaptation/tests/fake_buildinfo_provider.h

void GetBuildInfo (GetBuildInfoCallback callback)

Returns the current BuildInfo table.

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

fidl::InterfaceRequestHandler<fuchsia::buildinfo::Provider> GetHandler (async_dispatcher_t * dispatcher)

Returns an interface request handler to attach to a service directory.

Defined at line 49 of file ../../src/connectivity/weave/adaptation/tests/fake_buildinfo_provider.h

void Close (zx_status_t epitaph_value)

Closes the binding, simulating the service going away.

Defined at line 57 of file ../../src/connectivity/weave/adaptation/tests/fake_buildinfo_provider.h

FakeBuildInfoProvider & set_product_config (std::string product_config)

Update the product configuration.

Defined at line 60 of file ../../src/connectivity/weave/adaptation/tests/fake_buildinfo_provider.h

FakeBuildInfoProvider & set_board_config (std::string board_config)

Update the board configuration.

Defined at line 66 of file ../../src/connectivity/weave/adaptation/tests/fake_buildinfo_provider.h

FakeBuildInfoProvider & set_version (std::string version)

Update the version.

Defined at line 72 of file ../../src/connectivity/weave/adaptation/tests/fake_buildinfo_provider.h

FakeBuildInfoProvider & set_latest_commit_date (std::string latest_commit_date)

Update the latest commit date.

Defined at line 78 of file ../../src/connectivity/weave/adaptation/tests/fake_buildinfo_provider.h