summaryrefslogtreecommitdiffstats
path: root/test/mock_network_manager.hpp
Commit message (Collapse)AuthorAgeFilesLines
* test: rtnetlink: use manager interface queryPatrick Venture2019-03-121-2/+0
| | | | | | | | Use the new interface query method provided by manager to know if the interface was added instead of inspecting the manager itself. Change-Id: I94600199fd60a014d6b376155555449f7af617f5 Signed-off-by: Patrick Venture <venture@google.com>
* test: use real manager object for testingPatrick Venture2019-02-181-1/+0
| | | | | | | | Use the real manager object for testing the manager object instead of a derived object. Change-Id: I3b4a401d43457bffb22de8fac5e29b2e2887c6c6 Signed-off-by: Patrick Venture <venture@google.com>
* Re-enable unit testRatan Gupta2018-11-301-0/+28
Unit test were broken after sd bus calls started throwing exception, In this repo we start the systemd-networkd with the use of sd bus calls, which throws exception and it was not handled in the test case. This commit fixes the problem by mocking the network manager which mock the functionality of function which makes the sdbus call. Change-Id: I5b60a2117a661cffa36200415ca611b85dd2fda1 Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud