summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2014-04-08 20:21:55 -0400
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2014-05-15 09:43:59 -0400
commitf93f37f4f296a43be5600c46114ee3b29c984530 (patch)
treea59f64e53da910a6746b54a2b8df5157bfd269d6 /tests
parentc4bfe3479593172e6b85d361faac68410efb7fee (diff)
downloadlibnice-f93f37f4f296a43be5600c46114ee3b29c984530.tar.gz
Add support for ice-tcp priorities, udp-tunneled and nat-assisted priorities
Diffstat (limited to 'tests')
-rw-r--r--tests/test-priority.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-priority.c b/tests/test-priority.c
index 72f1277..7a52c3c 100644
--- a/tests/test-priority.c
+++ b/tests/test-priority.c
@@ -47,7 +47,9 @@ main (void)
/* test 1 */
candidate = nice_candidate_new (NICE_CANDIDATE_TYPE_HOST);
- g_assert (nice_candidate_ice_priority (candidate) == 0x78000200);
+ candidate->transport = NICE_CANDIDATE_TRANSPORT_UDP;
+ candidate->component_id = 1;
+ g_assert (nice_candidate_ice_priority (candidate, FALSE, FALSE) == 0x780001FF);
g_assert (nice_candidate_jingle_priority (candidate) == 1000);
nice_candidate_free (candidate);