diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-08-31 19:12:19 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-08-31 20:04:16 +0100 |
commit | 633da98ae69866efb195e00d9a3a22ace6bada66 (patch) | |
tree | 875535f3d2257c4ea5bb97a553b2f1beab4a1590 /auto_tests/toxav_basic_test.c | |
parent | 6356eb4e4fe407fa7870f2a685d0d08b5c2ec5bb (diff) |
Add braces to all if statements.
Diffstat (limited to 'auto_tests/toxav_basic_test.c')
-rw-r--r-- | auto_tests/toxav_basic_test.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/auto_tests/toxav_basic_test.c b/auto_tests/toxav_basic_test.c index f66846c5..701cf841 100644 --- a/auto_tests/toxav_basic_test.c +++ b/auto_tests/toxav_basic_test.c | |||
@@ -179,8 +179,9 @@ START_TEST(test_AV_flows) | |||
179 | } | 179 | } |
180 | 180 | ||
181 | if (tox_friend_get_connection_status(Alice, 0, NULL) == TOX_CONNECTION_UDP && | 181 | if (tox_friend_get_connection_status(Alice, 0, NULL) == TOX_CONNECTION_UDP && |
182 | tox_friend_get_connection_status(Bob, 0, NULL) == TOX_CONNECTION_UDP) | 182 | tox_friend_get_connection_status(Bob, 0, NULL) == TOX_CONNECTION_UDP) { |
183 | break; | 183 | break; |
184 | } | ||
184 | 185 | ||
185 | c_sleep(20); | 186 | c_sleep(20); |
186 | } | 187 | } |
@@ -290,8 +291,9 @@ START_TEST(test_AV_flows) | |||
290 | } | 291 | } |
291 | } | 292 | } |
292 | 293 | ||
293 | while (!BobCC.incoming) | 294 | while (!BobCC.incoming) { |
294 | iterate_tox(bootstrap, Alice, Bob); | 295 | iterate_tox(bootstrap, Alice, Bob); |
296 | } | ||
295 | 297 | ||
296 | /* Reject */ | 298 | /* Reject */ |
297 | { | 299 | { |
@@ -304,8 +306,9 @@ START_TEST(test_AV_flows) | |||
304 | } | 306 | } |
305 | } | 307 | } |
306 | 308 | ||
307 | while (AliceCC.state != TOXAV_FRIEND_CALL_STATE_FINISHED) | 309 | while (AliceCC.state != TOXAV_FRIEND_CALL_STATE_FINISHED) { |
308 | iterate_tox(bootstrap, Alice, Bob); | 310 | iterate_tox(bootstrap, Alice, Bob); |
311 | } | ||
309 | 312 | ||
310 | printf("Success!\n"); | 313 | printf("Success!\n"); |
311 | } | 314 | } |
@@ -326,8 +329,9 @@ START_TEST(test_AV_flows) | |||
326 | } | 329 | } |
327 | } | 330 | } |
328 | 331 | ||
329 | while (!BobCC.incoming) | 332 | while (!BobCC.incoming) { |
330 | iterate_tox(bootstrap, Alice, Bob); | 333 | iterate_tox(bootstrap, Alice, Bob); |
334 | } | ||
331 | 335 | ||
332 | /* Cancel */ | 336 | /* Cancel */ |
333 | { | 337 | { |
@@ -341,8 +345,9 @@ START_TEST(test_AV_flows) | |||
341 | } | 345 | } |
342 | 346 | ||
343 | /* Alice will not receive end state */ | 347 | /* Alice will not receive end state */ |
344 | while (BobCC.state != TOXAV_FRIEND_CALL_STATE_FINISHED) | 348 | while (BobCC.state != TOXAV_FRIEND_CALL_STATE_FINISHED) { |
345 | iterate_tox(bootstrap, Alice, Bob); | 349 | iterate_tox(bootstrap, Alice, Bob); |
350 | } | ||
346 | 351 | ||
347 | printf("Success!\n"); | 352 | printf("Success!\n"); |
348 | } | 353 | } |
@@ -364,8 +369,9 @@ START_TEST(test_AV_flows) | |||
364 | } | 369 | } |
365 | } | 370 | } |
366 | 371 | ||
367 | while (!BobCC.incoming) | 372 | while (!BobCC.incoming) { |
368 | iterate_tox(bootstrap, Alice, Bob); | 373 | iterate_tox(bootstrap, Alice, Bob); |
374 | } | ||
369 | 375 | ||
370 | /* At first try all stuff while in invalid state */ | 376 | /* At first try all stuff while in invalid state */ |
371 | ck_assert(!toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_PAUSE, NULL)); | 377 | ck_assert(!toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_PAUSE, NULL)); |
@@ -453,8 +459,9 @@ START_TEST(test_AV_flows) | |||
453 | } | 459 | } |
454 | } | 460 | } |
455 | 461 | ||
456 | while (!BobCC.incoming) | 462 | while (!BobCC.incoming) { |
457 | iterate_tox(bootstrap, Alice, Bob); | 463 | iterate_tox(bootstrap, Alice, Bob); |
464 | } | ||
458 | 465 | ||
459 | { | 466 | { |
460 | TOXAV_ERR_ANSWER rc; | 467 | TOXAV_ERR_ANSWER rc; |
@@ -520,8 +527,9 @@ START_TEST(test_AV_flows) | |||
520 | } | 527 | } |
521 | } | 528 | } |
522 | 529 | ||
523 | while (!BobCC.incoming) | 530 | while (!BobCC.incoming) { |
524 | iterate_tox(bootstrap, Alice, Bob); | 531 | iterate_tox(bootstrap, Alice, Bob); |
532 | } | ||
525 | 533 | ||
526 | { | 534 | { |
527 | TOXAV_ERR_ANSWER rc; | 535 | TOXAV_ERR_ANSWER rc; |