class FakeHwinfoDevice
Defined at line 17 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_device.h
Fake implementation of the fuchsia.hwinfo.Device.
Public Members
static const char[] kSerialNumber
Public Methods
void NotImplemented_ (const std::string & name)
Replaces all unimplemented functions with a fatal error.
Defined at line 25 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_device.h
void FakeHwinfoDevice (std::optional<std::string> serial_number)
Constructs a FakeHwinfoDevice using the provided configuration values.
Defined at line 28 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_device.h
void FakeHwinfoDevice ()
Constructs a FakeHwinfoDevice using the default configuration values.
Defined at line 32 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_device.h
void GetInfo (fuchsia::hwinfo::Device::GetInfoCallback callback)
Returns the current DeviceInfo table.
Defined at line 35 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_device.h
fidl::InterfaceRequestHandler<fuchsia::hwinfo::Device> GetHandler (async_dispatcher_t * dispatcher)
Returns an interface request handler to attach to a service directory.
Defined at line 46 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_device.h
void Close (zx_status_t epitaph_value)
Closes the binding, simulating the service going away.
Defined at line 54 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_device.h
FakeHwinfoDevice & set_serial_number (std::optional<std::string> serial_number)
Update the serial number.
Defined at line 57 of file ../../src/connectivity/weave/adaptation/tests/fake_hwinfo_device.h