class BatteryProtocolServer

Defined at line 15 of file ../../src/power/testing/fake-battery/battery_protocol_server.h

Protocol served to client components over devfs.

Public Methods

void BatteryProtocolServer (async_dispatcher_t * dispatcher)

Defined at line 12 of file ../../src/power/testing/fake-battery/battery_protocol_server.cc

void ~BatteryProtocolServer ()

Defined at line 15 of file ../../src/power/testing/fake-battery/battery_protocol_server.cc

zx_status_t Init (const std::shared_ptr<fdf::OutgoingDirectory> & outgoing)

Defined at line 17 of file ../../src/power/testing/fake-battery/battery_protocol_server.cc

void GetBatteryInfo (GetBatteryInfoCompleter::Sync & completer)

Defined at line 31 of file ../../src/power/testing/fake-battery/battery_protocol_server.cc

void Watch (WatchRequest & request, WatchCompleter::Sync & completer)

Defined at line 36 of file ../../src/power/testing/fake-battery/battery_protocol_server.cc

void Serve (async_dispatcher_t * dispatcher, fidl::ServerEnd<fuchsia_power_battery::BatteryInfoProvider> server)

Defined at line 65 of file ../../src/power/testing/fake-battery/battery_protocol_server.cc

void NotifyOnceAsync (fidl::Client<fuchsia_power_battery::BatteryInfoWatcher> watcher)

Defined at line 42 of file ../../src/power/testing/fake-battery/battery_protocol_server.cc