class SystemDataInterface

Defined at line 19 of file ../../third_party/cobalt/src/system_data/system_data.h

An abstraction of the interface to SystemData that allows mocking in

tests.

Public Methods

void ~SystemDataInterface ()

Defined at line 21 of file ../../third_party/cobalt/src/system_data/system_data.h

void SystemDataInterface (const SystemDataInterface & )

Make SystemDataInterface move-only

Defined at line 24 of file ../../third_party/cobalt/src/system_data/system_data.h

SystemDataInterface & operator= (const SystemDataInterface & )

Defined at line 25 of file ../../third_party/cobalt/src/system_data/system_data.h

void SystemDataInterface ()

Defined at line 26 of file ../../third_party/cobalt/src/system_data/system_data.h

const SystemProfile & system_profile ()

Returns the SystemProfile for the current system.

void SetAppVersion (const std::string & app_version)

Resets the current app version. Do not set this field if Cobalt runs as a service.

void SetChannel (std::optional<std::string> channel)

Resets the current channel value.

const std::string & app_version ()

Returns the current app_version. Should return "<unset>" if the app_version has never been set.

const std::string & channel ()

Returns the current channel. Should return "<unset>" if the channel has never been set.

const ReleaseStage & release_stage ()

Returns the current ReleaseStage.

void ResetInternalMetrics (logger::InternalMetrics * internal_metrics)

Resets the internal metrics to use the provided logger.

void OnChange (std::function<void ()> callback)