NetworkManager/src/platform/tests
Thomas Haller 0af2f5c28b core: add NMNetns to bundle platform and route managers
NMPlatform, NMRouteManager and NMDefaultRouteManager are singletons
instances. Users of those are for example NMDevice, which registers
to GObject signals of both NMPlatform and NMRouteManager.

Hence, as NMDevice:dispose() disconnects the signal handlers, it must
ensure that those singleton instances live longer then the NMDevice
instance. That is usually accomplished by having users of singleton
instances own a reference to those instances.
For NMDevice that effectively means that it shall own a reference to
several singletons.

NMPlatform, NMRouteManager, and NMDefaultRouteManager are all
per-namespace. In general it doesn't make sense to have more then
one instances of these per name space. Nnote that currently we don't
support multiple namespaces yet. If we will ever support multiple
namespaces, then a NMDevice would have a reference to all of these
manager instances. Hence, introduce a new class NMNetns which bundles
them together.
2017-04-18 15:49:14 +02:00
..
.gitignore platform: add nmp-object.h file 2015-06-17 11:23:51 +02:00
monitor.c build: don't add subdirectories to include search path but require qualified include 2016-11-21 14:26:37 +01:00
test-address.c build: merge "src/platform/tests/Makefile.am" into toplevel Makefile 2016-10-21 17:04:06 +02:00
test-cleanup.c platform: change signature of nm_platform_ip{4,6}_route_add() 2017-03-06 15:20:25 +01:00
test-common.c all: use "unsigned long" instead of "long unsigned" 2017-03-14 11:23:46 +01:00
test-common.h logging: log device and connection along with the message 2017-03-24 12:42:09 +01:00
test-general.c core: add NMNetns to bundle platform and route managers 2017-04-18 15:49:14 +02:00
test-link.c core: add NMNetns to bundle platform and route managers 2017-04-18 15:49:14 +02:00
test-nmp-object.c udev: drop libgudev in favor of libudev 2017-03-22 12:41:06 +01:00
test-route.c platform/tests: use NMTST_WAIT_ASSERT() to wait for address 2017-03-09 23:06:08 +01:00