summaryrefslogtreecommitdiff
path: root/tests/test-trickle.c
diff options
context:
space:
mode:
authorJakub Adam <jakub.adam@collabora.com>2019-02-11 17:20:01 +0100
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2019-03-08 14:41:30 +0000
commitf8e6e5b93a4a73578753afe4955b2e278a1990c4 (patch)
tree9cb58c8bffbb4338c3254766af3b4dd09976946f /tests/test-trickle.c
parentcce48cfbf64157c79fecd8d84260a407ea08ecb6 (diff)
downloadlibnice-f8e6e5b93a4a73578753afe4955b2e278a1990c4.tar.gz
tests: enable "trickle-ice" mode
Call nice_agent_peer_candidate_gathering_done () where appropriate.
Diffstat (limited to 'tests/test-trickle.c')
-rw-r--r--tests/test-trickle.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-trickle.c b/tests/test-trickle.c
index c1c7cea..cb88555 100644
--- a/tests/test-trickle.c
+++ b/tests/test-trickle.c
@@ -272,6 +272,9 @@ int main (void)
g_object_set (G_OBJECT (lagent), "controlling-mode", TRUE, NULL);
g_object_set (G_OBJECT (ragent), "controlling-mode", FALSE, NULL);
+ g_object_set (G_OBJECT (lagent), "ice-trickle", TRUE, NULL);
+ g_object_set (G_OBJECT (ragent), "ice-trickle", TRUE, NULL);
+
/* An application using more than one NiceAgent instance may crash due to
* a race in gUPnP.
*
@@ -336,6 +339,9 @@ int main (void)
nice_candidate_free ((NiceCandidate *) i->data);
g_slist_free (cands);
+ nice_agent_peer_candidate_gathering_done (lagent, ls_id);
+ nice_agent_peer_candidate_gathering_done (ragent, rs_id);
+
g_debug ("test-trickle: Set properties, next running mainloop until connectivity checks succeed...");
/* step: run the mainloop until connectivity checks succeed