diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2017-06-21 16:55:32 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2017-06-21 16:55:32 -0400 |
commit | e3ddaa285e389baf3f26cfb6964919718a8f6a00 (patch) | |
tree | 763884d5cc7a6e926d55718ea234c5484c1fe494 /tests | |
parent | c7a5a92b66f9b83baf2aa446966bdfb2cf39ecd1 (diff) | |
download | libnice-e3ddaa285e389baf3f26cfb6964919718a8f6a00.tar.gz |
agent: Adjust the nice_agent_new_full() to use flags
This makes it easier to read and more extensible.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-nomination.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-nomination.c b/tests/test-nomination.c index b5a5e5f..bf21557 100644 --- a/tests/test-nomination.c +++ b/tests/test-nomination.c @@ -140,13 +140,13 @@ run_test(NiceNominationMode l_nomination_mode, lagent = nice_agent_new_full (NULL, NICE_COMPATIBILITY_RFC5245, - FALSE, /* reliable */ - l_nomination_mode); + l_nomination_mode == NICE_NOMINATION_MODE_REGULAR ? + NICE_AGENT_OPTION_REGULAR_NOMINATION : 0); ragent = nice_agent_new_full (NULL, NICE_COMPATIBILITY_RFC5245, - FALSE, /* reliable */ - r_nomination_mode); + r_nomination_mode == NICE_NOMINATION_MODE_REGULAR ? + NICE_AGENT_OPTION_REGULAR_NOMINATION : 0); g_object_set (G_OBJECT (lagent), "ice-tcp", FALSE, NULL); g_object_set (G_OBJECT (ragent), "ice-tcp", FALSE, NULL); |