tests: rework handling of D-Bus properties in NetworkManager stub service

Instead of registering a __get_props() function which constructs the
entire hash anew each time, register a props dictionary. This dictionary
is used as cache for the properies.

In most cases, we don't need to additionally cache the properties
outside the props dictionary. Also, add _dbus_property_set() which
sets the property and emits the notification.

Also, cleanup the property names by giving them a PRP_ prefix.
This commit is contained in:
Thomas Haller
2018-05-15 08:31:16 +02:00
parent fc475f25f2
commit b1ff82eba5

File diff suppressed because it is too large Load Diff