class FakeHwinfoProduct

Defined at line 17 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_product.h

Fake implementation of the fuchsia.hwinfo.Product.

Public Members

static const char[] kBuildDate
static const uint16_t kBuildDateYear
static const uint8_t kBuildDateMonth
static const uint8_t kBuildDateDay

Public Methods

void NotImplemented_ (const std::string & name)

Replaces all unimplemented functions with a fatal error.

Defined at line 31 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_product.h

void FakeHwinfoProduct (std::optional<std::string> build_date)

Constructs a FakeHwinfoProduct using the provided configuration values.

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

void FakeHwinfoProduct ()

Constructs a FakeHwinfoProduct using the default configuration values.

Defined at line 37 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_product.h

void GetInfo (fuchsia::hwinfo::Product::GetInfoCallback callback)

Returns the current ProductInfo table.

Defined at line 40 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_product.h

fidl::InterfaceRequestHandler<fuchsia::hwinfo::Product> GetHandler (async_dispatcher_t * dispatcher)

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

Defined at line 51 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_product.h

void Close (zx_status_t epitaph_value)

Closes the binding, simulating the service going away.

Defined at line 59 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_product.h

FakeHwinfoProduct & set_build_date (std::optional<std::string> build_date)

Update the build date.

Defined at line 62 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_product.h