NetworkManager/src/settings
Thomas Haller 25ade39752 tests: use NMTST_EXPECT*() macros
Tests are commonly created via copy&paste. Hence, it's
better to express a certain concept explicitly via a function
or macro. This way, the implementation of the concept can be
adjusted at one place, without requiring to change all the callers.

Also, the macro is shorter, and brevity is better for tests
so it's easier to understand what the test does. Without being
bothered by noise from the redundant information.

Also, the macro knows better which message to expect. For example,
messages inside "src" are prepended by nm-logging.c with a level
and a timestamp. The expect macro is aware of that and tests for it

  #define NMTST_EXPECT_NM_ERROR(msg)      NMTST_EXPECT_NM (G_LOG_LEVEL_MESSAGE, "*<error> [*] "msg)

This again allows the caller to ignore this prefix, but still assert
more strictly.
2018-01-08 12:38:54 +01:00
..
plugins tests: use NMTST_EXPECT*() macros 2018-01-08 12:38:54 +01:00
nm-agent-manager.c c-list: re-import latest version of c-list.h from upstream 2017-11-28 11:26:39 +01:00
nm-agent-manager.h core: fix race of blocking autoconnect for no-secrets when a new secret-agent registers 2017-11-27 15:36:02 +01:00
nm-secret-agent.c c-list: re-import latest version of c-list.h from upstream 2017-11-28 11:26:39 +01:00
nm-secret-agent.h core: refactor NMSecretAgentCallId typedef not to be a pointer to struct 2017-11-24 16:24:40 +01:00
nm-settings-connection.c settings: clear unsaved flag on new settings-connection 2017-12-20 15:38:57 +01:00
nm-settings-connection.h settings: clear unsaved flag on new settings-connection 2017-12-20 15:38:57 +01:00
nm-settings-plugin.c ifcfg-rh: refactor nm_settings_plugin_add_connection() to return on error early 2017-10-27 10:28:41 +02:00
nm-settings-plugin.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-settings.c settings: drop unmaintained ifnet settings plugin of Gentoo 2017-12-21 10:50:33 +01:00
nm-settings.h settings: track visible state as regular connection flags 2017-12-05 19:57:25 +01:00