summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
authorDubslow <bunslow@gmail.com>2015-03-18 14:18:36 -0500
committerDubslow <bunslow@gmail.com>2015-03-18 14:18:36 -0500
commit2f65de6fd1a3c83e0754898ab45da006917223ff (patch)
treef7877eb3190ee468daf1bd072254e01731d21464 /auto_tests
parentad87dbb470cb9b223c66727ab6ad615f46e73a37 (diff)
Move get_connection_status to self pseudonamespace, to contrast friend_get_connection_status
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/tox_test.c4
-rw-r--r--auto_tests/toxav_basic_test.c2
-rw-r--r--auto_tests/toxav_many_test.c10
3 files changed, 8 insertions, 8 deletions
diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c
index 42ba65c7..adf33424 100644
--- a/auto_tests/tox_test.c
+++ b/auto_tests/tox_test.c
@@ -359,7 +359,7 @@ START_TEST(test_few_clients)
359 359
360 uint32_t to_compare = 974536; 360 uint32_t to_compare = 974536;
361 connected_t1 = 0; 361 connected_t1 = 0;
362 tox_callback_connection_status(tox1, tox_connection_status, &to_compare); 362 tox_callback_self_connection_status(tox1, tox_connection_status, &to_compare);
363 tox_callback_friend_request(tox2, accept_friend_request, &to_compare); 363 tox_callback_friend_request(tox2, accept_friend_request, &to_compare);
364 uint8_t address[TOX_ADDRESS_SIZE]; 364 uint8_t address[TOX_ADDRESS_SIZE];
365 tox_self_get_address(tox2, address); 365 tox_self_get_address(tox2, address);
@@ -373,7 +373,7 @@ START_TEST(test_few_clients)
373 tox_iterate(tox2); 373 tox_iterate(tox2);
374 tox_iterate(tox3); 374 tox_iterate(tox3);
375 375
376 if (tox_get_connection_status(tox1) && tox_get_connection_status(tox2) && tox_get_connection_status(tox3)) { 376 if (tox_self_get_connection_status(tox1) && tox_self_get_connection_status(tox2) && tox_self_get_connection_status(tox3)) {
377 if (off) { 377 if (off) {
378 printf("Toxes are online, took %llu seconds\n", time(NULL) - cur_time); 378 printf("Toxes are online, took %llu seconds\n", time(NULL) - cur_time);
379 con_time = time(NULL); 379 con_time = time(NULL);
diff --git a/auto_tests/toxav_basic_test.c b/auto_tests/toxav_basic_test.c
index 3f4a3b8d..4f75b9fb 100644
--- a/auto_tests/toxav_basic_test.c
+++ b/auto_tests/toxav_basic_test.c
@@ -271,7 +271,7 @@ START_TEST(test_AV_flows)
271 tox_iterate(Alice); 271 tox_iterate(Alice);
272 tox_iterate(Bob); 272 tox_iterate(Bob);
273 273
274 if (tox_get_connection_status(bootstrap_node) && tox_get_connection_status(Alice) && tox_get_connection_status(Bob) 274 if (tox_self_get_connection_status(bootstrap_node) && tox_self_get_connection_status(Alice) && tox_self_get_connection_status(Bob)
275 && off) { 275 && off) {
276 printf("Toxes are online, took %llu seconds\n", time(NULL) - cur_time); 276 printf("Toxes are online, took %llu seconds\n", time(NULL) - cur_time);
277 off = 0; 277 off = 0;
diff --git a/auto_tests/toxav_many_test.c b/auto_tests/toxav_many_test.c
index f22043e1..4287118f 100644
--- a/auto_tests/toxav_many_test.c
+++ b/auto_tests/toxav_many_test.c
@@ -302,11 +302,11 @@ START_TEST(test_AV_three_calls)
302 } 302 }
303 303
304 304
305 if (tox_get_connection_status(bootstrap_node) && 305 if (tox_self_get_connection_status(bootstrap_node) &&
306 tox_get_connection_status(caller) && 306 tox_self_get_connection_status(caller) &&
307 tox_get_connection_status(callees[0]) && 307 tox_self_get_connection_status(callees[0]) &&
308 tox_get_connection_status(callees[1]) && 308 tox_self_get_connection_status(callees[1]) &&
309 tox_get_connection_status(callees[2]) && off) { 309 tox_self_get_connection_status(callees[2]) && off) {
310 printf("Toxes are online, took %llu seconds\n", time(NULL) - cur_time); 310 printf("Toxes are online, took %llu seconds\n", time(NULL) - cur_time);
311 off = 0; 311 off = 0;
312 } 312 }