class PrivacySettings
Defined at line 25 of file ../../src/developer/forensics/testing/fakes/privacy_settings.h
Fake server for fuchsia.settings.Privacy.
The hanging get pattern behind Watch() requires us to maintain a separate handler per connection
to be able to track each connection. Here, we only make a single connection in the unit tests
anyway so it's fine if the fake service can have at most one connection.
Protected Members
bool dirty_bit_
unique_ptr watcher_
Public Methods
void Watch (WatchCallback callback)
|fuchsia::settings::Privacy|
Defined at line 21 of file ../../src/developer/forensics/testing/fakes/privacy_settings.cc
::fidl::InterfaceRequestHandler<fuchsia::settings::Privacy> GetHandler ()
Returns a request handler for binding to this fake service.
Defined at line 28 of file ../../src/developer/forensics/testing/fakes/privacy_settings.h
void Set (fuchsia::settings::PrivacySettings settings, SetCallback callback)
Defined at line 29 of file ../../src/developer/forensics/testing/fakes/privacy_settings.cc
void CloseConnection ()
Defined at line 15 of file ../../src/developer/forensics/testing/fakes/privacy_settings.cc
void NotImplemented_ (const std::string & name)
|fuchsia::settings::testing::Privacy_TestBase|
Defined at line 40 of file ../../src/developer/forensics/testing/fakes/privacy_settings.h
Protected Methods
void NotifyWatcher ()
Defined at line 39 of file ../../src/developer/forensics/testing/fakes/privacy_settings.cc