summaryrefslogtreecommitdiff
path: root/auto_tests/toxav_many_test.c
diff options
context:
space:
mode:
authorEniz Vukovic <eniz_vukovic@hotmail.com>2015-10-10 23:54:23 +0200
committerEniz Vukovic <eniz_vukovic@hotmail.com>2015-10-10 23:54:23 +0200
commitd6fdf16520b6f242935ca95eeb739ec9a8eaa14c (patch)
tree069f3355835aa0497fe494c36554ea24d0b222f1 /auto_tests/toxav_many_test.c
parentbf5e9b89d2a67c293aae503c03e193307ea7990b (diff)
New Adaptive BR algorithm, cleanups and fixes
Diffstat (limited to 'auto_tests/toxav_many_test.c')
-rw-r--r--auto_tests/toxav_many_test.c26
1 files changed, 21 insertions, 5 deletions
diff --git a/auto_tests/toxav_many_test.c b/auto_tests/toxav_many_test.c
index 438f2789..7dc82c6f 100644
--- a/auto_tests/toxav_many_test.c
+++ b/auto_tests/toxav_many_test.c
@@ -2,18 +2,25 @@
2#include "config.h" 2#include "config.h"
3#endif 3#endif
4 4
5#ifndef HAVE_LIBCHECK
6# include <assert.h>
7
8# define ck_assert(X) assert(X);
9# define START_TEST(NAME) void NAME ()
10# define END_TEST
11#else
12# include "helpers.h"
13#endif
14
5#include <sys/types.h> 15#include <sys/types.h>
6#include <stdint.h> 16#include <stdint.h>
7#include <string.h> 17#include <string.h>
8#include <stdio.h> 18#include <stdio.h>
9#include <check.h>
10#include <stdlib.h> 19#include <stdlib.h>
11#include <time.h> 20#include <time.h>
12 21
13#include <vpx/vpx_image.h> 22#include <vpx/vpx_image.h>
14 23
15#include "helpers.h"
16
17#include "../toxcore/tox.h" 24#include "../toxcore/tox.h"
18#include "../toxcore/util.h" 25#include "../toxcore/util.h"
19#include "../toxcore/logger.h" 26#include "../toxcore/logger.h"
@@ -331,8 +338,16 @@ START_TEST(test_AV_three_calls)
331END_TEST 338END_TEST
332 339
333 340
334 341#ifndef HAVE_LIBCHECK
335 342int main(int argc, char *argv[])
343{
344 (void) argc;
345 (void) argv;
346
347 test_AV_three_calls();
348 return 0;
349}
350#else
336Suite *tox_suite(void) 351Suite *tox_suite(void)
337{ 352{
338 Suite *s = suite_create("ToxAV"); 353 Suite *s = suite_create("ToxAV");
@@ -362,3 +377,4 @@ int main(int argc, char *argv[])
362 377
363 return number_failed; 378 return number_failed;
364} 379}
380#endif