mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 12:34:55 +00:00
6acdc42e04
nmtstc_client_new() exists to test creating a GInitiable/GAsyncInitiable in different GMainContext combinations. This is not only useful for NMClient but will also be useful for NMSecretAgentOld. Add nmtstc_context_object_new() to allow for that. Also, allow passing parameters when creating the object. The resulting nmtstc_context_object_new() is relatively complex. But this is only testing code, that aims to construct the respective GObject instance in various manners (randomly using the sync or async initialization). It is complex, but delivers at testing various code paths of the underlying code. The API that it provides however is simple. Also drop _nmtstc_client_new_extra_context() to create the instance with a different context. For one, this requires that the internal context is integrated as long as the context-busy-watcher exists. That was not handled correctly. Also, creating a NMClient instance with a different context than the current thread default at construct time has implications to the test later. The tests don't want this variant, and don't handle them properly. So drop this. |
||
---|---|---|
.. | ||
c-list | ||
c-rbtree | ||
c-siphash | ||
c-stdaux | ||
n-acd | ||
n-dhcp4 | ||
nm-glib-aux | ||
nm-keyfile | ||
nm-libnm-aux | ||
nm-libnm-core-aux | ||
nm-libnm-core-intern | ||
nm-std-aux | ||
nm-udev-aux | ||
nm-utils | ||
systemd | ||
meson.build | ||
nm-default.h | ||
nm-meta-setting.c | ||
nm-meta-setting.h | ||
nm-test-libnm-utils.h | ||
nm-test-utils-impl.c | ||
nm-version-macros.h.in |