diff options
author | Dubslow <bunslow@gmail.com> | 2015-03-13 12:34:14 -0500 |
---|---|---|
committer | Dubslow <bunslow@gmail.com> | 2015-03-13 12:34:14 -0500 |
commit | 64fefb6f43e9213db9f3313aa7e8af7c36bf8538 (patch) | |
tree | 9e5aafc9fd093e2e9ea62d689493e22b191051d2 /auto_tests | |
parent | 3bf259f69d408dc5c380383ee3c0cde0504e9f02 (diff) |
revert to TOX_FILE_KIND
Diffstat (limited to 'auto_tests')
-rw-r--r-- | auto_tests/tox_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c index 8df6316f..938c4499 100644 --- a/auto_tests/tox_test.c +++ b/auto_tests/tox_test.c | |||
@@ -93,13 +93,13 @@ void handle_custom_packet(Tox *m, uint32_t friend_num, const uint8_t *data, size | |||
93 | uint8_t filenum; | 93 | uint8_t filenum; |
94 | uint32_t file_accepted; | 94 | uint32_t file_accepted; |
95 | uint64_t file_size; | 95 | uint64_t file_size; |
96 | void tox_file_receive(Tox *tox, uint32_t friend_number, uint32_t file_number, TOX_FILE_TYPE kind, uint64_t filesize, | 96 | void tox_file_receive(Tox *tox, uint32_t friend_number, uint32_t file_number, TOX_FILE_KIND kind, uint64_t filesize, |
97 | const uint8_t *filename, size_t filename_length, void *userdata) | 97 | const uint8_t *filename, size_t filename_length, void *userdata) |
98 | { | 98 | { |
99 | if (*((uint32_t *)userdata) != 974536) | 99 | if (*((uint32_t *)userdata) != 974536) |
100 | return; | 100 | return; |
101 | 101 | ||
102 | if (kind != TOX_FILE_TYPE_DATA) { | 102 | if (kind != TOX_FILE_KIND_DATA) { |
103 | ck_abort_msg("Bad kind"); | 103 | ck_abort_msg("Bad kind"); |
104 | return; | 104 | return; |
105 | } | 105 | } |
@@ -468,7 +468,7 @@ START_TEST(test_few_clients) | |||
468 | tox_callback_file_recv_control(tox3, file_print_control, &to_compare); | 468 | tox_callback_file_recv_control(tox3, file_print_control, &to_compare); |
469 | tox_callback_file_receive(tox3, tox_file_receive, &to_compare); | 469 | tox_callback_file_receive(tox3, tox_file_receive, &to_compare); |
470 | uint64_t totalf_size = 100 * 1024 * 1024; | 470 | uint64_t totalf_size = 100 * 1024 * 1024; |
471 | uint32_t fnum = tox_file_send(tox2, 0, TOX_FILE_TYPE_DATA, totalf_size, (uint8_t *)"Gentoo.exe", sizeof("Gentoo.exe"), | 471 | uint32_t fnum = tox_file_send(tox2, 0, TOX_FILE_KIND_DATA, totalf_size, (uint8_t *)"Gentoo.exe", sizeof("Gentoo.exe"), |
472 | 0); | 472 | 0); |
473 | ck_assert_msg(fnum != UINT32_MAX, "tox_new_file_sender fail"); | 473 | ck_assert_msg(fnum != UINT32_MAX, "tox_new_file_sender fail"); |
474 | 474 | ||