Commit 98b6e463 authored by Youness Alaoui's avatar Youness Alaoui

port test-fullmode to the new turn API

parent 2b151cb8
...@@ -284,13 +284,13 @@ static int run_full_test (NiceAgent *lagent, NiceAgent *ragent, NiceAddress *bas ...@@ -284,13 +284,13 @@ static int run_full_test (NiceAgent *lagent, NiceAgent *ragent, NiceAddress *bas
g_assert (rs_id > 0); g_assert (rs_id > 0);
#if USE_TURN #if USE_TURN
nice_agent_set_relay_info(lagent, ls_id, 1, nice_agent_set_relay_info(lagent, ls_id, 1,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
nice_agent_set_relay_info(lagent, ls_id, 2, nice_agent_set_relay_info(lagent, ls_id, 2,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
nice_agent_set_relay_info(ragent, rs_id, 1, nice_agent_set_relay_info(ragent, rs_id, 1,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
nice_agent_set_relay_info(ragent, rs_id, 2, nice_agent_set_relay_info(ragent, rs_id, 2,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
#endif #endif
...@@ -426,13 +426,13 @@ static int run_full_test_delayed_answer (NiceAgent *lagent, NiceAgent *ragent, N ...@@ -426,13 +426,13 @@ static int run_full_test_delayed_answer (NiceAgent *lagent, NiceAgent *ragent, N
g_assert (rs_id > 0); g_assert (rs_id > 0);
#if USE_TURN #if USE_TURN
nice_agent_set_relay_info(lagent, ls_id, 1, nice_agent_set_relay_info(lagent, ls_id, 1,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
nice_agent_set_relay_info(lagent, ls_id, 2, nice_agent_set_relay_info(lagent, ls_id, 2,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
nice_agent_set_relay_info(ragent, rs_id, 1, nice_agent_set_relay_info(ragent, rs_id, 1,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
nice_agent_set_relay_info(ragent, rs_id, 2, nice_agent_set_relay_info(ragent, rs_id, 2,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
#endif #endif
...@@ -585,9 +585,9 @@ static int run_full_test_wrong_password (NiceAgent *lagent, NiceAgent *ragent, N ...@@ -585,9 +585,9 @@ static int run_full_test_wrong_password (NiceAgent *lagent, NiceAgent *ragent, N
g_assert (rs_id > 0); g_assert (rs_id > 0);
#if USE_TURN #if USE_TURN
nice_agent_set_relay_info(lagent, ls_id, 1, nice_agent_set_relay_info(lagent, ls_id, 1,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
nice_agent_set_relay_info(ragent, rs_id, 1, nice_agent_set_relay_info(ragent, rs_id, 1,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
#endif #endif
nice_agent_gather_candidates (lagent, ls_id); nice_agent_gather_candidates (lagent, ls_id);
...@@ -705,9 +705,9 @@ static int run_full_test_control_conflict (NiceAgent *lagent, NiceAgent *ragent, ...@@ -705,9 +705,9 @@ static int run_full_test_control_conflict (NiceAgent *lagent, NiceAgent *ragent,
g_assert (rs_id > 0); g_assert (rs_id > 0);
#if USE_TURN #if USE_TURN
nice_agent_set_relay_info(lagent, ls_id, 1, nice_agent_set_relay_info(lagent, ls_id, 1,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
nice_agent_set_relay_info(ragent, rs_id, 1, nice_agent_set_relay_info(ragent, rs_id, 1,
TURN_IP, TURN_PORT, TURN_USER, TURN_PASS, TRUE); TURN_IP, TURN_PORT, TURN_USER, TURN_PASS);
#endif #endif
nice_agent_gather_candidates (lagent, ls_id); nice_agent_gather_candidates (lagent, ls_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment