NetworkManager/libnm/tests
Dan Williams 52ae28f6e5 libnm: queue added/removed signals and suppress uninitialized notifications
Property notifications are queued during object initialization and
reloading, but the added/removed signals were emitted immediately
even before the object was fully initialized.

Additionally, depending on how long asynchronous initialization took,
the notifications could have been emitted before the object was
fully initialized as deferred_notify_cb() wasn't being suppressed
until all the properties were complete.

For synchronous intialization, signals could be emitted at various
times during initialization and not all of the object's properties
may be read.  Furthermore property notifications were queued in an
idle handler, which breaks users that may not use a mainloop.  All
signals and notifications should be emitted immediately after
initialization is complete for synchronous initialization.

To make things consistent and ensure that all signals and notifications
are emitted only when initialization is complete, queue signals for
deferred emission and only run notifications/signals when all the
object's properties have been read.  For synchronous initialization,
emit all notifications and signals immediately after initialization
and not from an idle handler.
2014-11-06 20:51:58 -06:00
..
common.c libnm: abstract out duplicated device-creating code in tests 2014-10-19 09:27:47 -04:00
common.h libnm: abstract out duplicated device-creating code in tests 2014-10-19 09:27:47 -04:00
libnm-test-launch.sh tests: Don't run session-long dbus daemons for tests 2014-10-24 19:16:33 +02:00
Makefile.am libnm: port to GDBus 2014-09-18 11:51:09 -04:00
test-nm-client.c libnm: queue added/removed signals and suppress uninitialized notifications 2014-11-06 20:51:58 -06:00
test-remote-settings-client.c libnm: change GSList to GPtrArray in libnm methods 2014-10-28 17:17:17 -04:00
test-secret-agent.c libnm-core, libnm, settings: move NMSecretAgentError to nm-errors 2014-10-22 08:29:09 -04:00